- 
                Notifications
    
You must be signed in to change notification settings  - Fork 9
 
feat: update ruby (3.2/3.1) and rubocop (1.81.1) #197
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
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: Tim Meusel <[email protected]>
| 
           @rwaffen can you please test this on a few modules with lots of ruby files? We need to ensure that there aren't any configured cops that cause warnings, or cops that cause lots of changes.  | 
    
| 
           I'll try to find some...  | 
    
| 
           I'll add some commits to test some cops out.  | 
    
| 
           puuuhhh, was trying puppet-wildfly and was wondering why  will search some other module  | 
    
| 
           puppet-extlib looking okay (no warns, or errors), but newer rubocop finds newer things to nag about 🤔  | 
    
| 
           puppet-icinga2 also looking okayish  | 
    
| 
           puppet-yum looking okayish  | 
    
| 
           puppet-systemd looking okayish  | 
    
| 
           puppet-prometheus looking okayish  | 
    
| 
           puppet-nginx looking okayish  | 
    
| 
           Now the tricky question is: Do any of the new cops, that require manual intervention, provide any benefit? And can they be autofixed? Maybe it makes sense to disable the cops instead. Because if it takes us half a year to update the ruby files in all of our modules, we just won't do it. That also explains why the rubocop.yml is so long and why we rarely touched it in the past.  | 
    
| 
           so you want to basically disable all cops after 1.50? and make 1.81 behave like 1.50? thats a bit strange to me.  | 
    
| 
           TODOs after talking with @bastelfreak 
  | 
    
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.
It took me a while to figure out that RuboCop was provided as an API to modules. I'd still be tempted to separate the Ruby update and RuboCop into separate PRs for a cleaner changelog.
Another note on commit message: I'd say "Require Ruby 3.2+" instead of "update ruby".
| RSpec/SpecFilePathFormat: | ||
| Enabled: false | ||
| 
               | 
          ||
| RSpec/SpecFilePathSuffix: | 
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 we please keep this enabled? It avoids situations like puppetlabs/puppetlabs-postgresql#1633 and puppetlabs/puppetlabs-postgresql#1634. It was actually the RSpec/SpecFilePathFormat that was the "too picky" part and I'm glad they separated the cops into 2.
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 do, just disabled it, as the "original" it was splitted from was also disabled.
| 
           can also split up, yes  | 
    
| 
           @ekohl would you only move the gemspec require or also the targetrubyversion out of the pr? Or both?  | 
    
No description provided.