Created
March 22, 2015 22:36
-
-
Save naps62/df711385b0af6e2faa90 to your computer and use it in GitHub Desktop.
[ESS @ UM] Rubocop setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AllCops: | |
Include: | |
- '**/Rakefile' | |
- '**/config.ru' | |
Exclude: | |
- 'db/**/*' | |
- 'config/**/*' | |
- 'script/**/*' | |
- 'bin/**/*' | |
- 'vendor/**/*' | |
Metrics/LineLength: | |
Enabled: false | |
Style/AlignParameters: | |
EnforcedStyle: with_fixed_indentation | |
Style/ClassAndModuleChildren: | |
Enabled: false | |
Style/Documentation: | |
Enabled: false | |
Style/DotPosition: | |
EnforcedStyle: trailing | |
Style/IfUnlessModifier: | |
Enabled: false | |
Style/PredicateName: | |
NamePrefixBlacklist: | |
- is_ | |
- have_ | |
Style/RegexpLiteral: | |
MaxSlashes: 0 | |
Style/NumericLiterals: | |
Enabled: false | |
Style/SingleLineBlockParams: | |
Enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
group :test do | |
gem 'rubocop', require: false | |
gem 'rspec-rails' | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require File.expand_path('../config/application', __FILE__) | |
Rails.application.load_tasks | |
if %w(development test).include? Rails.env | |
require 'rubocop/rake_task' | |
RuboCop::RakeTask.new | |
task(:default).clear | |
task default: [:rubocop, :spec] | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment