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

fix #13 #19

Merged
merged 1 commit into from
Dec 1, 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
4 changes: 2 additions & 2 deletions lib/linter-pylint.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ class LinterPylint extends Linter
# Private: handles the initial 'version' call, extracts the version and
# enables the linter
executionCheckHandler: (error, stdout, stderr) =>
versionRegEx = /pylint ([\d\.]+)\,/
versionRegEx = /pylint(-script.py)? ([\d\.]+)\,/
if not versionRegEx.test(stdout)
result = if error? then '#' + error.code + ': ' else ''
result += 'stdout: ' + stdout if stdout.length > 0
result += 'stderr: ' + stderr if stderr.length > 0
console.error "Linter-Pylint: 'pylint' was not executable: " + result
else
log "Linter-Pylint: found pylint " + versionRegEx.exec(stdout)[1]
log "Linter-Pylint: found pylint " + versionRegEx.exec(stdout).slice(-1)[0]
@enabled = true # everything is fine, the linter is ready to work

lintFile: (filePath, callback) =>
Expand Down