-
Notifications
You must be signed in to change notification settings - Fork 16
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 #23
add Rubocop #23
Conversation
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.
Good call 👍
7e23906
to
17ef81b
Compare
Gemfile
Outdated
gems.concat config["gems"] if config.include? "gems" | ||
gems.concat config["plugins"] if config.include? "plugins" | ||
gems << "pygments.rb" if config["highlighter"] == "pygments" | ||
gems << "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.
Is this the right way to add the gem? Travis is failing 😕
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.
No, this block is only evaluated if jekyll is cloned. Add gem “rubocop”
above if Dir.exist
.rubocop.yml
Outdated
@@ -1,12 +1,7 @@ | |||
inherit_gem: | |||
jekyll: .rubocop.yml | |||
|
|||
Metrics/LineLength: | |||
AllCops: | |||
TargetRubyVersion: 2.4 |
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.
This should be the lowest version we support.
|
||
Style/FileName: | ||
Enabled: false | ||
- jekyll/**/* |
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.
Exclude vendor/**/* too
Gemfile
Outdated
gems.concat config["gems"] if config.include? "gems" | ||
gems.concat config["plugins"] if config.include? "plugins" | ||
gems << "pygments.rb" if config["highlighter"] == "pygments" | ||
gems << "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.
No, this block is only evaluated if jekyll is cloned. Add gem “rubocop”
above if Dir.exist
Build is passing now. Thanks for the review @parkr |
@jekyllbot: merge +dev |
PR automatically created for @DirtyF.