Skip to content

Commit

Permalink
feat!: run linters against the workspace
Browse files Browse the repository at this point in the history
- Run jscpd, gitleaks, textlint  against the entire workspace instead of
  running them over single files, one by one.
- Implement a warning function for deprecated variables.
- Deprecate the VALIDATE_JSCPD_ALL_CODEBASE variable.
- Remove duplicate configuration files when they are the same as the
  ones we provide in TEMPLATES.
- Add a missing tests for ansible-lint.
- Move ANSIBLE_DIRECTORY configuration when running tests in
  buildFileList, where similar configs are.
- Simplify ansible-lint test cases to include only what's necessary, and
  not an entire set of roles, playbooks, and inventory.
- Write instructions about major upgrades in the upgrade guide.
  • Loading branch information
ferrarimarco committed Dec 22, 2023
1 parent 9d7268f commit f62738a
Show file tree
Hide file tree
Showing 81 changed files with 221 additions and 2,834 deletions.
135 changes: 0 additions & 135 deletions .github/linters/.coffee-lint.json

This file was deleted.

68 changes: 0 additions & 68 deletions .github/linters/.groovylintrc.json

This file was deleted.

10 changes: 10 additions & 0 deletions .github/linters/.jscpd-test-linters.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"absolute": true,
"ignore": [
"**/node_modules/**"
],
"reporters": [
"consoleFull"
],
"threshold": 0
}
33 changes: 33 additions & 0 deletions .github/linters/.jscpd.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,39 @@
{
"absolute": true,
"ignore": [
"**/ISSUE_TEMPLATE/bug_report.yml",
"**/ISSUE_TEMPLATE/feature_request.yml",
"**/node_modules/**",
"**/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/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/**",
"**/workflows/cd.yml"
],
"reporters": [
Expand Down
59 changes: 0 additions & 59 deletions .github/linters/.yaml-lint.yml

This file was deleted.

57 changes: 0 additions & 57 deletions .github/linters/analysis_options.yml

This file was deleted.

0 comments on commit f62738a

Please sign in to comment.