Fixed code quality issues (#15541)
* Added .deepsource.toml * Removed bad use of `alias` * Fixed operand order in the binary expression * Prefixed unused method arguments with an underscore * Replaced the old OpenSSL algorithmic constants with the newer strings initializers. * Removed unnecessary UTF-8 encoding commentmaster
parent
3efa0c54b6
commit
c8d11b8bdb
@ -0,0 +1,18 @@ |
|||||||
|
version = 1 |
||||||
|
|
||||||
|
test_patterns = ["/app/javascript/mastodon/**/__tests__/**"] |
||||||
|
|
||||||
|
[[analyzers]] |
||||||
|
name = "ruby" |
||||||
|
enabled = true |
||||||
|
|
||||||
|
[[analyzers]] |
||||||
|
name = "javascript" |
||||||
|
enabled = true |
||||||
|
|
||||||
|
[analyzers.meta] |
||||||
|
environment = [ |
||||||
|
"nodejs", |
||||||
|
"browser", |
||||||
|
"jest" |
||||||
|
] |
@ -1,5 +1,5 @@ |
|||||||
if String.method_defined?(:blank_as?) |
if String.method_defined?(:blank_as?) |
||||||
class String |
class String |
||||||
alias_method :blank?, :blank_as? |
alias blank? blank_as? |
||||||
end |
end |
||||||
end |
end |
||||||
|
Loading…
Reference in new issue