tailor icon indicating copy to clipboard operation
tailor copied to clipboard

Allow rule skip via comment

Open claco opened this issue 12 years ago • 2 comments
trafficstars

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)

claco avatar May 31 '13 16:05 claco

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:

turboladen avatar Jun 04 '13 20:06 turboladen

That would be awesome. :-)

claco avatar Jun 04 '13 22:06 claco