@@ -217,15 +217,15 @@ func TestValidator_validatePresets_error(t *testing.T) {
217
217
}
218
218
}
219
219
220
- func TestValidator_alternativeNames (t * testing.T ) {
220
+ func TestValidator_alternativeNamesDeprecation (t * testing.T ) {
221
221
t .Setenv (logutils .EnvTestRun , "0" )
222
222
223
223
log := logutils .NewMockLog ().
224
- OnWarnf ("The linter name %q is deprecated. It has been renamed to: %s." , "vet" , "govet" ).
225
- OnWarnf ("The linter name %q is deprecated. It has been renamed to: %s." , "vetshadow" , "govet" ).
226
- OnWarnf ("The linter name %q is deprecated. It has been renamed to: %s." , "logrlint" , "loggercheck" ).
227
- OnWarnf ("The linter name %q is deprecated. It has been split into: %s." , "megacheck" , "gosimple, staticcheck, unused" ).
228
- OnWarnf ("The linter name %q is deprecated. It has been renamed to: %s." , "gas" , "gosec" )
224
+ OnWarnf ("The name %q is deprecated. The linter has been renamed to: %s." , "vet" , "govet" ).
225
+ OnWarnf ("The name %q is deprecated. The linter has been renamed to: %s." , "vetshadow" , "govet" ).
226
+ OnWarnf ("The name %q is deprecated. The linter has been renamed to: %s." , "logrlint" , "loggercheck" ).
227
+ OnWarnf ("The linter named %q is deprecated. It has been split into: %s." , "megacheck" , "gosimple, staticcheck, unused" ).
228
+ OnWarnf ("The name %q is deprecated. The linter has been renamed to: %s." , "gas" , "gosec" )
229
229
230
230
m , err := NewManager (log , nil , NewLinterBuilder ())
231
231
require .NoError (t , err )
0 commit comments