-
Notifications
You must be signed in to change notification settings - Fork 46
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
Bump rubocop to 0.37.2 #48
Conversation
e88e4af
to
472aa51
Compare
Broke the camel's back in |
I'm ok with ignoring that line count if you want to, but I also see a fairly easy extraction: this class right now covers all of:
Item 3 by itself is ~35 lines, and feels like a distinct responsibility that we already organize as its own class in other engines. Personally, that's where I'd make the change. |
@wfleming Nah, we should fix it. It does way too much. I'm extracting things from it now but in doing so I'm also seeing language that doesn't align with our domain very well and a lack of coverage around fiddly bits like remediation point generation. I want to spend a bit more time tackling those issues before requesting re-review. |
333b7d8
to
e85e236
Compare
@wfleming Ready for 👀 when you have a sec. |
Interestingly they've deprecated one of the cops and if referenced in the rubocop.yml, the anaysis will fial:
Our default configuration references |
e85e236
to
db179d4
Compare
The Code Climate issues are due to changing cop names ( |
Code Climate triggered a warning that this class was too large and looking closely it seems to have several different responsibilities mixed together. At the same time, a lot of the language used in this engine doesn't match the language of how we talk about our domain. These changes aim to break down the Rubocop class into collaborators and to refine the language to bring its concerns closer to our domain language. * Introduce SourceFile * Rename ViolationDecorator to Issue * Move presentation concerns into Issue * Refine remediation point names to better match what they represent * Begin to improve coverage on remediation point generation
db179d4
to
44871a0
Compare
44871a0
to
266eb9d
Compare
This looks good to me. If we can get the updated default config out, I'd say ship it. |
Going to let this sit for a bit until the larger CLI change is out. On Mon, Feb 1, 2016 at 11:12 AM, Will Fleming [email protected]
|
Hm, surprised by CC issues; I thought we prefer including a comma after last item in hash. |
@ABaldwinHunter I believe it's because JP updated the config for the new version, but of course that new version isn't actually running against the repo yet. The new version changed several rule names. |
Instead of raising on the inclusion of an obsolete cop, write an error to STDERR. This is slightly more invisible than failing a build on an obsolete cop, but preferable as a user won't be blocked when we bump RuboCop on our engine. We'll write a changelog post advising users of the necessary changes to make and deprecate this patch in the coming weeks.
406c281
to
0e05f0b
Compare
This is ready for another look, @codeclimate/review. |
LGTM |
0e05f0b
to
88974fc
Compare
From a quick reading of recent changes in |
It does give us support for Ruby 2.3 syntax. I'll merge this once I have a On Thu, Feb 11, 2016 at 1:29 PM, Will Fleming [email protected]
|
🎆 |
Was this just deployed? Rubocop upgrade breaks older rubocop.yml (we see analysis errors now) |
P.S. hi JP. 👋 |
Hey, @rheaton! Yes, we just deployed this earlier this afternoon. Some configuration syntax moved around between the RuboCop versions which require some tweaks to your config. If you check the build itself, the STDERR output should detail the changes necessary. Can you let me know if you see this output and if it's helpful? |
Yes, we see it! It's slow going through since it's one error at a time. Any suggestions? (PS My teammate @MisterDeejay is working on this) |
It's probably giving you separate tranches of output for each of RuboCop's validations. I'd either use the Code Climate CLI or install RuboCop 0.37.2 locally and tweak your configuration there before re-pushing. |
@jpignata Thanks! |
@rheaton Sorry for the trouble! |
NP! We were actually bemoaning that it was an older version of rubocop this morning. 😁 Love those Friday deploys, haha. |
@codeclimate/review