Closed stephengroat closed 4 years ago
Thanks for this. I've had a skim and there's a few things that stand out:
''
over ""
" is responsible for 99% of the noise, could we suppress that one (at least temporarily) and then we might see the wood for the trees?PascalCase
to SNAKE_CASE
as people could rely on them as they're part of the public API (sort of)def self.foo
in lib/user_agent/operating_systems.rb
which I think changes the accessibility of the WINDOWS
constant, I'm fine with def self.foo
myselfold => hash
style, or at least making that change it's own commit a bit like the string quotation for the sake of clarity in commit history/reviewLet me see what i can do with .rubocop.yml
@gshutler See below
Style/StringLiterals#double_quotes
lessened the noise, but there's still enough difference that it creates some (since it enforces consistency)SCREAMING_SNAKE_CASE
and tested themrubocop
wanted changed (has_wmfsdk?
to wmfsdk?
), added an alias and warnedWINDOWS
outside of the class
context of the module, can access now with UserAgent::OperatingSystems::WINDOWS
or UserAgent::OperatingSystems.Windows
hash_rockets
, didn't help as much as I had hopedthink i addressed everything you're looking for (user_agent_spec
now has tests showing warn once and never again for a instance, could be for a class with @@
if you want it to be)
@gshutler i'm sure you're super busy, i just want to make sure that this pops back up on your radar (if there's anything else you need from me)
any interest in this? trying to cleanup my open PRs and wondering if i should just close this. if so, no worries
i know it's huge, if you'd like to minimize the rule impact let me know!
rubocop
now runs withrake
as the defaultmost corrections were done with
rubocop --auto-correct
, some was ignored in.rubocop.yml
. if there's a specific style change you'd like to enforce, let me know!