Commit 4497a501 authored by Vitaly Slobodin's avatar Vitaly Slobodin

Merge branch 'tnir/Lint/RedundantWithIndex' into 'master'

Enable Lint/RedundantWithIndex cop for HAML

See merge request gitlab-org/gitlab!59607
parents 5185e928 cd916287
...@@ -118,7 +118,6 @@ linters: ...@@ -118,7 +118,6 @@ linters:
- Layout/TrailingEmptyLines - Layout/TrailingEmptyLines
- Lint/LiteralInInterpolation - Lint/LiteralInInterpolation
- Lint/ParenthesesAsGroupedExpression - Lint/ParenthesesAsGroupedExpression
- Lint/RedundantWithIndex
- Lint/SafeNavigationConsistency - Lint/SafeNavigationConsistency
- Metrics/BlockNesting - Metrics/BlockNesting
- Naming/VariableName - Naming/VariableName
......
.js-projects-list-holder .js-projects-list-holder
- if @projects.any? - if @projects.any?
%ul.projects-list.content-list.admin-projects %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?) } %li.project-row{ class: ('no-description' if project.description.blank?) }
.controls .controls
= link_to _('Edit'), edit_project_path(project), id: "edit_#{dom_id(project)}", class: "btn gl-button btn-default" = link_to _('Edit'), edit_project_path(project), id: "edit_#{dom_id(project)}", class: "btn gl-button btn-default"
......
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