Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Now using getCmdAndArgs. Fixes #4 #5

Merged
merged 1 commit into from
Jun 24, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/linter-pylint.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ class LinterPylint extends Linter

lintFile: (filePath, callback) =>
if @enabled # disabled if the lint-executable is not reachable - see initialization
exec @getCmd(filePath), {cwd: @cwd}, (error, stdout, stderr) =>
command = @getCmdAndArgs(filePath).command +
' ' +
@getCmdAndArgs(filePath).args.join(' ')

exec command, {cwd: @cwd}, (error, stdout, stderr) =>
@processMessage(stdout, callback)

module.exports = LinterPylint