Commit 017dd1b9 authored by Takuya Noguchi's avatar Takuya Noguchi

Enable Style/AndOr and Style/Not in Rubocop for HAML

Signed-off-by: default avatarTakuya Noguchi <takninnovationresearch@gmail.com>
parent 6bb56c2c
......@@ -130,14 +130,12 @@ linters:
- Rails/LinkToBlank
- 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
......
- if milestone.expired? and not milestone.closed?
- if milestone.expired? && !milestone.closed?
.gl-badge.badge-warning.badge-pill.gl-mb-2= _('Expired')
- if milestone.upcoming?
.gl-badge.badge-primary.badge-pill.gl-mb-2= _('Upcoming')
......
......@@ -6,7 +6,7 @@
.svg-content
= image_tag illustration_path, size: '75'
.text-content
- if user_profile? and current_user.present? and current_user.username == params[:username]
- if user_profile? && current_user.present? && current_user.username == params[:username]
%h5= current_user_empty_message_header
- if current_user_empty_message_description.present?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment