Skip to content

Commit 2d06a15

Browse files
authored
Removed experimental flag from multiple rules (#3037)
1 parent 8421fae commit 2d06a15

File tree

12 files changed

+14
-21
lines changed

12 files changed

+14
-21
lines changed

examples/playbooks/strict-mode.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
- name: Fixture for test_strict
33
hosts: localhost
44
tasks:
5-
- ansible.builtin.debug: # <-- name should be first key (warning)
6-
msg: "Hello World"
7-
name: Display debug information
5+
- name: Display debug information
6+
ansible.builtin.stat:
7+
path2: echo "Hello World" # <-- args[module] due to invalid use of path2 instead of path
8+
changed_when: false

src/ansiblelint/config.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,8 @@
2727
)
2828

2929
DEFAULT_WARN_LIST = [
30-
"avoid-implicit",
3130
"experimental",
32-
"fqcn[action]",
33-
"fqcn[redirect]",
3431
"jinja[spacing]", # warning until we resolve all reported false-positives
35-
"name[casing]",
36-
"name[play]",
37-
"name[prefix]",
38-
"role-name",
39-
"role-name[path]", # too new
4032
]
4133

4234
DEFAULT_KINDS = [

src/ansiblelint/rules/avoid_implicit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class AvoidImplicitRule(AnsibleLintRule):
2121
"``copy`` with ``content`` to ensure correctness."
2222
)
2323
severity = "MEDIUM"
24-
tags = ["unpredictability", "experimental"]
24+
tags = ["unpredictability"]
2525
version_added = "v6.8.0"
2626

2727
def matchtask(

src/ansiblelint/rules/ignore_errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class IgnoreErrorsRule(AnsibleLintRule):
2121
"to reduce the risk of ignoring important failures."
2222
)
2323
severity = "LOW"
24-
tags = ["unpredictability", "experimental"]
24+
tags = ["unpredictability"]
2525
version_added = "v5.0.7"
2626

2727
def matchtask(

src/ansiblelint/rules/key_order.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class KeyOrderRule(AnsibleLintRule):
5353
id = "key-order"
5454
shortdesc = __doc__
5555
severity = "LOW"
56-
tags = ["formatting", "experimental"]
56+
tags = ["formatting"]
5757
version_added = "v6.6.2"
5858
needs_raw_task = True
5959

src/ansiblelint/rules/no_free_form.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class NoFreeFormRule(AnsibleLintRule):
1919
id = "no-free-form"
2020
description = "Avoid free-form inside files as it can produce subtile bugs."
2121
severity = "MEDIUM"
22-
tags = ["syntax", "risk", "experimental"]
22+
tags = ["syntax", "risk"]
2323
version_added = "v6.8.0"
2424
needs_raw_task = True
2525
cmd_shell_re = re.compile(

src/ansiblelint/rules/no_prompting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class NoPromptingRule(AnsibleLintRule):
2020
"Disallow the use of vars_prompt or ansible.builtin.pause to better"
2121
"accommodate unattended playbook runs and use in CI pipelines."
2222
)
23-
tags = ["opt-in", "experimental"]
23+
tags = ["opt-in"]
2424
severity = "VERY_LOW"
2525
version_added = "v6.0.3"
2626

src/ansiblelint/rules/risky_file_permissions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class MissingFilePermissionsRule(AnsibleLintRule):
7878
)
7979
link = "https://github.com/ansible/ansible/issues/71200"
8080
severity = "VERY_HIGH"
81-
tags = ["unpredictability", "experimental"]
81+
tags = ["unpredictability"]
8282
version_added = "v4.3.0"
8383

8484
_modules = _MODULES

src/ansiblelint/rules/run_once.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class RunOnce(AnsibleLintRule):
1919
link = "https://docs.ansible.com/ansible/latest/reference_appendices/playbooks_keywords.html"
2020
description = "When using run_once, we should avoid using strategy as free."
2121

22-
tags = ["idiom", "experimental"]
22+
tags = ["idiom"]
2323
severity = "MEDIUM"
2424

2525
def matchplay(self, file: Lintable, data: dict[str, Any]) -> list[MatchError]:

src/ansiblelint/rules/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class ValidateSchemaRule(AnsibleLintRule):
5050

5151
id = "schema"
5252
severity = "VERY_HIGH"
53-
tags = ["core", "experimental"]
53+
tags = ["core"]
5454
version_added = "v6.1.0"
5555

5656
def matchtask(

0 commit comments

Comments
 (0)