Skip to content

Commit b50d534

Browse files
committed
fix pydocstyle case
1 parent 90e81ec commit b50d534

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/client/common/configSettings.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export interface ILintingSettings {
6060
pylintPath: string;
6161
pep8Path: string;
6262
flake8Path: string;
63-
pydocStylePath: string;
63+
pydocstylePath: string;
6464
outputWindow: string;
6565
mypyEnabled: boolean;
6666
mypyArgs: string[];
@@ -138,7 +138,7 @@ export class PythonSettings extends EventEmitter implements IPythonSettings {
138138
mypyArgs: [], mypyEnabled: false, mypyPath: 'mypy',
139139
outputWindow: 'python', pep8Args: [], pep8Enabled: false, pep8Path: 'pep8',
140140
prospectorArgs: [], prospectorEnabled: false, prospectorPath: 'prospector',
141-
pydocstyleArgs: [], pydocstyleEnabled: false, pydocStylePath: 'pydocstyle',
141+
pydocstyleArgs: [], pydocstyleEnabled: false, pydocstylePath: 'pydocstyle',
142142
pylintArgs: [], pylintEnabled: false, pylintPath: 'pylint',
143143
pylintCategorySeverity: {
144144
convention: vscode.DiagnosticSeverity.Hint,
@@ -152,7 +152,7 @@ export class PythonSettings extends EventEmitter implements IPythonSettings {
152152
this.linting.flake8Path = getAbsolutePath(this.linting.flake8Path, workspaceRoot);
153153
this.linting.pep8Path = getAbsolutePath(this.linting.pep8Path, workspaceRoot);
154154
this.linting.prospectorPath = getAbsolutePath(this.linting.prospectorPath, workspaceRoot);
155-
this.linting.pydocStylePath = getAbsolutePath(this.linting.pydocStylePath, workspaceRoot);
155+
this.linting.pydocstylePath = getAbsolutePath(this.linting.pydocstylePath, workspaceRoot);
156156

157157
let formattingSettings = systemVariables.resolveAny(pythonSettings.get<IFormattingSettings>('formatting'));
158158
if (this.formatting) {

src/client/linters/pydocstyle.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ export class Linter extends baseLinter.BaseLinter {
2020
return Promise.resolve([]);
2121
}
2222

23-
let pydocStylePath = this.pythonSettings.linting.pydocStylePath;
23+
let pydocstylePath = this.pythonSettings.linting.pydocstylePath;
2424
let pydocstyleArgs = Array.isArray(this.pythonSettings.linting.pydocstyleArgs) ? this.pythonSettings.linting.pydocstyleArgs : [];
2525
return new Promise<baseLinter.ILintMessage[]>(resolve => {
26-
this.run(pydocStylePath, pydocstyleArgs.concat([filePath]), filePath, txtDocumentLines).then(messages => {
26+
this.run(pydocstylePath, pydocstyleArgs.concat([filePath]), filePath, txtDocumentLines).then(messages => {
2727
// All messages in pep8 are treated as warnings for now
2828
messages.forEach(msg => {
2929
msg.severity = baseLinter.LintMessageSeverity.Information;

0 commit comments

Comments
 (0)