diff --git a/src/Analyzer/Analyzer.csproj b/src/Analyzer/Analyzer.csproj index d2741c3..cbba491 100644 --- a/src/Analyzer/Analyzer.csproj +++ b/src/Analyzer/Analyzer.csproj @@ -10,7 +10,7 @@ - + diff --git a/src/Analyzer/Utilities/RuleFinder.cs b/src/Analyzer/Utilities/RuleFinder.cs index 7482781..2b0c7ac 100644 --- a/src/Analyzer/Utilities/RuleFinder.cs +++ b/src/Analyzer/Utilities/RuleFinder.cs @@ -27,8 +27,7 @@ public RuleFinder() public static IEnumerable PackagedRuleAssemblies { get; } = new[] { - Assembly.Load(typeof(FlagsEnumZeroMember).Assembly.GetName()), - Assembly.Load(typeof(FlagsEnumZeroMemberBase).Assembly.GetName()) + Assembly.Load(typeof(FlagsEnumZeroMember).Assembly.GetName()) }; public IEnumerable AllAnalyzerTypes => diagnosticAnalyzers; diff --git a/src/DocsGenerator/Helpers/TTFHelper.cs b/src/DocsGenerator/Helpers/TTFHelper.cs index 4554ab8..70a0b27 100644 --- a/src/DocsGenerator/Helpers/TTFHelper.cs +++ b/src/DocsGenerator/Helpers/TTFHelper.cs @@ -20,6 +20,12 @@ public static long ToCodacyTimeToFix(string sonarTimeToFix) return long.Parse(sonarTimeToFix.Substring(0, idx)) * 60; } + idx = sonarTimeToFix.IndexOf("d", StringComparison.CurrentCulture); + if(idx != -1) + { + return long.Parse(sonarTimeToFix.Substring(0, idx)) * 60 * 8; // Assuming 8 hours workday + } + if(sonarTimeToFix == "") { return 5;