File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
RetailCoder.VBE/Inspections/Concrete Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -95,15 +95,17 @@ public async Task<IEnumerable<IInspectionResult>> FindIssuesAsync(RubberduckPars
95
95
{
96
96
LogManager . GetCurrentClassLogger ( ) . Error ( e ) ;
97
97
}
98
- state . OnStatusMessageUpdate ( RubberduckUI . ResourceManager . GetString ( "ParserState_" + state . Status , UI . Settings . Settings . Culture ) ) ; // should be "Ready"
99
98
100
99
var issuesByType = allIssues . GroupBy ( issue => issue . GetType ( ) )
101
100
. ToDictionary ( grouping => grouping . Key , grouping => grouping . ToList ( ) ) ;
102
- return issuesByType . Where ( kv => kv . Value . Count <= AGGREGATION_THRESHOLD )
101
+ var results = issuesByType . Where ( kv => kv . Value . Count <= AGGREGATION_THRESHOLD )
103
102
. SelectMany ( kv => kv . Value )
104
103
. Union ( issuesByType . Where ( kv => kv . Value . Count > AGGREGATION_THRESHOLD )
105
- . Select ( kv => new AggregateInspectionResult ( kv . Value . OrderBy ( i => i . QualifiedSelection ) . First ( ) , kv . Value . Count ) ) ) ;
106
- //return allIssues;
104
+ . Select ( kv => new AggregateInspectionResult ( kv . Value . OrderBy ( i => i . QualifiedSelection ) . First ( ) , kv . Value . Count ) ) )
105
+ . ToList ( ) ;
106
+
107
+ state . OnStatusMessageUpdate ( RubberduckUI . ResourceManager . GetString ( "ParserState_" + state . Status , UI . Settings . Settings . Culture ) ) ; // should be "Ready"
108
+ return results ;
107
109
}
108
110
109
111
private IReadOnlyList < QualifiedContext > GetParseTreeResults ( Configuration config , RubberduckParserState state )
You can’t perform that action at this time.
0 commit comments