Skip to content

Commit

Permalink
Disable implicit usings
Browse files Browse the repository at this point in the history
  • Loading branch information
zobweyt committed Jun 9, 2024
1 parent 45c7633 commit ce90c9e
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Giveaways.Data/Giveaways.Data.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

Expand Down
1 change: 1 addition & 0 deletions src/Giveaways.Data/Models/DbEntity.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System;
using System.ComponentModel.DataAnnotations.Schema;
using Discord;

Expand Down
5 changes: 5 additions & 0 deletions src/Giveaways/Extensions/HostExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;

namespace Giveaways;

Expand Down
2 changes: 2 additions & 0 deletions src/Giveaways/Extensions/ServiceCollectionExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
using Fergun.Interactive;
using Microsoft.Extensions.DependencyInjection;

namespace Giveaways;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System.Threading.Tasks;
using Discord;
using Discord.Interactions;

Expand Down
2 changes: 1 addition & 1 deletion src/Giveaways/Giveaways.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<ImplicitUsings>disable</ImplicitUsings>
<UserSecretsId>9129c8de-76cd-4500-bd4c-6bd38b81374e</UserSecretsId>
<RootNamespace>Giveaways</RootNamespace>
<Version>1.0.0</Version>
Expand Down
2 changes: 2 additions & 0 deletions src/Giveaways/Modules/GeneralModule.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Discord;
using Discord.Interactions;
using Microsoft.Extensions.Options;
Expand Down
5 changes: 5 additions & 0 deletions src/Giveaways/Program.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
using System;
using System.IO;
using Discord;
using Discord.Addons.Hosting;
using Discord.Interactions;
Expand All @@ -6,6 +8,9 @@
using Giveaways.Data;
using Giveaways.Services;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;

Directory.SetCurrentDirectory(AppDomain.CurrentDomain.BaseDirectory);

Expand Down
6 changes: 6 additions & 0 deletions src/Giveaways/Services/InteractionHandler.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
using System;
using System.Reflection;
using System.Threading;
using System.Threading.Tasks;
using Discord;
using Discord.Addons.Hosting;
using Discord.Interactions;
using Discord.WebSocket;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;

namespace Giveaways.Services;
Expand Down
2 changes: 1 addition & 1 deletion test/Giveaways.Tests/Giveaways.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
Expand Down

0 comments on commit ce90c9e

Please sign in to comment.