We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3913407 commit 214220fCopy full SHA for 214220f
1 file changed
src/client/linters/pylint.ts
@@ -21,9 +21,9 @@ export class Linter extends baseLinter.BaseLinter {
21
let pylintPath = this.pythonSettings.linting.pylintPath;
22
let pylintArgs = Array.isArray(this.pythonSettings.linting.pylintArgs) ? this.pythonSettings.linting.pylintArgs : [];
23
24
- if (pep8Args.length === 0 && ProductExecutableAndArgs.has(Product.pep8)){
25
- pep8Path = ProductExecutableAndArgs.get(Product.pep8).executable;
26
- pep8Args = ProductExecutableAndArgs.get(Product.pep8).args;
+ if (pylintArgs.length === 0 && ProductExecutableAndArgs.has(Product.pylint)){
+ pylintPath = ProductExecutableAndArgs.get(Product.pylint).executable;
+ pylintArgs = ProductExecutableAndArgs.get(Product.pylint).args;
27
}
28
29
return new Promise<baseLinter.ILintMessage[]>((resolve, reject) => {
0 commit comments