Changeset 16475
- Timestamp:
- 12/31/18 14:26:32 (6 years ago)
- Location:
- misc/tools/PersistenceCodeFix
- Files:
-
- 3 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
misc/tools/PersistenceCodeFix/PersistenceCodeFix.sln
r14933 r16475 1 1 2 2 Microsoft Visual Studio Solution File, Format Version 12.00 3 # Visual Studio 1 44 VisualStudioVersion = 1 4.0.25420.13 # Visual Studio 15 4 VisualStudioVersion = 15.0.28307.168 5 5 MinimumVisualStudioVersion = 10.0.40219.1 6 6 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PersistenceCodeFix", "PersistenceCodeFix\PersistenceCodeFix\PersistenceCodeFix.csproj", "{5D74C4E0-52B2-4F01-B024-307EF52BAE35}" -
misc/tools/PersistenceCodeFix/PersistenceCodeFix/PersistenceCodeFix/Analyzers/MissingStorableConstructor/MissingStorableConstructorAnalyzer.cs
r16469 r16475 9 9 public const string DiagnosticId = "MissingStorableConstructor"; 10 10 11 private static readonly LocalizableString Title = new LocalizableResourceString(nameof(Resources.MissingStorableConstructorAnalyzerTitle), Resources.ResourceManager, typeof(Resources)); 12 private static readonly LocalizableString MessageFormat = new LocalizableResourceString(nameof(Resources.MissingStorableConstructorAnalyzerMessageFormat), Resources.ResourceManager, typeof(Resources)); 13 private static readonly LocalizableString Description = new LocalizableResourceString(nameof(Resources.MissingStorableConstructorAnalyzerDescription), Resources.ResourceManager, typeof(Resources)); 11 private static readonly LocalizableString Title = new LocalizableResourceString( 12 nameof(Resources.MissingStorableConstructorAnalyzerTitle), Resources.ResourceManager, typeof(Resources)); 13 14 private static readonly LocalizableString MessageFormat = new LocalizableResourceString( 15 nameof(Resources.MissingStorableConstructorAnalyzerMessageFormat), Resources.ResourceManager, typeof(Resources)); 16 17 private static readonly LocalizableString Description = new LocalizableResourceString( 18 nameof(Resources.MissingStorableConstructorAnalyzerDescription), Resources.ResourceManager, typeof(Resources)); 19 14 20 private const string Category = nameof(DiagnosticCategory.Persistence); 15 21 16 private static DiagnosticDescriptor Rule = new DiagnosticDescriptor(DiagnosticId, Title, MessageFormat, Category, DiagnosticSeverity.Warning, isEnabledByDefault: true, description: Description); 22 private static readonly DiagnosticDescriptor Rule = new DiagnosticDescriptor( 23 DiagnosticId, Title, MessageFormat, Category, DiagnosticSeverity.Warning, isEnabledByDefault: true, description: Description); 17 24 18 25 public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get { return ImmutableArray.Create(Rule); } } -
misc/tools/PersistenceCodeFix/PersistenceCodeFix/PersistenceCodeFix/Analyzers/MissingStorableType/MissingStorableTypeAnalyzer.cs
r14985 r16475 9 9 public const string DiagnosticId = "MissingStorableType"; 10 10 11 private static readonly LocalizableString Title = new LocalizableResourceString(nameof(Resources.MissingStorableTypeAnalyzerTitle), Resources.ResourceManager, typeof(Resources)); 12 private static readonly LocalizableString MessageFormat = new LocalizableResourceString(nameof(Resources.MissingStorableTypeAnalyzerMessageFormat), Resources.ResourceManager, typeof(Resources)); 13 private static readonly LocalizableString Description = new LocalizableResourceString(nameof(Resources.MissingStorableTypeAnalyzerDescription), Resources.ResourceManager, typeof(Resources)); 11 private static readonly LocalizableString Title = new LocalizableResourceString( 12 nameof(Resources.MissingStorableTypeAnalyzerTitle), Resources.ResourceManager, typeof(Resources)); 13 14 private static readonly LocalizableString MessageFormat = new LocalizableResourceString( 15 nameof(Resources.MissingStorableTypeAnalyzerMessageFormat), Resources.ResourceManager, typeof(Resources)); 16 17 private static readonly LocalizableString Description = new LocalizableResourceString( 18 nameof(Resources.MissingStorableTypeAnalyzerDescription), Resources.ResourceManager, typeof(Resources)); 19 14 20 private const string Category = nameof(DiagnosticCategory.Persistence); 15 21 16 private static DiagnosticDescriptor Rule = new DiagnosticDescriptor(DiagnosticId, Title, MessageFormat, Category, DiagnosticSeverity.Info, isEnabledByDefault: true, description: Description); 22 private static readonly DiagnosticDescriptor Rule = new DiagnosticDescriptor( 23 DiagnosticId, Title, MessageFormat, Category, DiagnosticSeverity.Info, isEnabledByDefault: true, description: Description); 17 24 18 25 public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get { return ImmutableArray.Create(Rule); } } -
misc/tools/PersistenceCodeFix/PersistenceCodeFix/PersistenceCodeFix/Analyzers/MissingStorableType/MissingStorableTypeFix.cs
r16469 r16475 49 49 SyntaxFactory.LiteralExpression( 50 50 SyntaxKind.StringLiteralExpression, 51 SyntaxFactory.Literal(guid.ToString() )51 SyntaxFactory.Literal(guid.ToString().ToUpperInvariant()) 52 52 )); 53 53 -
misc/tools/PersistenceCodeFix/PersistenceCodeFix/PersistenceCodeFix/Analyzers/ObsoleteStorableClass/ObsoleteStorableClassAnalyzer.cs
r14985 r16475 10 10 public const string DiagnosticId = "ObsoleteStorableClass"; 11 11 12 private static readonly LocalizableString Title = new LocalizableResourceString(nameof(Resources.ObsoleteStorableClassAnalyzerTitle), Resources.ResourceManager, typeof(Resources)); 13 private static readonly LocalizableString MessageFormat = new LocalizableResourceString(nameof(Resources.ObsoleteStorableClassAnalyzerMessageFormat), Resources.ResourceManager, typeof(Resources)); 14 private static readonly LocalizableString Description = new LocalizableResourceString(nameof(Resources.ObsoleteStorableClassAnalyzerDescription), Resources.ResourceManager, typeof(Resources)); 12 private static readonly LocalizableString Title = new LocalizableResourceString( 13 nameof(Resources.ObsoleteStorableClassAnalyzerTitle), Resources.ResourceManager, typeof(Resources)); 14 15 private static readonly LocalizableString MessageFormat = new LocalizableResourceString( 16 nameof(Resources.ObsoleteStorableClassAnalyzerMessageFormat), Resources.ResourceManager, typeof(Resources)); 17 18 private static readonly LocalizableString Description = new LocalizableResourceString( 19 nameof(Resources.ObsoleteStorableClassAnalyzerDescription), Resources.ResourceManager, typeof(Resources)); 20 15 21 private const string Category = nameof(DiagnosticCategory.Persistence); 16 22 17 private static DiagnosticDescriptor Rule = new DiagnosticDescriptor(DiagnosticId, Title, MessageFormat, Category, DiagnosticSeverity.Warning, isEnabledByDefault: true, description: Description); 23 private static readonly DiagnosticDescriptor Rule = new DiagnosticDescriptor( 24 DiagnosticId, Title, MessageFormat, Category, DiagnosticSeverity.Warning, isEnabledByDefault: true, description: Description); 18 25 19 26 public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get { return ImmutableArray.Create(Rule); } } -
misc/tools/PersistenceCodeFix/PersistenceCodeFix/PersistenceCodeFix/Analyzers/ObsoleteStorableClass/ObsoleteStorableClassFix.cs
r16469 r16475 52 52 SyntaxFactory.LiteralExpression( 53 53 SyntaxKind.StringLiteralExpression, 54 SyntaxFactory.Literal(guid.ToString() )54 SyntaxFactory.Literal(guid.ToString().ToUpperInvariant()) 55 55 )); 56 56 -
misc/tools/PersistenceCodeFix/PersistenceCodeFix/PersistenceCodeFix/PersistenceCodeFix.csproj
r14989 r16475 42 42 <Compile Include="Analyzers\MissingStorableType\MissingStorableTypeAnalyzer.cs" /> 43 43 <Compile Include="Analyzers\MissingStorableType\MissingStorableTypeFix.cs" /> 44 <Compile Include="Analyzers\ObsoleteStorableConstructor\ObsoleteStorableConstructorAnalyzer.cs" /> 45 <Compile Include="Analyzers\ObsoleteStorableConstructor\ObsoleteStorableConstructorFix.cs" /> 44 46 <Compile Include="IDocumentCodeFixProvider.cs" /> 45 47 <Compile Include="Properties\AssemblyInfo.cs" /> -
misc/tools/PersistenceCodeFix/PersistenceCodeFix/PersistenceCodeFix/Resources.Designer.cs
r14985 r16475 21 21 // To add or remove a member, edit your .ResX file then rerun ResGen 22 22 // with the /str option, or rebuild your VS project. 23 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", " 4.0.0.0")]23 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")] 24 24 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 25 25 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] … … 142 142 } 143 143 } 144 145 /// <summary> 146 /// Looks up a localized string similar to This kind of StorableConstructor signature is obsolete; Use the new signature instead. 147 /// </summary> 148 internal static string ObsoleteStorableConstructorAnalyzerDescription { 149 get { 150 return ResourceManager.GetString("ObsoleteStorableConstructorAnalyzerDescription", resourceCulture); 151 } 152 } 153 154 /// <summary> 155 /// Looks up a localized string similar to Type '{0}' should use the new StorableConstructor signature. 156 /// </summary> 157 internal static string ObsoleteStorableConstructorAnalyzerMessageFormat { 158 get { 159 return ResourceManager.GetString("ObsoleteStorableConstructorAnalyzerMessageFormat", resourceCulture); 160 } 161 } 162 163 /// <summary> 164 /// Looks up a localized string similar to Obsolete StorableConstructor signature. 165 /// </summary> 166 internal static string ObsoleteStorableConstructorAnalyzerTitle { 167 get { 168 return ResourceManager.GetString("ObsoleteStorableConstructorAnalyzerTitle", resourceCulture); 169 } 170 } 144 171 } 145 172 } -
misc/tools/PersistenceCodeFix/PersistenceCodeFix/PersistenceCodeFix/Resources.resx
r14985 r16475 145 145 <value>Obsolete StorableClass attribute</value> 146 146 </data> 147 <data name="ObsoleteStorableConstructorAnalyzerDescription" xml:space="preserve"> 148 <value>This kind of StorableConstructor signature is obsolete; Use the new signature instead</value> 149 </data> 150 <data name="ObsoleteStorableConstructorAnalyzerMessageFormat" xml:space="preserve"> 151 <value>Type '{0}' should use the new StorableConstructor signature</value> 152 </data> 153 <data name="ObsoleteStorableConstructorAnalyzerTitle" xml:space="preserve"> 154 <value>Obsolete StorableConstructor signature</value> 155 </data> 147 156 </root>
Note: See TracChangeset
for help on using the changeset viewer.