Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
017dd1b9
Commit
017dd1b9
authored
Apr 10, 2021
by
Takuya Noguchi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable Style/AndOr and Style/Not in Rubocop for HAML
Signed-off-by:
Takuya Noguchi
<
takninnovationresearch@gmail.com
>
parent
6bb56c2c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
4 deletions
+2
-4
.haml-lint.yml
.haml-lint.yml
+0
-2
app/views/shared/_milestone_expired.html.haml
app/views/shared/_milestone_expired.html.haml
+1
-1
app/views/shared/empty_states/_profile_tabs.html.haml
app/views/shared/empty_states/_profile_tabs.html.haml
+1
-1
No files found.
.haml-lint.yml
View file @
017dd1b9
...
...
@@ -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
...
...
app/views/shared/_milestone_expired.html.haml
View file @
017dd1b9
-
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'
)
...
...
app/views/shared/empty_states/_profile_tabs.html.haml
View file @
017dd1b9
...
...
@@ -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?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment