1
0

.haml-lint.yml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. # Whether to ignore frontmatter at the beginning of HAML documents for
  2. # frameworks such as Jekyll/Middleman
  3. skip_frontmatter: false
  4. exclude:
  5. - 'vendor/**/*'
  6. - 'spec/**/*'
  7. - 'lib/templates/**/*'
  8. - 'app/views/kaminari/**/*'
  9. linters:
  10. AltText:
  11. enabled: false
  12. ClassAttributeWithStaticValue:
  13. enabled: true
  14. ClassesBeforeIds:
  15. enabled: true
  16. ConsecutiveComments:
  17. enabled: true
  18. ConsecutiveSilentScripts:
  19. enabled: true
  20. max_consecutive: 2
  21. EmptyObjectReference:
  22. enabled: true
  23. EmptyScript:
  24. enabled: true
  25. FinalNewline:
  26. enabled: true
  27. present: true
  28. HtmlAttributes:
  29. enabled: true
  30. ImplicitDiv:
  31. enabled: true
  32. LeadingCommentSpace:
  33. enabled: true
  34. LineLength:
  35. enabled: false
  36. max: 80
  37. MultilinePipe:
  38. enabled: true
  39. MultilineScript:
  40. enabled: true
  41. ObjectReferenceAttributes:
  42. enabled: true
  43. RuboCop:
  44. enabled: true
  45. # These cops are incredibly noisy when it comes to HAML templates, so we
  46. # ignore them.
  47. ignored_cops:
  48. - Lint/BlockAlignment
  49. - Lint/EndAlignment
  50. - Lint/Void
  51. - Metrics/BlockLength
  52. - Metrics/LineLength
  53. - Style/AlignParameters
  54. - Style/BlockNesting
  55. - Style/ElseAlignment
  56. - Style/EndOfLine
  57. - Style/FileName
  58. - Style/FinalNewline
  59. - Style/FrozenStringLiteralComment
  60. - Style/IfUnlessModifier
  61. - Style/IndentationWidth
  62. - Style/Next
  63. - Style/TrailingBlankLines
  64. - Style/TrailingWhitespace
  65. - Style/WhileUntilModifier
  66. RubyComments:
  67. enabled: true
  68. SpaceBeforeScript:
  69. enabled: true
  70. SpaceInsideHashAttributes:
  71. enabled: true
  72. style: space
  73. Indentation:
  74. enabled: true
  75. character: space # or tab
  76. TagName:
  77. enabled: true
  78. TrailingWhitespace:
  79. enabled: true
  80. UnnecessaryInterpolation:
  81. enabled: true
  82. UnnecessaryStringOutput:
  83. enabled: true