Skip to content

Commit

Permalink
Consistency. Why not
Browse files Browse the repository at this point in the history
  • Loading branch information
Bachmann1234 committed Feb 21, 2016
1 parent af52421 commit 7a5641f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion diff_cover/violationsreporters/violations_reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ def __init__(self):
)
self.pylint_expression = re.compile(r'^([^:]+):(\d+): \[(\w+),? ?([^\]]*)] (.*)$')
self.dupe_code_violation = 'R0801'
self.command_to_check_install = ['pylint', '--version']

# Match lines of the form:
# path/to/file.py:123: [C0111] Missing docstring
Expand Down Expand Up @@ -317,7 +318,7 @@ def installed(self):
Method checks if the provided tool is installed.
Returns: boolean True if installed
"""
return run_command_for_code(['pylint', '--version']) == 0
return run_command_for_code(self.command_to_check_install) == 0


class JsHintDriver(RegexBasedDriver):
Expand Down

0 comments on commit 7a5641f

Please sign in to comment.