admin管理员组文章数量:1356716
I work in a large ansible repository without linting, and I would like to add linting. Usually I would add a linter, run it, note all current errors and warnings, add them to an ignore-file and then commit that to the repository. This way, all old sins are allowed for now, but any new error will get reported. I can then pick the ignored rules one by one and address them, and remove them from the ignore file (or leave them in if we decide that we want it that way).
With ansible-lint, however, I am unable to find a way of doing this. There is the .ansible-lint-ignore file, but with that I only seem able to ignore on a filename basis and not for all files? I don't want to add all current errors for all files in the entire repository to this file if possible. And adding just the current errors for the current files will not ignore the same errors being made in new files, so to speak.
Is there any way of doing this? If not, how do you all adopt working with ansible-lint in an effective way?
本文标签:
版权声明:本文标题:ansible-lint: Is there a way to ignore errors in all files, without specifying file names? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744048428a2581970.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论