File tree Expand file tree Collapse file tree 1 file changed +17
-9
lines changed
packages/custom_lint_builder/lib/src Expand file tree Collapse file tree 1 file changed +17
-9
lines changed Original file line number Diff line number Diff line change @@ -81,20 +81,28 @@ class CustomAnalyzerConverter {
81
81
for (final error in errors) {
82
82
final processor = analyzer.ErrorProcessor .getProcessor (options, error);
83
83
final configSeverity = configSeverities? [error.errorCode.name];
84
-
85
84
// Config severities override processor severities
86
85
final severity = configSeverity ?? processor? .severity;
87
-
88
- // Errors with null severity or NONE are filtered out.
89
- if (severity == null || severity == analyzer.ErrorSeverity .NONE ) {
86
+ if (severity == analyzer.ErrorSeverity .NONE ) {
90
87
continue ;
91
88
}
92
89
93
- serverErrors.add (convertAnalysisError (
94
- error,
95
- lineInfo: lineInfo,
96
- severity: severity,
97
- ));
90
+ if (processor != null ) {
91
+ // Errors with null severity are filtered out.
92
+ if (severity != null ) {
93
+ serverErrors.add (convertAnalysisError (
94
+ error,
95
+ lineInfo: lineInfo,
96
+ severity: severity,
97
+ ));
98
+ }
99
+ } else {
100
+ serverErrors.add (convertAnalysisError (
101
+ error,
102
+ lineInfo: lineInfo,
103
+ severity: severity,
104
+ ));
105
+ }
98
106
}
99
107
return serverErrors;
100
108
}
You can’t perform that action at this time.
0 commit comments