mirror of
https://github.com/iv-org/invidious.git
synced 2026-01-28 15:58:30 -06:00
Fix Lint/ShadowingOuterLocalVar type of Ameba issues
This commit is contained in:
parent
ca41bbd21b
commit
b6c58cbafc
@ -14,12 +14,6 @@ Lint/UselessAssign:
|
|||||||
- src/invidious/helpers/errors.cr
|
- src/invidious/helpers/errors.cr
|
||||||
- src/invidious/routes/**/*.cr
|
- src/invidious/routes/**/*.cr
|
||||||
|
|
||||||
# Ignore shadowed variable `key` (it works for now, and that's
|
|
||||||
# a sensitive part of the code)
|
|
||||||
Lint/ShadowingOuterLocalVar:
|
|
||||||
Excluded:
|
|
||||||
- src/invidious/helpers/tokens.cr
|
|
||||||
|
|
||||||
Lint/NotNil:
|
Lint/NotNil:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
|
|||||||
@ -45,6 +45,7 @@ def sign_token(key, hash)
|
|||||||
# TODO: figure out which "key" variable is used
|
# TODO: figure out which "key" variable is used
|
||||||
# Ameba reports a warning for "Lint/ShadowingOuterLocalVar" on this
|
# Ameba reports a warning for "Lint/ShadowingOuterLocalVar" on this
|
||||||
# variable, but it's preferable to not touch that (works fine atm).
|
# variable, but it's preferable to not touch that (works fine atm).
|
||||||
|
# ameba:disable Lint/ShadowingOuterLocalVar
|
||||||
hash.each do |key, value|
|
hash.each do |key, value|
|
||||||
next if key == "signature"
|
next if key == "signature"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user