最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

ansible-lint: Is there a way to ignore errors in all files, without specifying file names? - Stack Overflow

programmeradmin2浏览0评论

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?

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论