superlint/lib/functions
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
..
buildFileList.sh feat: save super-linter output if requested (#5806) 2024-07-01 14:50:52 +02:00
detectFiles.sh fix: don't skip processing ansible_directory pwd (#5790) 2024-06-19 16:58:11 +00:00
githubDomain.sh feat: configure github server url (#5792) 2024-06-21 08:54:19 +02:00
githubEvent.sh feat: automatically set the default branch (#5242) 2024-02-08 08:41:07 +00:00
linterCommands.sh fix: use cargo clippy instead of cargo-clippy (#5988) 2024-08-11 23:18:33 +02:00
linterRules.sh chore: simplify error code checks (#5131) 2024-01-30 08:48:24 +01:00
log.sh fix: respect log level when writing to the log (#5546) 2024-04-20 09:18:14 +00:00
output.sh fix: avoid duplicated content in summary (#5939) 2024-07-30 08:35:14 +02:00
possum.sh break out: (#990) 2020-11-12 11:27:34 -06:00
setupSSH.sh feat: enable shell error checks (#5126) 2024-02-20 19:05:39 +00:00
updateSSL.sh feat: enable shell error checks (#5126) 2024-02-20 19:05:39 +00:00
validation.sh fix: add missing fix mode options and test cases (#5987) 2024-08-12 12:31:38 +02:00
worker.sh fix: add missing fix mode options and test cases (#5987) 2024-08-12 12:31:38 +02:00