-
Notifications
You must be signed in to change notification settings - Fork 194
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
Add rubocop to rake default set #1392
Conversation
Enough folks (including me) trip over this on first pushes, worth putting in the default testing set
if we do this, shouldn't we maybe make the otherwise, good ;) |
So default rake actually ends up running |
This encourages us to keep the things we test on CI the same as the things people will probably run by default in the project.
On further consideration, made a few more tweaks:
|
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.
Looks good! Some small comments + I noticed that rubocop seems to be executed last now... I think it's good to run linters first to bail and fail the build early.
README.md
Outdated
@@ -200,7 +200,7 @@ Shoes 4 is developed in a TDD style using RSpec. You should be writing and runni | |||
|
|||
The simplest way to do this is with rake tasks. | |||
|
|||
$ rake spec | |||
$ rake |
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.
bundle exec! (otherwise packaging specs fail for me)
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.
It still fails? I thought I'd fixed that.
Either way, I'll update this as my rule is ABB... "Always Be Bundling"
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 not sure, maybe you fixed it and I just haven't knowingly tried afterwards ever again :)
@@ -1,7 +1,6 @@ | |||
language: ruby | |||
script: | |||
- bundle exec rubocop -D | |||
- bundle exec rake spec:all | |||
- bundle exec rake |
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 travis runs rake
as default but probably without bundle exec
or maybe, not sure - also it's better to be explicit. So this is good. I don't know what I'm writing ;P
task.options << "--display-cop-names" | ||
end | ||
|
||
task default: :rubocop |
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.
👍
1eedfae
to
f65cac2
Compare
Enough folks (including me) trip over this on first pushes, worth putting in the default testing set.