Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mastodon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pierre Boudes
mastodon
Commits
4207c95d
Unverified
Commit
4207c95d
authored
1 year ago
by
Matt Jankowski
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix haml-lint Rubocop `Style/SlicingWithRange` cop (#25947)
parent
a442a1d1
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.haml-lint_todo.yml
+5
-5
5 additions, 5 deletions
.haml-lint_todo.yml
app/views/accounts/_og.html.haml
+1
-1
1 addition, 1 deletion
app/views/accounts/_og.html.haml
app/views/statuses/show.html.haml
+1
-1
1 addition, 1 deletion
app/views/statuses/show.html.haml
with
7 additions
and
7 deletions
.haml-lint_todo.yml
+
5
−
5
View file @
4207c95d
# This configuration was generated by
# `haml-lint --auto-gen-config`
# on 2023-07-17
09:59
:21 -0400 using Haml-Lint version 0.48.0.
# on 2023-07-17
12:00
:21 -0400 using Haml-Lint version 0.48.0.
# The point is for the user to remove these configuration records
# one by one as the lints are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of Haml-Lint, may require this file to be generated again.
linters
:
# Offense count: 69
RuboCop
:
enabled
:
false
# Offense count: 959
LineLength
:
enabled
:
false
...
...
@@ -19,6 +15,10 @@ linters:
UnnecessaryStringOutput
:
enabled
:
false
# Offense count: 67
RuboCop
:
enabled
:
false
# Offense count: 3
ViewLength
:
exclude
:
...
...
This diff is collapsed.
Click to expand it.
app/views/accounts/_og.html.haml
+
1
−
1
View file @
4207c95d
...
...
@@ -10,4 +10,4 @@
=
opengraph
'og:image:width'
,
'400'
=
opengraph
'og:image:height'
,
'400'
=
opengraph
'twitter:card'
,
'summary'
=
opengraph
'profile:username'
,
acct
(
account
)[
1
..
-
1
]
=
opengraph
'profile:username'
,
acct
(
account
)[
1
..
]
This diff is collapsed.
Click to expand it.
app/views/statuses/show.html.haml
+
1
−
1
View file @
4207c95d
...
...
@@ -13,7 +13,7 @@
=
opengraph
'og:title'
,
"
#{
display_name
(
@account
)
}
(
#{
acct
(
@account
)
}
)"
=
opengraph
'og:url'
,
short_account_status_url
(
@account
,
@status
)
=
opengraph
'og:published_time'
,
@status
.
created_at
.
iso8601
=
opengraph
'profile:username'
,
acct
(
@account
)[
1
..
-
1
]
=
opengraph
'profile:username'
,
acct
(
@account
)[
1
..
]
=
render
'og_description'
,
activity:
@status
=
render
'og_image'
,
activity:
@status
,
account:
@account
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment