Skip to content

Commit

Permalink
MarkdownBear: Verify the config_file
Browse files Browse the repository at this point in the history
If the config_file is provided, all other options are ignored.

Closes #925
  • Loading branch information
Nosferatul committed Nov 7, 2016
1 parent a5ce145 commit 5e514c0
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions bears/markdown/MarkdownBear.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ def create_arguments(filename, file, config_file,
"ruleRepetition": markdown_horizontal_rule_repeat, # int
}

config_json = json.dumps(remark_configs)
# Remove { and } as remark adds them on its own
settings = config_json[1:-1]
return '--no-color', '--quiet', '--setting', settings
if config_file:
return '--no-color', '--quiet', '--setting', config_file
else:
config_json = json.dumps(remark_configs)
# Remove { and } as remark adds them on its own
settings = config_json[1:-1]
return '--no-color', '--quiet', '--setting', settings

0 comments on commit 5e514c0

Please sign in to comment.