Fix haml-lint Rubocop `Style/SlicingWithRange` cop (#25947)

pull/26043/head
Matt Jankowski 2023-07-17 12:18:13 -04:00 committed by GitHub
parent a442a1d1c6
commit 4207c95d4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View File

@ -1,16 +1,12 @@
# 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:

View File

@ -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..]

View File

@ -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