diff --git a/Directory.Packages.props b/Directory.Packages.props index cae184b..92958e5 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -4,7 +4,7 @@ true - + diff --git a/src/NetEvolve.Defaults.Analyzer/Diagnostics/IsPackableProjectDiagnosticAnalyzer.cs b/src/NetEvolve.Defaults.Analyzer/Diagnostics/IsPackableProjectDiagnosticAnalyzer.cs index c6b7d23..35d94b2 100644 --- a/src/NetEvolve.Defaults.Analyzer/Diagnostics/IsPackableProjectDiagnosticAnalyzer.cs +++ b/src/NetEvolve.Defaults.Analyzer/Diagnostics/IsPackableProjectDiagnosticAnalyzer.cs @@ -94,15 +94,10 @@ public override void Initialize(AnalysisContext context) AnalyzeIsKeySet(ctx, options, _ruleNED0006, "build_property.repositoryurl"); AnalyzeIsKeySet(ctx, options, _ruleNED0007, "build_property.authors"); AnalyzeIsKeySet(ctx, options, _ruleNED0008, "build_property.company"); - AnalyzeIsKeySet( - ctx, - options, - _ruleNED0009, - "build_property.copyrightyearstart", - propertyValue => - int.TryParse(propertyValue, NumberStyles.Integer, CultureInfo.InvariantCulture, out var year) - && year >= 1900 - && year <= 9999 + AnalyzeIsKeySet(ctx, options, _ruleNED0009, "build_property.copyrightyearstart", propertyValue => + int.TryParse(propertyValue, NumberStyles.Integer, CultureInfo.InvariantCulture, out var year) + && year >= 1900 + && year <= 9999 ); }); }