Fix haml-lint Rubocop `Style/SlicingWithRange` cop (#25947)
parent
80fa2baa3d
commit
4bbb68d888
|
@ -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:
|
||||
|
|
|
@ -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..]
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue