-
Notifications
You must be signed in to change notification settings - Fork 666
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to auto-fix fcqn rule violations (#3316)
Signed-off-by: Markus Teufelberger <[email protected]> Co-authored-by: Markus Teufelberger <[email protected]>
- Loading branch information
Showing
7 changed files
with
72 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -174,6 +174,7 @@ jsonfile | |
jsonschema | ||
junitxml | ||
keepends | ||
keypair | ||
keyserver | ||
konstruktoid | ||
kubernetes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
- name: FQCN transform test file | ||
hosts: localhost | ||
tasks: | ||
- name: Rewrite shell to ansible.builtin.shell via the fqcn[action-core] transform # noqa: command-instead-of-shell | ||
ansible.builtin.shell: echo This rule should get matched by the fqcn[action-core] rule | ||
changed_when: false | ||
- name: Rewrite openssh_keypair to community.crypto.openssh_keypair via the fqcn[action] transform | ||
community.crypto.openssh_keypair: | ||
path: /tmp/supersecret | ||
- name: Rewrite ansible.builtin.synchronize to ansible.posix.synchronize via the fqcn[canonical] transform | ||
ansible.posix.synchronize: | ||
src: dummy | ||
dest: dummy2 | ||
owner: false | ||
group: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
- name: FQCN transform test file | ||
hosts: localhost | ||
tasks: | ||
- name: Rewrite shell to ansible.builtin.shell via the fqcn[action-core] transform # noqa: command-instead-of-shell | ||
shell: echo This rule should get matched by the fqcn[action-core] rule | ||
changed_when: false | ||
- name: Rewrite openssh_keypair to community.crypto.openssh_keypair via the fqcn[action] transform | ||
openssh_keypair: | ||
path: /tmp/supersecret | ||
- name: Rewrite ansible.builtin.synchronize to ansible.posix.synchronize via the fqcn[canonical] transform | ||
ansible.builtin.synchronize: | ||
src: dummy | ||
dest: dummy2 | ||
owner: false | ||
group: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters