9

Is it possible to add some comment to ignore or modify coffeeling rules on a certain block (indented)?

I use the rule for max 80 columns on script, but I have some string values for a objetc that surpasses that value, and break the lines will make the code worse to read.

Ex.:

##
# @coffeelint ignore max_line_length
##
object:
  attr: "some/huge/line/string/with/embed/#{values}.that/surpasses/the/max/column/width"
fracz
  • 20,536
  • 18
  • 103
  • 149
paulodiovani
  • 1,208
  • 2
  • 16
  • 34

1 Answers1

23

Here is the syntax for that.

 # coffeelint: disable=max_line_length
 object:
   attr: "some/huge/line/string/with/embed/#{values}.that/surpasses/the/max/column/width"
 # coffeelint: enable=max_line_length
Asa Ayers
  • 4,854
  • 6
  • 40
  • 57