Skip to content
This repository has been archived by the owner on Aug 1, 2020. It is now read-only.

Allow rule skip via comment #137

Open
claco opened this issue May 31, 2013 · 2 comments
Open

Allow rule skip via comment #137

claco opened this issue May 31, 2013 · 2 comments

Comments

@claco
Copy link

claco commented May 31, 2013

Somewhat similiar to ## no critic in perl-critic, allow the skipping of tailor checking for a line/block via specialized comments.

As an example:

Chef::Log.warn "some string that is just pas the 79 line length"

There really is no way, nor a need to shorten this line for the sake of meeting tailor style guidelines. Anything you do to it makes it less readable. It would be nice to skip lines like these:

Chef::Log.warn "some string that is just pas the 79 line length"  ## no tailor

or:

Chef::Log.warn "some string that is just pas the 79 line length"  # violates(max_line_length)
@turboladen
Copy link
Owner

Great idea. What do you think about following conventions used by RDoc: http://stackoverflow.com/questions/1709630/why-is-the-nodoc-syntax-needed

...something like:

Chef::Log.warn "some string that is just pas the 79 line length"  # :notailor:

@claco
Copy link
Author

claco commented Jun 4, 2013

That would be awesome. :-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants