Commit fc4ba137 authored by Mike Greiling's avatar Mike Greiling

Merge branch 'tnir/rubocop-Style/AndOr-Style/Not' into 'master'

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

See merge request gitlab-org/gitlab!59071
parents 7b0c9020 017dd1b9
......@@ -129,14 +129,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