Skip to content

Commit

Permalink
Merge pull request #336 from ikappas/feature/introduce-config-joiner-…
Browse files Browse the repository at this point in the history
…setting

add config_joiner setting in linter class
  • Loading branch information
groteworld committed Apr 30, 2016
2 parents e56a145 + 3d0e31b commit 156335c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lint/linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,11 @@ class Linter(metaclass=LinterMeta):
#
config_file = None

# Either '=' or ':'. if '=', the config file argument is joined with the config file
# path found by '=' and passed as a single argument. If ':', config file argument and
# the value are passed as separate arguments.
config_joiner = ':'

# Tab width
tab_width = 1

Expand Down Expand Up @@ -1304,7 +1309,10 @@ def build_args(self, settings):
)

if config:
args += [self.config_file[0], config]
if self.config_joiner == '=':
args.append('{}={}'.format(self.config_file[0], config))
elif self.config_joiner == ':':
args += [self.config_file[0], config]

return args

Expand Down

0 comments on commit 156335c

Please sign in to comment.