Commit 94ac9d12 authored by Vitaly Slobodin's avatar Vitaly Slobodin

Merge branch 'tnir/Style/ParenthesesAroundCondition' into 'master'

Enable Style/ParenthesesAroundCondition cop for HAML-lint

See merge request gitlab-org/gitlab!59553
parents 94fe7bff a6693ecd
......@@ -132,7 +132,6 @@ linters:
- Style/IdenticalConditionalBranches
- Style/NegatedIf
- Style/NestedTernaryOperator
- Style/ParenthesesAroundCondition
- Style/SelfAssignment
- Style/TernaryParentheses
- Style/TrailingCommaInHashLiteral
......
- packages_link = project_nav_tab?(:packages) ? project_packages_path(@project) : project_container_registry_index_path(@project)
- if (project_nav_tab?(:packages) || project_nav_tab?(:container_registry))
- if project_nav_tab?(:packages) || project_nav_tab?(:container_registry)
= nav_link controller: [:packages, :repositories, :infrastructure_registry] do
= link_to packages_link, data: { qa_selector: 'packages_link' } do
.nav-icon-container
......
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