是否可以添加一些注释来忽略或修改某个块(缩进)上的咖啡规则?
我在脚本上使用了最多80列的规则,但是objetc有一些字符串值,它超过了这个值,而中断行会使代码读起来更糟。
前:
##
# @coffeelint ignore max_line_length
##
object:
attr: "some/huge/line/string/with/embed/#{values}.that/surpasses/the/max/column/width"发布于 2014-05-07 19:17:21
这是它的语法。
# coffeelint: disable=max_line_length
object:
attr: "some/huge/line/string/with/embed/#{values}.that/surpasses/the/max/column/width"
# coffeelint: enable=max_line_lengthhttps://stackoverflow.com/questions/23521665
复制相似问题