-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(CAT-1488) - Fix rubocop warnings #157
Conversation
cce39c5
to
4ea249d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can confirm #155 also fails on this cop.
24450f3
to
493e2f7
Compare
493e2f7
to
e3a7006
Compare
Why? ``Rspec/FilePath`` is going to be deprecated in the next major release of rubocop >=3.0.0: see <https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/FilePath>. As the new cops are already present, e.g., Rspec/SpecFilePathPathFormat, then disabling this in preparation. NOTE: I've added this to the bottom of ``rubocop_baseline.yml`` to highlight that it is deprecated. Signed-off-by: Gavin Didrichsen <gavin.didrichsen@gmail.com>
c074506
to
284dc12
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to me. I'd stick to wrapping the body of the commit message per https://cbea.ms/git-commit/#wrap-72 but that may be for others to decide on.
Summary
This PR fixes CI by excluding the soon-to-be deprecated Rspec/FilePath.
Additional Context
During investigation and after running
bundle exec rubocop --format github
2 simultaneous warnings were observedRspec/FilePath
(deprecated) andRspec/SpecFilePathFormat
:The warning seem to be expecting a
puppet_lint
directory rather than the currentpuppet-lint
one. After excluding the deprecatedRspec/FilePath
cop, then the rubocop warnings cleared.Since this cop is going to be deprecated in the next major release of rubocop >=3.0.0 according to the documentation, I've:
rubocop_baseline.yml
to highlight that it is deprecated; andChecklist