@@ -18,12 +18,12 @@ import { Pycodestyle } from './pycodestyle';
1818import { PyDocStyle } from './pydocstyle' ;
1919import { PyLama } from './pylama' ;
2020import { Pylint } from './pylint' ;
21- import { IAvailableLinterActivator , ILinter , ILinterInfo , ILinterManager , ILintMessage } from './types' ;
21+ import { IAvailableLinterActivator , ILinter , ILinterInfo , ILinterManager , ILintMessage , LinterId } from './types' ;
2222
2323class DisabledLinter implements ILinter {
2424 constructor ( private configService : IConfigurationService ) { }
2525 public get info ( ) {
26- return new LinterInfo ( Product . pylint , 'pylint' , this . configService ) ;
26+ return new LinterInfo ( Product . pylint , LinterId . PyLint , this . configService ) ;
2727 }
2828 public async lint ( _document : TextDocument , _cancellation : CancellationToken ) : Promise < ILintMessage [ ] > {
2929 return [ ] ;
@@ -43,14 +43,14 @@ export class LinterManager implements ILinterManager {
4343 this . configService = serviceContainer . get < IConfigurationService > ( IConfigurationService ) ;
4444 // Note that we use unit tests to ensure all the linters are here.
4545 this . linters = [
46- new LinterInfo ( Product . bandit , 'bandit' , this . configService ) ,
47- new LinterInfo ( Product . flake8 , 'flake8' , this . configService ) ,
46+ new LinterInfo ( Product . bandit , LinterId . Bandit , this . configService ) ,
47+ new LinterInfo ( Product . flake8 , LinterId . Flake8 , this . configService ) ,
4848 new PylintLinterInfo ( this . configService , this . workspaceService , [ '.pylintrc' , 'pylintrc' ] ) ,
49- new LinterInfo ( Product . mypy , 'mypy' , this . configService ) ,
50- new LinterInfo ( Product . pycodestyle , 'pycodestyle' , this . configService ) ,
51- new LinterInfo ( Product . prospector , 'prospector' , this . configService ) ,
52- new LinterInfo ( Product . pydocstyle , 'pydocstyle' , this . configService ) ,
53- new LinterInfo ( Product . pylama , 'pylama' , this . configService )
49+ new LinterInfo ( Product . mypy , LinterId . MyPy , this . configService ) ,
50+ new LinterInfo ( Product . pycodestyle , LinterId . PyCodeStyle , this . configService ) ,
51+ new LinterInfo ( Product . prospector , LinterId . Prospector , this . configService ) ,
52+ new LinterInfo ( Product . pydocstyle , LinterId . PyDocStyle , this . configService ) ,
53+ new LinterInfo ( Product . pylama , LinterId . PyLama , this . configService )
5454 ] ;
5555 }
5656
0 commit comments