We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Performance/FixedSize should not be triggered for constants definitions.
SOME_CONST = "abc".length # this works ok SOME_CONST = "abc".length + 1 # should also work and not trigger cop
SOME_CONST = "abc".length # this works ok SOME_CONST = "abc".length + 1 # this triggers Performance/FixedSize
SOME_CONST = "abc".length SOME_CONST = "abc".length + 1
0.67.2 (using Parser 2.6.2.1, running on ruby 2.5.3 x86_64-darwin18)
The text was updated successfully, but these errors were encountered:
[Fix rubocop#54] Fix Performance/FixedSize to accept const assign w…
Performance/FixedSize
e3caa12
…ith some operation
Successfully merging a pull request may close this issue.
Performance/FixedSize should not be triggered for constants definitions.
Expected behavior
Actual behavior
Steps to reproduce the problem
RuboCop version
The text was updated successfully, but these errors were encountered: