Permalink
Browse files

MarkdownBear: Rename `remark_configs_plugins`

Rename `remark_configs_plugins` to `remark_lint_configs` because
the latter is more appropriate and future addition of plugins
may conflict with the former name.
  • Loading branch information...
yash-nisar committed Jul 16, 2017
1 parent 2a21048 commit d83fe5fb86df425c8afb563c3ab75e87c92d2eb5
Showing with 6 additions and 6 deletions.
  1. +6 −6 bears/markdown/MarkdownBear.py
@@ -130,21 +130,21 @@ def create_arguments(filename, file, config_file,
'ruleSpaces': horizontal_rule_spaces, # Bool
'ruleRepetition': horizontal_rule_repeat, # int
}
remark_configs_plugins = {}
remark_lint_configs = {}
if max_line_length:
remark_configs_plugins['maximumLineLength'] = max_line_length
remark_lint_configs['maximumLineLength'] = max_line_length
config_json = json.dumps(remark_configs_settings)
# Remove { and } as remark adds them on its own
settings = config_json[1:-1]
args = [filename, '--no-color', '--quiet', '--setting', settings]
if remark_configs_plugins:
config_json = json.dumps(remark_configs_plugins)
plugins = 'lint=' + config_json[1:-1]
args += ['--use', plugins]
if remark_lint_configs:
config_json = json.dumps(remark_lint_configs)
lint = 'lint=' + config_json[1:-1]
args += ['--use', lint]
if check_links:
args += ['--use', 'validate-links']

0 comments on commit d83fe5f

Please sign in to comment.