@@ -30,7 +30,6 @@ public class Inspector : IInspector
30
30
31
31
private readonly IGeneralConfigService _configService ;
32
32
private readonly List < IInspection > _inspections ;
33
- private const int AGGREGATION_THRESHOLD = 128 ;
34
33
35
34
public Inspector ( IGeneralConfigService configService , IInspectionProvider inspectionProvider )
36
35
{
@@ -42,8 +41,8 @@ public Inspector(IGeneralConfigService configService, IInspectionProvider inspec
42
41
43
42
private void ConfigServiceSettingsChanged ( object sender , EventArgs e )
44
43
{
45
- // var config = _configService.LoadConfiguration();
46
- // UpdateInspectionSeverity(config);
44
+ var config = _configService . LoadConfiguration ( ) ;
45
+ UpdateInspectionSeverity ( config ) ;
47
46
}
48
47
49
48
private void UpdateInspectionSeverity ( Configuration config )
@@ -133,16 +132,9 @@ public async Task<IEnumerable<IInspectionResult>> FindIssuesAsync(RubberduckPars
133
132
LogManager . GetCurrentClassLogger ( ) . Error ( e ) ;
134
133
}
135
134
136
- var issuesByType = allIssues . GroupBy ( issue => issue . Inspection . Name )
137
- . ToDictionary ( grouping => grouping . Key , grouping => grouping . ToList ( ) ) ;
138
- var results = issuesByType . Where ( kv => kv . Value . Count <= AGGREGATION_THRESHOLD )
139
- . SelectMany ( kv => kv . Value )
140
- . Union ( issuesByType . Where ( kv => kv . Value . Count > AGGREGATION_THRESHOLD )
141
- . Select ( kv => new AggregateInspectionResult ( kv . Value . OrderBy ( i => i . QualifiedSelection ) . First ( ) , kv . Value . Count ) ) )
142
- . ToList ( ) ;
143
-
144
- state . OnStatusMessageUpdate ( RubberduckUI . ResourceManager . GetString ( "ParserState_" + state . Status , CultureInfo . CurrentUICulture ) ) ; // should be "Ready"
145
- return results ;
135
+ // should be "Ready"
136
+ state . OnStatusMessageUpdate ( RubberduckUI . ResourceManager . GetString ( "ParserState_" + state . Status , CultureInfo . CurrentUICulture ) ) ;
137
+ return allIssues ;
146
138
}
147
139
148
140
private static bool RequiredLibrariesArePresent ( IInspection inspection , RubberduckParserState state )
0 commit comments