mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 20:44:04 +00:00
lint: Add missing spaces at line wraps, remove periods.
This commit is contained in:
committed by
Tim Abbott
parent
9685854edc
commit
3e6cc49ab5
14
tools/lint
14
tools/lint
@@ -55,7 +55,7 @@ def run() -> None:
|
|||||||
linter_config.external_linter('eslint', ['node', 'node_modules/.bin/eslint',
|
linter_config.external_linter('eslint', ['node', 'node_modules/.bin/eslint',
|
||||||
'--quiet', '--cache', '--ext', '.js,.ts'], ['js', 'ts'],
|
'--quiet', '--cache', '--ext', '.js,.ts'], ['js', 'ts'],
|
||||||
fix_arg='--fix',
|
fix_arg='--fix',
|
||||||
description="Standard JavaScript style and formatting linter"
|
description="Standard JavaScript style and formatting linter "
|
||||||
"(config: .eslintrc).")
|
"(config: .eslintrc).")
|
||||||
linter_config.external_linter('puppet', ['puppet', 'parser', 'validate'], ['pp'],
|
linter_config.external_linter('puppet', ['puppet', 'parser', 'validate'], ['pp'],
|
||||||
description="Runs the puppet parser validator, "
|
description="Runs the puppet parser validator, "
|
||||||
@@ -64,17 +64,17 @@ def run() -> None:
|
|||||||
['puppet-lint', '--fail-on-warnings', *PUPPET_CHECK_RULES_TO_EXCLUDE],
|
['puppet-lint', '--fail-on-warnings', *PUPPET_CHECK_RULES_TO_EXCLUDE],
|
||||||
['pp'],
|
['pp'],
|
||||||
fix_arg='--fix',
|
fix_arg='--fix',
|
||||||
description="Standard puppet linter"
|
description="Standard puppet linter "
|
||||||
"(config: tools/linter_lib/exclude.py)")
|
"(config: tools/linter_lib/exclude.py)")
|
||||||
linter_config.external_linter('templates', ['tools/check-templates'], ['hbs', 'html'],
|
linter_config.external_linter('templates', ['tools/check-templates'], ['hbs', 'html'],
|
||||||
description="Custom linter checks whitespace formatting"
|
description="Custom linter checks whitespace formatting "
|
||||||
"of HTML templates.",
|
"of HTML templates",
|
||||||
fix_arg='--fix')
|
fix_arg='--fix')
|
||||||
linter_config.external_linter('openapi', ['node', 'tools/check-openapi'], ['yaml'],
|
linter_config.external_linter('openapi', ['node', 'tools/check-openapi'], ['yaml'],
|
||||||
description="Validates our OpenAPI/Swagger API documentation"
|
description="Validates our OpenAPI/Swagger API documentation "
|
||||||
"(zerver/openapi/zulip.yaml) ")
|
"(zerver/openapi/zulip.yaml) ")
|
||||||
linter_config.external_linter('shellcheck', ['shellcheck', '-x', '-P', 'SCRIPTDIR'], ['sh'],
|
linter_config.external_linter('shellcheck', ['shellcheck', '-x', '-P', 'SCRIPTDIR'], ['sh'],
|
||||||
description="Standard shell script linter.")
|
description="Standard shell script linter")
|
||||||
command = ['tools/run-mypy', '--quiet']
|
command = ['tools/run-mypy', '--quiet']
|
||||||
if args.force:
|
if args.force:
|
||||||
command.append('--force')
|
command.append('--force')
|
||||||
@@ -86,7 +86,7 @@ def run() -> None:
|
|||||||
pass_targets=False,
|
pass_targets=False,
|
||||||
description="Shares duplicate packages in yarn.lock")
|
description="Shares duplicate packages in yarn.lock")
|
||||||
linter_config.external_linter('gitlint', ['tools/commit-message-lint'],
|
linter_config.external_linter('gitlint', ['tools/commit-message-lint'],
|
||||||
description="Checks commit messages for common formatting errors."
|
description="Checks commit messages for common formatting errors "
|
||||||
"(config: .gitlint)")
|
"(config: .gitlint)")
|
||||||
linter_config.external_linter('isort', ['isort'], ['py'],
|
linter_config.external_linter('isort', ['isort'], ['py'],
|
||||||
description="Sorts Python import statements",
|
description="Sorts Python import statements",
|
||||||
|
|||||||
Reference in New Issue
Block a user