Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-12-13 03:15:40 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-12-13 03:15:40 +0300
commit95e5fa3fb3882addb4672f3f123bc122e84fb52c (patch)
tree7f4024b168571308f6c7c9f3cc6e92ed6ae4d7c2 /.haml-lint.yml
parent42a4fe5b394e010b3f512a5a138359618295193b (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to '.haml-lint.yml')
-rw-r--r--.haml-lint.yml34
1 files changed, 25 insertions, 9 deletions
diff --git a/.haml-lint.yml b/.haml-lint.yml
index 64eb1ff0a09..537722e8bcc 100644
--- a/.haml-lint.yml
+++ b/.haml-lint.yml
@@ -88,31 +88,43 @@ linters:
# These cops are incredibly noisy when it comes to HAML templates, so we
# ignore them.
- Layout/BlockAlignment
- - Layout/EndAlignment
+ - Layout/HashAlignment
+ - Layout/IndentationConsistency
+ - Layout/IndentationWidth
- Layout/LineLength
+ - Layout/TrailingWhitespace
- Lint/Void
- Naming/FileName
- - Style/AlignParameters
- - Style/BlockNesting
- - Style/ElseAlignment
- - Style/FileName
- - Style/FinalNewline
+ - Layout/ElseAlignment
- Style/FrozenStringLiteralComment
- Style/IfUnlessModifier
- - Style/IndentationWidth
- Style/Next
- Style/SoleNestedConditional
- - Style/TrailingWhitespace
+ - Style/StringLiteralsInInterpolation
- Style/WhileUntilModifier
- Cop/StaticTranslationDefinition
# These cops should eventually get enabled
+
+ # haml-lint force enables these: https://github.com/sds/haml-lint/blob/v0.51.0/config/forced_rubocop_config.yml
+ - Layout/ArgumentAlignment
+ - Layout/ArrayAlignment
+ - Layout/EndAlignment
+
- Cop/LineBreakAfterGuardClauses
+ - Cop/LineBreakAroundConditionalBlock
- Cop/ProjectPathHelper
+ - Gitlab/FeatureAvailableUsage
- Gitlab/Json
- GitlabSecurity/PublicSend
+ - Layout/FirstHashElementIndentation
- Layout/EmptyLineAfterGuardClause
+ - Layout/EmptyLines
+ - Layout/EmptyLinesAroundBlockBody
+ - Layout/ExtraSpacing
+ - Layout/InitialIndentation
- Layout/LeadingCommentSpace
+ - Layout/MultilineHashBraceLayout
- Layout/SpaceAroundOperators
- Layout/SpaceBeforeComma
- Layout/SpaceBeforeFirstArg
@@ -123,6 +135,7 @@ linters:
- Lint/AssignmentInCondition
- Lint/LiteralInInterpolation
- Lint/ParenthesesAsGroupedExpression
+ - Lint/RedundantStringCoercion
- Lint/SafeNavigationConsistency
- Lint/SymbolConversion
- Lint/UnusedBlockArgument
@@ -140,6 +153,7 @@ linters:
- Style/IdenticalConditionalBranches
- Style/IfInsideElse
- Style/InlineDisableAnnotation
+ - Style/MultilineTernaryOperator
- Style/NegatedIf
- Style/NestedTernaryOperator
- Style/RedundantInterpolation
@@ -148,7 +162,6 @@ linters:
- Style/TernaryParentheses
- Style/TrailingCommaInHashLiteral
- Style/UnlessElse
- - Style/UnneededCondition
- Style/WordArray
- Style/ZeroLengthPredicate
@@ -178,6 +191,9 @@ linters:
TagName:
enabled: true
+ TrailingEmptyLines:
+ enabled: false
+
TrailingWhitespace:
enabled: true