Slackbot
05/02/2023, 2:03 PMGavin Patton
05/02/2023, 2:21 PMGavin Patton
05/02/2023, 2:21 PMPat Riehecky
05/02/2023, 2:21 PMPat Riehecky
05/02/2023, 2:25 PMPat Riehecky
05/02/2023, 2:28 PMError: unrecognized cop or department RSpec/NoExpectationExample found in .rubocop_todo.yml
Did you mean `RSpec/RepeatedExample`?Pat Riehecky
05/02/2023, 2:28 PMGavin Patton
05/02/2023, 2:29 PMGavin Patton
05/02/2023, 2:33 PMGavin Patton
05/02/2023, 2:33 PMPat Riehecky
05/02/2023, 2:33 PMrubocop -A
Error: unrecognized cop or department RSpec/NoExpectationExample found in .rubocop_todo.yml
Did you mean `RSpec/RepeatedExample`?Pat Riehecky
05/02/2023, 2:33 PMrubocop -v
1.50.2Gavin Patton
05/02/2023, 2:34 PMGavin Patton
05/02/2023, 2:34 PMbundle install ?Gavin Patton
05/02/2023, 2:35 PMrm -rf Gemfile.lock .bundle then bundle install --path .bundlePat Riehecky
05/02/2023, 2:37 PM[riehecky@leibniz puppetlabs-vcsrepo]$ .bundle/ruby/3.2.0/bin/rubocop -A spec/
Error: unrecognized cop or department RSpec/NoExpectationExample found in .rubocop_todo.yml
Did you mean `RSpec/RepeatedExample`?
[riehecky@leibniz puppetlabs-vcsrepo]$ .bundle/ruby/3.2.0/bin/rubocop -v
1.50.2Dr Bunsen Honeydew
05/02/2023, 2:37 PMpuppetlabs-vcsrepo module at https://forge.puppet.com/puppetlabs/vcsrepo?src=slack&channel=office-hoursPat Riehecky
05/02/2023, 2:37 PMGavin Patton
05/02/2023, 2:38 PMbundle exec rubocop insteadGavin Patton
05/02/2023, 2:39 PMbundle exec rubocop -a looks like it can autocorrect 25/47 of the offensesPat Riehecky
05/02/2023, 2:39 PMGavin Patton
05/02/2023, 2:40 PMPat Riehecky
05/02/2023, 2:42 PMGavin Patton
05/02/2023, 2:44 PMJordan Breen
05/02/2023, 2:57 PMbundle exec rubocop --auto-gen-config and post that in herePat Riehecky
05/02/2023, 3:02 PM[riehecky@leibniz puppetlabs-vcsrepo]$ bundle exec rubocop --auto-gen-config
Phase 1 of 2: run Layout/LineLength cop (skipped because the default Layout/LineLength:Max is overridden)
Phase 2 of 2: run all cops
Inspecting 41 files
..CC.WCCWWWCCCCCCCCCCCCCCCCC...C..CCCCCCC
41 files inspected, 433 offenses detected, 18 offenses autocorrectable
Created .rubocop_todo.yml.Dr Bunsen Honeydew
05/02/2023, 3:02 PMpuppetlabs-vcsrepo module at https://forge.puppet.com/puppetlabs/vcsrepo?src=slack&channel=office-hoursJordan Breen
05/02/2023, 3:04 PMRSpec/ContextWording , RSpec/NoExpectationExample and RSpec/DescribeClass ) are already added in our .rubocop_todo.yml.
Can you push the updated .rubocop_todo.yml file up to the PR? Should stop rubocop screaming 🙂Pat Riehecky
05/02/2023, 3:05 PMJordan Breen
05/02/2023, 3:07 PMPat Riehecky
05/02/2023, 3:20 PMbzr got dropped from the RHEL world... I'm not sure how to skip that test for those hosts....Jordan Breen
05/02/2023, 3:23 PMif: os[:family] != 'rhel'Jordan Breen
05/02/2023, 3:23 PMJordan Breen
05/02/2023, 3:23 PMPat Riehecky
05/02/2023, 3:40 PM