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
ab28ee2e
Commit
ab28ee2e
authored
Apr 08, 2021
by
Takuya Noguchi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable Style/RedundantParentheses cop for HAML
Signed-off-by:
Takuya Noguchi
<
takninnovationresearch@gmail.com
>
parent
9f545b52
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
6 additions
and
7 deletions
+6
-7
.haml-lint.yml
.haml-lint.yml
+0
-1
app/views/award_emoji/_awards_block.html.haml
app/views/award_emoji/_awards_block.html.haml
+1
-1
app/views/groups/edit.html.haml
app/views/groups/edit.html.haml
+1
-1
app/views/import/fogbugz/new_user_map.html.haml
app/views/import/fogbugz/new_user_map.html.haml
+1
-1
app/views/layouts/header/_read_only_banner.html.haml
app/views/layouts/header/_read_only_banner.html.haml
+1
-1
app/views/registrations/welcome/show.html.haml
app/views/registrations/welcome/show.html.haml
+1
-1
app/views/shared/tokens/_scopes_form.html.haml
app/views/shared/tokens/_scopes_form.html.haml
+1
-1
No files found.
.haml-lint.yml
View file @
ab28ee2e
...
...
@@ -135,7 +135,6 @@ linters:
-
Style/NegatedIf
-
Style/NestedTernaryOperator
-
Style/ParenthesesAroundCondition
-
Style/RedundantParentheses
-
Style/SelfAssignment
-
Style/TernaryParentheses
-
Style/TrailingCommaInHashLiteral
...
...
app/views/award_emoji/_awards_block.html.haml
View file @
ab28ee2e
...
...
@@ -9,7 +9,7 @@
.awards.js-awards-block
{
class:
(
"hidden"
if
!
inline
&&
grouped_emojis
.
empty?
),
data:
{
award_url:
toggle_award_url
(
awardable
)
}
}
-
awards_sort
(
grouped_emojis
).
each
do
|
emoji
,
awards
|
%button
.gl-button.btn.btn-default.award-control.js-emoji-btn.has-tooltip
{
type:
"button"
,
class:
[
(
award_state_class
(
awardable
,
awards
,
current_user
)
)],
class:
[
award_state_class
(
awardable
,
awards
,
current_user
)],
data:
{
title:
award_user_list
(
awards
,
current_user
)
}
}
=
emoji_icon
(
emoji
)
%span
.award-control-text.js-counter
...
...
app/views/groups/edit.html.haml
View file @
ab28ee2e
...
...
@@ -5,7 +5,7 @@
=
render
'shared/namespaces/cascading_settings/lock_popovers'
%section
.settings.gs-general.no-animate
#js-general-settings
{
class:
(
'expanded'
)
}
%section
.settings.gs-general.no-animate
.expanded
#js-general-settings
.settings-header
%h4
.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
{
role:
'button'
}
=
_
(
'Naming, visibility'
)
...
...
app/views/import/fogbugz/new_user_map.html.haml
View file @
ab28ee2e
...
...
@@ -32,7 +32,7 @@
%tbody
-
@user_map
.
each
do
|
id
,
user
|
%tr
%td
=
(
id
)
%td
=
id
%td
=
text_field_tag
"users[
#{
id
}
][name]"
,
user
[
:name
],
class:
'form-control'
%td
=
text_field_tag
"users[
#{
id
}
][email]"
,
user
[
:email
],
class:
'form-control'
%td
...
...
app/views/layouts/header/_read_only_banner.html.haml
View file @
ab28ee2e
...
...
@@ -2,6 +2,6 @@
-
if
message
.flash-container.flash-container-page
.flash-notice
%div
{
class:
(
container_class
)
}
%div
{
class:
container_class
}
%span
=
message
app/views/registrations/welcome/show.html.haml
View file @
ab28ee2e
...
...
@@ -20,7 +20,7 @@
=
f
.
select
:role
,
::
User
.
roles
.
keys
.
map
{
|
role
|
[
role
.
titleize
,
role
]
},
{},
class:
'form-control js-user-role-dropdown'
,
autofocus:
true
-
if
Feature
.
enabled?
(
:user_other_role_details
)
.row
.form-group.col-sm-12.js-other-role-group
{
class:
(
"hidden"
)
}
.form-group.col-sm-12.js-other-role-group
.hidden
=
f
.
label
:other_role
,
_
(
'What is your job title? (optional)'
),
class:
'form-check-label gl-mb-3'
=
f
.
text_field
:other_role
,
class:
'form-control'
=
render_if_exists
"registrations/welcome/setup_for_company"
,
f:
f
...
...
app/views/shared/tokens/_scopes_form.html.haml
View file @
ab28ee2e
...
...
@@ -5,5 +5,5 @@
-
scopes
.
each
do
|
scope
|
%fieldset
.form-group.form-check
=
check_box_tag
"
#{
prefix
}
[scopes][]"
,
scope
,
token
.
scopes
.
include?
(
scope
),
id:
"
#{
prefix
}
_scopes_
#{
scope
}
"
,
class:
"form-check-input qa-
#{
scope
}
-radio"
=
label_tag
(
"
#{
prefix
}
_scopes_
#{
scope
}
"
)
,
scope
,
class:
'label-bold form-check-label'
=
label_tag
"
#{
prefix
}
_scopes_
#{
scope
}
"
,
scope
,
class:
'label-bold form-check-label'
.text-secondary
=
t
scope
,
scope:
scope_description
(
prefix
)
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