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: ...@@ -129,14 +129,12 @@ linters:
- Rails/LinkToBlank - Rails/LinkToBlank
- Rails/Presence - Rails/Presence
- Rails/RequestReferer - Rails/RequestReferer
- Style/AndOr
- Style/ColonMethodCall - Style/ColonMethodCall
- Style/ConditionalAssignment - Style/ConditionalAssignment
- Style/HashSyntax - Style/HashSyntax
- Style/IdenticalConditionalBranches - Style/IdenticalConditionalBranches
- Style/NegatedIf - Style/NegatedIf
- Style/NestedTernaryOperator - Style/NestedTernaryOperator
- Style/Not
- Style/ParenthesesAroundCondition - Style/ParenthesesAroundCondition
- Style/RedundantParentheses - Style/RedundantParentheses
- Style/SelfAssignment - Style/SelfAssignment
......
- if milestone.expired? and not milestone.closed? - if milestone.expired? && !milestone.closed?
.gl-badge.badge-warning.badge-pill.gl-mb-2= _('Expired') .gl-badge.badge-warning.badge-pill.gl-mb-2= _('Expired')
- if milestone.upcoming? - if milestone.upcoming?
.gl-badge.badge-primary.badge-pill.gl-mb-2= _('Upcoming') .gl-badge.badge-primary.badge-pill.gl-mb-2= _('Upcoming')
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
.svg-content .svg-content
= image_tag illustration_path, size: '75' = image_tag illustration_path, size: '75'
.text-content .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 %h5= current_user_empty_message_header
- if current_user_empty_message_description.present? - 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