You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a proposal to extend ansible-lint's analysis of the folder hierarchy to allow for rules that can check for the presence of a file or directory path. With this change a rule could look at the list of all file and directory paths and perform string matching as desired to flag a rule violation.
In the cli output, current rules state the filename and task where the rule violation occurred which are not applicable here. In order to keep output similar, a possible format is listed below.
Desired behavior (dependent on rules created):
awc:~$ ansible-lint my_role
[401] Git checkouts must contain explicit version
/home/awc/my_role/tasks/main.yml:4
Task/Handler: using git module
[E###] File not found: 'meta/main.yml'
/home/awc/my_role/:0
matchpath() file and directory check
[E###] File not found: 'README.md or README.rst'
/home/awc/my_role/:0
matchpath() file and directory check
This discussion was converted from issue #378 on December 26, 2020 16:18.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Issue Type
Desired Behaviour
This is a proposal to extend ansible-lint's analysis of the folder hierarchy to allow for rules that can check for the presence of a file or directory path. With this change a rule could look at the list of all file and directory paths and perform string matching as desired to flag a rule violation.
In the cli output, current rules state the filename and task where the rule violation occurred which are not applicable here. In order to keep output similar, a possible format is listed below.
Desired behavior (dependent on rules created):
Beta Was this translation helpful? Give feedback.
All reactions