Commit Graph

91 Commits

Author SHA1 Message Date
057939ca09
refactor: use lint-like rule identifier 2024-01-27 18:32:29 +01:00
2df48598ec
refactor: drop default standards version and rename to rules (#752)
BREAKING CHANGE: The option to define a `Standards` version has been removed. Every new rule that is added on upcoming releases is activated by default and will also create errors if triggered. The behavior of rules can be controlled by the existing `rules.exclude_filter` or `rules.warning_filter` options.

BREAKING CHANGE: The option `rules.buildin` has been renamed to `rules.builtin`.

BREAKING CHANGE: The option `rules.standards` has been renamed to `rules.dir`.

BREAKING CHANGE: The option `rules.filter` has been renamed to `rules.include_filter`.
2024-01-25 21:40:15 +01:00
8266f92b47
chore: drop yapf and favor of the ruff formatter (#716) 2023-11-10 14:50:48 +01:00
renovate[bot]
52c300d3f2
chore(deps): update dependency ruff to v0.0.282 (#648)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
2023-08-07 10:35:35 +02:00
26ce453fc4
fix: ignore complex changed when checks in rule CheckChangedInWhen (#628) 2023-06-28 15:57:40 +02:00
15e3909660
fix: regression in CheckScmInSrc rule (#610) 2023-05-29 14:51:52 +02:00
adc1801724
fix: fix error on empty or none string src in rule CheckScmInSrc (#608) 2023-05-29 13:47:46 +02:00
9dad9cdb5f
fix: remove with_items from CheckDeprecatedBareVars rule (#593) 2023-04-27 09:22:07 +02:00
ce47455b0f
fix: check for non-empty loop_type in CheckDeprecatedBareVars (#591) 2023-04-26 09:41:50 +02:00
9a9bf37702
feat: add role for deprecated loop bare vars (#586) 2023-04-26 08:58:34 +02:00
4ec8954ab5
fix: improve url and jinja string escapes (#585) 2023-04-20 08:23:12 +02:00
b31d510156
refctor: migrate flake8 to ruff python linter (#540) 2023-02-10 08:51:17 +01:00
64858e467d
chore: remove unversioned file classification (#523) 2023-01-09 20:41:46 +01:00
505a2aef5d
feat: add rule to check standards version (#522) 2023-01-09 16:25:16 +01:00
b4bf13d734
refactor: replace str.format with f-strings (#521) 2023-01-09 11:59:25 +01:00
79d1738322
chore: rename loop var to reflect list item type (#506) 2022-12-12 09:15:05 +01:00
fa35feee18
fix: only check filter strings for separation instead of the entire line (#502) 2022-12-11 12:43:04 +01:00
85e5c41b32
fix: replace potential regex syntax used in filters (#421) 2022-08-01 08:28:10 +02:00
81d33daa69
fix: add 'handlers' to allowed prevlines for CheckTaskSeparation (#249) 2021-10-19 09:01:11 +02:00
58336d35dd
fix: add 'always' to allowed prevlines for CheckTaskSeparation (#241) 2021-10-11 21:26:33 +02:00
b8d4783646
fix: add 'rescue' to allowed prevlines for CheckTaskSeparation (#240) 2021-10-11 16:12:35 +02:00
440aaea5b1
feat: add config option to exclude modules from native yaml check (#236) 2021-10-10 22:59:52 +02:00
dde7eae3b8
feat: add config option to exclude tasks from named task check (#232) 2021-10-10 18:30:40 +02:00
c5f4f2212f
feat: add config option to set allowed literal bools (#225) 2021-10-07 22:59:39 +02:00
e74cd668d9
remove doubleslash entries from CheckNativeYaml task_action 2021-06-08 09:24:17 +02:00
3e6740d498
use utf8 decode 2021-06-08 01:48:39 +02:00
af357c29ce
fix quoting regression 2021-06-07 18:08:56 +02:00
aa29687fc8
fix: fix quoting regression 2021-06-07 17:29:44 +02:00
1652014f9c
fix: fix encoding error if string contains backslashes (#152) 2021-06-07 16:28:14 +02:00
Ankit Dobhal
72d85b002b
refactor: additional code quality improvements (#78) 2021-02-12 16:48:45 +01:00
975450f46a
remove unused helptext formatting in CheckFilePermissionMissing 2021-02-06 15:58:36 +01:00
f41d046f1d
fix: skip CheckFilePermissionMissing if state uses jinja2 2021-02-06 15:44:23 +01:00
bd6a7c576f
fix dependencies check in CheckMetaMain 2021-02-04 21:08:38 +01:00
b1dd83cea6
fix linting 2021-01-31 22:54:56 +01:00
017f61db66
feat: add rule CheckChangedInWhen 2021-01-31 22:42:00 +01:00
a21f599cad
feat: add rule CheckRelativeRolePaths 2021-01-31 22:24:33 +01:00
b050e8c152
fix linting 2021-01-31 18:23:38 +01:00
273b32a200
feat: add rule CheckLocalAction 2021-01-31 18:20:24 +01:00
3bcfb4852e
feat: add rule CheckNestedJinja 2021-01-31 18:05:01 +01:00
3c822b4525
fix linting 2021-01-31 14:44:36 +01:00
f70f0ca1f1
feat: add rule CheckWhenFormat 2021-01-31 14:22:48 +01:00
9e004825d8
fix helptext formatting 2021-01-31 14:22:04 +01:00
dd93c07279
fix linting 2021-01-31 13:45:24 +01:00
4278df2848
fix: ensure galaxy_info is top-level key in meta file 2021-01-31 13:33:57 +01:00
e90b80f12f
feat: add rule CheckMetaChangeFromDefault 2021-01-31 13:33:11 +01:00
e878a3cc33
feat: add rule CheckGitHasVersion 2021-01-31 12:48:32 +01:00
647539e726
feat: add rule CheckFilePermissionOctal 2021-01-31 12:36:51 +01:00
6f2a06357f
rename and fix rule CheckFilePermissionMissing 2021-01-31 12:35:57 +01:00
4362305e46
feat: add rule CheckMissingFilePermission 2021-01-30 17:42:42 +01:00
23f308730e
rename rule to CheckCompareToEmptyString 2021-01-30 16:57:49 +01:00