Skip to content

Commit

Permalink
Remove Localisation , Resources.resx
Browse files Browse the repository at this point in the history
  • Loading branch information
Hixon10 committed Feb 4, 2024
1 parent 0d0561f commit 84aad74
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 124 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<!-- Projects have to opt in to be packed -->
<IsPackable>false</IsPackable>
<Version>0.2.0</Version>
<Version>0.2.1</Version>
<PackageVersion>$(Version)</PackageVersion>
<Authors>Denis</Authors>
<PackageTags>C# Roslyn detector of Newtonsoft.Json usage</PackageTags>
Expand Down
7 changes: 4 additions & 3 deletions NewtonsoftJsonUsageAnalyzer.sln.DotSettings.user
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:String x:Key="/Default/Environment/UnitTesting/UnitTestSessionStore/Sessions/=043ec9c5_002Dc2a0_002D4ee0_002Da815_002D707d0d63c4f1/@EntryIndexedValue">&lt;SessionState ContinuousTestingMode="0" IsActive="True" Name="SampleSyntaxAnalyzerTests" xmlns="urn:schemas-jetbrains-com:jetbrains-ut-session"&gt;
&lt;TestAncestor&gt;
&lt;TestId&gt;net8.0::xUnit::E20EF578-BFA0-4DD8-895A-07927A684A66::NewtonsoftJsonUsageAnalyzer.Tests.NewtonsoftJsonUsageAnalyzerTests&lt;/TestId&gt;
&lt;TestId&gt;E20EF578-BFA0-4DD8-895A-07927A684A66::net8.0::xUnit::NewtonsoftJsonUsageAnalyzer.Tests.NewtonsoftJsonUsageAnalyzerTests&lt;/TestId&gt;
&lt;/TestAncestor&gt;
&lt;/SessionState&gt;</s:String>
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=NewtonsoftJsonUsageAnalyzer_002FResources/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/ResxEditorPersonal/Initialized/@EntryValue">True</s:Boolean></wpf:ResourceDictionary>

<s:Boolean x:Key="/Default/ResxEditorPersonal/Initialized/@EntryValue">True</s:Boolean>
<s:Boolean x:Key="/Default/ResxEditorPersonal/ShowOnlyErrors/@EntryValue">False</s:Boolean></wpf:ResourceDictionary>
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,13 @@ namespace NewtonsoftJsonUsageAnalyzer;
[DiagnosticAnalyzer(LanguageNames.CSharp)]
public class NewtonsoftJsonUsageAnalyzer : DiagnosticAnalyzer
{
public const string DiagnosticId = "NS0001";
private const string DiagnosticId = "NS0001";

private static readonly LocalizableString Title = new LocalizableResourceString(nameof(Resources.NS0001Title),
Resources.ResourceManager, typeof(Resources));
private const string Title = "Code contains Newtonsoft.Json library usage";

private static readonly LocalizableString MessageFormat =
new LocalizableResourceString(nameof(Resources.NS0001MessageFormat), Resources.ResourceManager,
typeof(Resources));
private const string MessageFormat = "Detected Newtonsoft usage: '{0}'";

private static readonly LocalizableString Description =
new LocalizableResourceString(nameof(Resources.NS0001Description), Resources.ResourceManager,
typeof(Resources));
private const string Description = "Code shouldn't contain any Newtonsoft usage.";

// The category of the diagnostic (Design, Naming etc.).
private const string Category = "Design";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,4 @@
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.3.0"/>
</ItemGroup>

<ItemGroup>
<EmbeddedResource Update="Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>

<ItemGroup>
<Compile Update="Resources.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
</ItemGroup>

</Project>

This file was deleted.

This file was deleted.

0 comments on commit 84aad74

Please sign in to comment.