ansible-review icon indicating copy to clipboard operation
ansible-review copied to clipboard

Documentation on disabling standards

Open spiffytech opened this issue 6 years ago • 2 comments

Since #15 remains open, I'd like to disable the files_should_be_indented standard in my codebase. How can I do this?

spiffytech avatar Feb 01 '18 18:02 spiffytech

As the configuration that comes with ansible-review is supposed to be only an example, set up the ansible-review configuration to point to your own copy of standards.py and remove the standard you don't want from the list of standards.

willthames avatar Feb 01 '18 22:02 willthames

It would be nice if one could disable a standard using a special comment in a file. Per repository configuration would be great but, for various reasons, it would be useful to allow a rule to be disabled for a single file. This is typically done by a special comment in a file. Some checkers allow this to be done just for the next line while others change the setting for the entire file.

cvoltz avatar Mar 30 '18 01:03 cvoltz