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

Commit

Permalink
Remove space from command template
Browse files Browse the repository at this point in the history
Also use an array instead of a string to avoid things like this in the future

Test Plan:
Opened a Python file and saw that it still displayed lint errors.
  • Loading branch information
dmnd committed Aug 17, 2014
1 parent 58088ab commit c6e3771
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/linter-pylint.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ Linter = require "#{linterPath}/lib/linter"
class LinterPylint extends Linter
@enabled = false # false until executable checked
@syntax: 'source.python' # fits all *.py-files
cmd: "pylint
--msg-template='{line},{column},{category},{msg_id}: {msg}'
--reports=n"
cmd: ['pylint'
"--msg-template='{line},{column},{category},{msg_id}:{msg}'"
'--reports=n']

linterName: 'pylint'

regex: '^(?<line>\\d+),(?<col>\\d+),\
((?<error>error)|(?<warning>warning)),\
(?<msg_id>\\w\\d+):\\s(?<message>.*)$'
(?<msg_id>\\w\\d+):(?<message>.*)$'
regexFlags: 'm'

constructor: (@editor) ->
Expand Down

0 comments on commit c6e3771

Please sign in to comment.