mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-25 19:03:43 +01:00
Fix Lint/OrAssignmentToConstant
cop (#27750)
This commit is contained in:
parent
cfa14ec6d1
commit
2d39268bc5
2 changed files with 2 additions and 7 deletions
|
@ -24,11 +24,6 @@ Lint/NonLocalExitFromIterator:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'app/helpers/jsonld_helper.rb'
|
- 'app/helpers/jsonld_helper.rb'
|
||||||
|
|
||||||
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
||||||
Lint/OrAssignmentToConstant:
|
|
||||||
Exclude:
|
|
||||||
- 'lib/sanitize_ext/sanitize_config.rb'
|
|
||||||
|
|
||||||
# This cop supports safe autocorrection (--autocorrect).
|
# This cop supports safe autocorrection (--autocorrect).
|
||||||
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
||||||
Lint/UnusedBlockArgument:
|
Lint/UnusedBlockArgument:
|
||||||
|
|
|
@ -64,7 +64,7 @@ class Sanitize
|
||||||
current_node.wrap('<p></p>')
|
current_node.wrap('<p></p>')
|
||||||
end
|
end
|
||||||
|
|
||||||
MASTODON_STRICT ||= freeze_config(
|
MASTODON_STRICT = freeze_config(
|
||||||
elements: %w(p br span a del pre blockquote code b strong u i em ul ol li),
|
elements: %w(p br span a del pre blockquote code b strong u i em ul ol li),
|
||||||
|
|
||||||
attributes: {
|
attributes: {
|
||||||
|
@ -91,7 +91,7 @@ class Sanitize
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
MASTODON_OEMBED ||= freeze_config(
|
MASTODON_OEMBED = freeze_config(
|
||||||
elements: %w(audio embed iframe source video),
|
elements: %w(audio embed iframe source video),
|
||||||
|
|
||||||
attributes: {
|
attributes: {
|
||||||
|
|
Loading…
Reference in a new issue