tailor
tailor copied to clipboard
Allow rule skip via comment
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)
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:
That would be awesome. :-)