-
-
Notifications
You must be signed in to change notification settings - Fork 74
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
You have twenty seconds to comply. #229
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
inherit_gem: | ||
voxpupuli-test: rubocop.yml | ||
|
||
Naming/MethodParameterName: | ||
Enabled: true | ||
MinNameLength: 1 | ||
RSpec/MultipleMemoizedHelpers: | ||
Enabled: true | ||
Max: 6 | ||
Style/OptionalBooleanParameter: | ||
Enabled: false |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,6 @@ end | |
|
||
group :development do | ||
gem 'github_changelog_generator', '>= 1.16.4' | ||
# provides the rubocop config and an awesome circular dependency to boot! | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🤨 Wat? CI seems happy with this… There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
gem 'voxpupuli-test', '~> 5.2' | ||
end |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/usr/bin/env ruby | ||
# frozen_string_literal: true | ||
|
||
require 'facterdb/bin' | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module FacterDB | ||
module Version | ||
STRING = '1.12.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.
@ekohl ehat do you think about this? at the moment we only use it in modules. other gems have their own rubocop config which is isually way shorter.
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.
I do think our Rubocop in vp-test is intended for Puppet modules, not real Ruby code. It would be better to come up with a shared config for real gems. It also would prevent this from pulling in a LOT of unrelated code.
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.
I'm fairly sure that as-is is a bad idea. My goal with this PR was to simply get rubocop working and merged before the style changes bit-rot. Then additional PRs can be made as cop configuration is agreed upon. Configuring rubocop is like ordering a pizza... I was concerned that starting from scratch was going to take a long time to build consensus. I have two suggestions to resolve the circular dependency and I honestly don't have much of a preference.
A) move
rubocop.yml
out ofvoxpupuli-test:
into a new gemB) copy the current
voxpupuli-test
rubocop.yml
into this module with minimal modificationsAre either of those acceptable solutions?
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.
I think those are all points I can agree with. I'm fine with either solution. My suggestion there was roughly option A and then use that gem in all Ruby projects maintained by Vox Pupuli. I'd also be happy with option B short term and option A long term. That would at least allow this to move forward and we need to align a lot of projects anyway.
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.
@ekohl If I copy the
rubcop.yml
fromvoxpupuli-test
, would this PR be ready for merge?