superlint/.github/linters/.jscpd.json
Marco Ferrari 91dc6d7234
fix: add missing fix mode options and test cases (#5987)
- Add missing fix mode options for: CLANG_FORMAT, ENV,
  GOOGLE_JAVA_FORMAT, NATURAL_LANGUAGE, PYTHON_ISORT, RUST_CLIPPY.
- Refactor linter tests to make them shorter because there's no need to
  have big test files.
- Refactor 'bad' linter tests for linters that support fix mode so they
  contain only automatically fixable issues. This is needed to avoid
  adding another set of 'bad' linter tests for fix mode.
- Provide configuration files for linters that support fix mode and for
  which the default configuration is not suitable to enable fix mode:
  ansible-lint, ESLint, golangci-lint.
- Add a test case for linter commands options for linters that support
  fix mode, to ensure that fix mode and check-only mode options have
  been defined.
- Refactor the fix mode test to check if linters actually applied
  modifications to files.
- Update documentation about adding test cases for linters that support
  fix mode.
- Don't exit with a fatal error if VALIDATE_xxx is false when testing
  fix mode because not all linters support fix mode. To enable this, set
  the new FIX_MODE_TEST_CASE_RUN variable to true.
2024-08-12 12:31:38 +02:00

50 lines
1.5 KiB
JSON

{
"absolute": true,
"ignore": [
"**/ISSUE_TEMPLATE/bug_report.yml",
"**/ISSUE_TEMPLATE/feature_request.yml",
"**/node_modules/**",
"**/test/data/**",
"**/test/linters/ansible/**",
"**/test/linters/clojure",
"**/test/linters/cloudformation",
"**/test/linters/coffeescript",
"**/test/linters/css",
"**/test/linters/html",
"**/test/linters/javascript_es",
"**/test/linters/javascript_prettier",
"**/test/linters/javascript_standard",
"**/test/linters/jscpd/bad",
"**/test/linters/latex",
"**/test/linters/perl",
"**/test/linters/php_builtin",
"**/test/linters/php_phpcs",
"**/test/linters/php_phpstan",
"**/test/linters/php_psalm",
"**/test/linters/protobuf",
"**/test/linters/python_black",
"**/test/linters/python_flake8",
"**/test/linters/python_isort",
"**/test/linters/python_mypy",
"**/test/linters/python_pylint",
"**/test/linters/python_ruff",
"**/test/linters/r",
"**/test/linters/ruby",
"**/test/linters/rust_2015",
"**/test/linters/rust_2018",
"**/test/linters/rust_2021",
"**/test/linters/scalafmt",
"**/test/linters/tekton/**",
"**/test/linters/typescript_es/**",
"**/test/linters/typescript_prettier/**",
"**/test/linters/typescript_standard/**",
"**/test/linters-config/**",
"**/github_conf/**",
"**/workflows/cd.yml",
"**/workflows/ci.yml"
],
"reporters": [
"consoleFull"
],
"threshold": 0
}