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
cd916287
Commit
cd916287
authored
Apr 19, 2021
by
Takuya Noguchi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable Lint/RedundantWithIndex cop for HAML
Signed-off-by:
Takuya Noguchi
<
takninnovationresearch@gmail.com
>
parent
a939d096
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
.haml-lint.yml
.haml-lint.yml
+0
-1
app/views/admin/projects/_projects.html.haml
app/views/admin/projects/_projects.html.haml
+1
-1
No files found.
.haml-lint.yml
View file @
cd916287
...
...
@@ -119,7 +119,6 @@ linters:
-
Lint/BooleanSymbol
-
Lint/LiteralInInterpolation
-
Lint/ParenthesesAsGroupedExpression
-
Lint/RedundantWithIndex
-
Lint/SafeNavigationConsistency
-
Metrics/BlockNesting
-
Naming/VariableName
...
...
app/views/admin/projects/_projects.html.haml
View file @
cd916287
.js-projects-list-holder
-
if
@projects
.
any?
%ul
.projects-list.content-list.admin-projects
-
@projects
.
each
_with_index
do
|
project
|
-
@projects
.
each
do
|
project
|
%li
.project-row
{
class:
(
'no-description'
if
project
.
description
.
blank?
)
}
.controls
=
link_to
_
(
'Edit'
),
edit_project_path
(
project
),
id:
"edit_
#{
dom_id
(
project
)
}
"
,
class:
"btn gl-button btn-default"
...
...
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