Skip to content

Commit

Permalink
fix event id's now failing VS validation (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpvreony committed Aug 22, 2023
1 parent 84136ce commit 4a600e3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 14 deletions.
4 changes: 2 additions & 2 deletions src/Dhgms.Nucleotide.Generators/Generators/BaseGenerator.cs
Expand Up @@ -29,7 +29,7 @@ public void Initialize(GeneratorInitializationContext context)
public static Diagnostic InfoDiagnostic(string message)
{
return Diagnostic.Create(
"NUC-I0001",
"NUCI0001",
"Nucleotide Generation",
message,
DiagnosticSeverity.Info,
Expand All @@ -42,7 +42,7 @@ public static Diagnostic InfoDiagnostic(string message)
public static Diagnostic ErrorDiagnostic(string message)
{
return Diagnostic.Create(
"NUC-E0001",
"NUCE0001",
"Nucleotide Generation",
message,
DiagnosticSeverity.Error,
Expand Down
Expand Up @@ -3,6 +3,7 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<IsPackable>false</IsPackable>
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
</PropertyGroup>

<ItemGroup>
Expand Down
11 changes: 1 addition & 10 deletions src/Dhgms.Nucleotide.UnitTests/Dhgms.Nucleotide.UnitTests.csproj
Expand Up @@ -12,21 +12,12 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Foundatio.Logging.Xunit" Version="9.1.1" />
<PackageReference Include="Foundatio.Xunit" Version="10.6.1" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.7.0" />
<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="4.7.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.1" />
<PackageReference Include="Moq" Version="4.20.69" />
<PackageReference Include="NetTestRegimentation" Version="1.7.2" />
<PackageReference Include="OpenCover" Version="4.7.1221" />
<PackageReference Include="ReportGenerator" Version="5.1.24" />
<PackageReference Include="xunit" Version="2.5.0" />
<PackageReference Include="xunit.analyzers" Version="1.2.0" />
<PackageReference Include="xunit.runner.reporters" Version="2.5.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
Expand Down
Expand Up @@ -41,7 +41,7 @@ public MockAttributeData(TypedConstant constructorArg)
protected override ImmutableArray<KeyValuePair<string, TypedConstant>> CommonNamedArguments { get; }
}

public abstract class BaseConstructorMethod<TGenerator, TFeatureFlags, TGeneratorProcessor, TGenerationModel> : Foundatio.Logging.Xunit.TestWithLoggingBase
public abstract class BaseConstructorMethod<TGenerator, TFeatureFlags, TGeneratorProcessor, TGenerationModel> : Foundatio.Xunit.TestWithLoggingBase
where TGenerator : BaseGenerator<TFeatureFlags, TGeneratorProcessor, TGenerationModel>
where TFeatureFlags : class
where TGeneratorProcessor : BaseGeneratorProcessor<TGenerationModel>, new()
Expand All @@ -64,7 +64,7 @@ protected BaseConstructorMethod(ITestOutputHelper output) : base(output)
}
}

public abstract class BaseGenerateAsyncMethod<TGenerator, TFeatureFlags, TGeneratorProcessor, TGenerationModel> : Foundatio.Logging.Xunit.TestWithLoggingBase
public abstract class BaseGenerateAsyncMethod<TGenerator, TFeatureFlags, TGeneratorProcessor, TGenerationModel> : Foundatio.Xunit.TestWithLoggingBase
where TGenerator : BaseGenerator<TFeatureFlags, TGeneratorProcessor, TGenerationModel>
where TFeatureFlags : class
where TGeneratorProcessor : BaseGeneratorProcessor<TGenerationModel>, new()
Expand Down

0 comments on commit 4a600e3

Please sign in to comment.