Skip to content

Commit

Permalink
Extend ignored_cops of haml_lint
Browse files Browse the repository at this point in the history
Layout/AlignHash needs to be ignored too as the
extracted ruby code is not indented as the HAML is
  • Loading branch information
coolo committed Nov 14, 2018
1 parent 02338bf commit 526e86c
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/api/.haml-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,30 @@ linters:
matchers:
not_breadcrumb_items: \A_(?!breadcrumb_items).*\.haml\z

RuboCop:
enabled: true
# These cops are incredibly noisy when it comes to HAML templates, so we
# ignore them.
ignored_cops:
- Lint/BlockAlignment
- Lint/EndAlignment
- Lint/Void
- Layout/AlignParameters
- Layout/ElseAlignment
- Layout/EndOfLine
- Layout/IndentationWidth
- Layout/TrailingBlankLines
- Layout/TrailingWhitespace
- Layout/AlignHash
- Metrics/BlockLength
- Metrics/BlockNesting
- Metrics/LineLength
- Naming/FileName
- Style/FrozenStringLiteralComment
- Style/IfUnlessModifier
- Style/Next
- Style/WhileUntilModifier

exclude:
- 'vendor/bundle/**/*'
# Everything below is the old interface. We only lint the new Bootstrap interface
Expand Down

0 comments on commit 526e86c

Please sign in to comment.