Skip to content

Commit

Permalink
Merge pull request #30 from resolve/fix-global-exclusions
Browse files Browse the repository at this point in the history
Ensure global exclusions are honored
  • Loading branch information
reconbot committed Apr 23, 2016
2 parents 6102c13 + 77540ed commit 367adf6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,11 @@ def cmd(self):
# With this path we can instead pass the file contents in via STDIN
# and then tell rubocop to use this path (to search for config
# files and to use for matching against configured paths - i.e. for
# inheritance, inclusions and exclusions):
command += ['--stdin', path]
# inheritance, inclusions and exclusions).
#
# The 'force-exclusion' overrides rubocop's behavior of ignoring
# global excludes when the file path is explicitly provided:
command += ['--force-exclusion', '--stdin', path]
# Ensure the files contents are passed in via STDIN:
self.tempfile_suffix = None

Expand Down

0 comments on commit 367adf6

Please sign in to comment.