debian-mirror-gitlab/.haml-lint.yml

168 lines
3.4 KiB
YAML
Raw Normal View History

2016-09-29 09:46:39 +05:30
# Whether to ignore frontmatter at the beginning of HAML documents for
# frameworks such as Jekyll/Middleman
skip_frontmatter: false
exclude:
- 'vendor/**/*'
- 'spec/**/*'
linters:
AltText:
2017-08-17 22:00:37 +05:30
enabled: true
2016-09-29 09:46:39 +05:30
ClassAttributeWithStaticValue:
2017-08-17 22:00:37 +05:30
enabled: true
2016-09-29 09:46:39 +05:30
ClassesBeforeIds:
enabled: false
ConsecutiveComments:
enabled: false
ConsecutiveSilentScripts:
enabled: false
max_consecutive: 2
EmptyObjectReference:
enabled: true
EmptyScript:
enabled: true
FinalNewline:
2017-08-17 22:00:37 +05:30
enabled: true
2016-09-29 09:46:39 +05:30
present: true
HtmlAttributes:
2017-08-17 22:00:37 +05:30
enabled: true
2016-09-29 09:46:39 +05:30
2017-09-10 17:25:29 +05:30
IdNames:
enabled: false
2016-09-29 09:46:39 +05:30
ImplicitDiv:
2017-08-17 22:00:37 +05:30
enabled: true
2016-09-29 09:46:39 +05:30
2017-09-10 17:25:29 +05:30
InlineJavaScript:
enabled: true
InlineStyles:
enabled: false
InstanceVariables:
enabled: false
2016-09-29 09:46:39 +05:30
LeadingCommentSpace:
enabled: false
LineLength:
enabled: false
max: 80
MultilinePipe:
2017-08-17 22:00:37 +05:30
enabled: true
2016-09-29 09:46:39 +05:30
MultilineScript:
enabled: true
ObjectReferenceAttributes:
enabled: true
2017-09-10 17:25:29 +05:30
RepeatedId:
enabled: false
2016-09-29 09:46:39 +05:30
RuboCop:
2018-11-20 20:47:30 +05:30
enabled: true
2016-09-29 09:46:39 +05:30
# These cops are incredibly noisy when it comes to HAML templates, so we
# ignore them.
ignored_cops:
2018-11-20 20:47:30 +05:30
- Layout/BlockAlignment
- Layout/EndAlignment
2016-09-29 09:46:39 +05:30
- Lint/Void
- Metrics/LineLength
2018-11-20 20:47:30 +05:30
- Naming/FileName
2016-09-29 09:46:39 +05:30
- Style/AlignParameters
- Style/BlockNesting
- Style/ElseAlignment
- Style/FileName
- Style/FinalNewline
- Style/FrozenStringLiteralComment
- Style/IfUnlessModifier
- Style/IndentationWidth
- Style/Next
- Style/TrailingBlankLines
- Style/TrailingWhitespace
- Style/WhileUntilModifier
2018-11-20 20:47:30 +05:30
# These cops should eventually get enabled
- Cop/LineBreakAfterGuardClauses
- Cop/LineBreakAroundConditionalBlock
- Cop/ProjectPathHelper
- GitlabSecurity/PublicSend
- Layout/LeadingCommentSpace
- Layout/SpaceAfterColon
- Layout/SpaceAfterComma
- Layout/SpaceAroundOperators
- Layout/SpaceBeforeBlockBraces
- Layout/SpaceBeforeComma
- Layout/SpaceBeforeFirstArg
- Layout/SpaceInsideArrayLiteralBrackets
- Layout/SpaceInsideHashLiteralBraces
- Layout/SpaceInsideStringInterpolation
- Layout/TrailingBlankLines
- Lint/BooleanSymbol
- Lint/LiteralInInterpolation
- Lint/ParenthesesAsGroupedExpression
- Lint/RedundantWithIndex
- Lint/Syntax
- Metrics/BlockNesting
- Naming/VariableName
- Performance/RedundantMatch
- Performance/StringReplacement
- Rails/Presence
- Rails/RequestReferer
- Style/AndOr
- Style/ColonMethodCall
- Style/ConditionalAssignment
- Style/HashSyntax
- Style/IdenticalConditionalBranches
- Style/NegatedIf
- Style/NestedTernaryOperator
- Style/Not
- Style/ParenthesesAroundCondition
- Style/RedundantParentheses
- Style/SelfAssignment
- Style/Semicolon
- Style/TernaryParentheses
- Style/TrailingCommaInHashLiteral
- Style/UnlessElse
- Style/WordArray
- Style/ZeroLengthPredicate
2016-09-29 09:46:39 +05:30
RubyComments:
2017-08-17 22:00:37 +05:30
enabled: true
2016-09-29 09:46:39 +05:30
SpaceBeforeScript:
2017-08-17 22:00:37 +05:30
enabled: true
2016-09-29 09:46:39 +05:30
SpaceInsideHashAttributes:
2017-08-17 22:00:37 +05:30
enabled: true
2016-09-29 09:46:39 +05:30
style: space
Indentation:
enabled: true
character: space # or tab
TagName:
enabled: true
TrailingWhitespace:
2017-08-17 22:00:37 +05:30
enabled: true
2016-09-29 09:46:39 +05:30
UnnecessaryInterpolation:
2017-08-17 22:00:37 +05:30
enabled: true
2016-09-29 09:46:39 +05:30
UnnecessaryStringOutput:
2017-08-17 22:00:37 +05:30
enabled: true
2017-09-10 17:25:29 +05:30
ViewLength:
enabled: false