ManageIQ / inventory_refresh

Apache License 2.0
1 stars 23 forks source link

Run rubocop -A #102

Closed agrare closed 2 years ago

Fryguy commented 2 years ago

OK, ETOOMANY weird things...I figure you can eyeball these and do a first pass since we are seeing the same issues. Then after that I'll do a pass and see if there's anything else.

kbrock commented 2 years ago

are we thinking the failure for one and not the other means this is sporadic? Or are we thinking this broke something? (maybe a bug in rubocop)

agrare commented 2 years ago

Yeah I think rubocop actually broke some code, considering just dropping this or just having it fix the indentation and %[] vs %() issues

kbrock commented 2 years ago

Yea. these should be no brainers, so anything that is a question mark should probably just remove the option that did those changes and proceed from there? I like Adam's suggestion of just doing the indentation and () -> [].

miq-bot commented 2 years ago

Checked commits https://github.com/agrare/inventory_refresh/compare/aec28c333461c2a9fdb76cff3171982ddb8e076a~...da35d3efcfd417d22ccc74f4bd9051b1679645aa with ruby 2.6.7, rubocop 1.19.1, haml-lint 0.35.0, and yamllint 64 files checked, 24 offenses detected

lib/inventory_refresh/graph/topological_sort.rb

lib/inventory_refresh/inventory_collection.rb

lib/inventory_refresh/inventory_object.rb

spec/helpers/test_builder/container_manager.rb

spec/helpers/test_builder/shared.rb

spec/persister/retention_strategies_spec.rb

spec/save_inventory/single_inventory_collection_spec.rb