-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Peter Suschlik
committed
Feb 9, 2015
1 parent
2269897
commit 7abb42c
Showing
8 changed files
with
96 additions
and
11 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# Generated by `rubocop --auto-gen-config` | ||
inherit_from: .rubocop_todo.yml | ||
|
||
# It’s quite readable when we know what we are doing | ||
Lint/AssignmentInCondition: | ||
Enabled: false | ||
|
||
# No need to handle LoadError in rake | ||
Lint/HandleExceptions: | ||
Exclude: | ||
- rakelib/*.rake | ||
|
||
# The enforced style doesn’t match Vim’s defaults | ||
Style/AlignParameters: | ||
Enabled: false | ||
|
||
# UTF-8 is perfectly fine in comments | ||
Style/AsciiComments: | ||
Enabled: false | ||
|
||
# Allow using braces for value-returning blocks | ||
Style/Blocks: | ||
Enabled: false | ||
|
||
# Documentation checked by Inch CI | ||
Style/Documentation: | ||
Enabled: false | ||
|
||
# Early returns have their vices | ||
Style/GuardClause: | ||
Enabled: false | ||
|
||
# Need to be skipped for >-> usage | ||
Style/Lambda: | ||
Enabled: false | ||
|
||
# Multiline block chains are ok | ||
Style/MultilineBlockChain: | ||
Enabled: false | ||
|
||
# Even a single escaped slash can be confusing | ||
Style/RegexpLiteral: | ||
MaxSlashes: 0 | ||
|
||
# Don’t introduce semantic fail/raise distinction | ||
Style/SignalException: | ||
EnforcedStyle: only_raise | ||
|
||
# Need to be skipped for >-> usage | ||
Style/SpaceAroundOperators: | ||
Enabled: false | ||
|
||
# Accept both single and double quotes | ||
Style/StringLiterals: | ||
Enabled: false | ||
|
||
# Allow def self.foo; @foo; end | ||
Style/TrivialAccessors: | ||
Enabled: false | ||
|
||
# Allow rom-csv | ||
Style/FileName: | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# This configuration was generated by `rubocop --auto-gen-config` | ||
# on 2015-02-09 17:10:04 +0100 using RuboCop version 0.28.0. | ||
# The point is for the user to remove these configuration records | ||
# one by one as the offenses are removed from the code base. | ||
# Note that changes in the inspected code, or installation of new | ||
# versions of RuboCop, may require this file to be generated again. |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,7 @@ group :test do | |
gem 'virtus' | ||
gem 'minitest' | ||
end | ||
|
||
group :tools do | ||
gem 'rubocop' | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,4 @@ | ||
require "rspec/core/rake_task" | ||
require "rubocop/rake_task" | ||
|
||
task default: [:spec, :rubocop] | ||
require 'rspec/core/rake_task' | ||
|
||
RSpec::Core::RakeTask.new(:spec) | ||
|
||
RuboCop::RakeTask.new do |task| | ||
task.options << "--display-cop-names" | ||
end | ||
task default: :spec |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
begin | ||
require "rubocop/rake_task" | ||
|
||
Rake::Task[:default].enhance [:rubocop] | ||
|
||
RuboCop::RakeTask.new do |task| | ||
task.options << "--display-cop-names" | ||
end | ||
|
||
namespace :rubocop do | ||
desc 'Generate a configuration file acting as a TODO list.' | ||
task :auto_gen_config do | ||
exec "bundle exec rubocop --auto-gen-config" | ||
end | ||
end | ||
|
||
rescue LoadError | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ def by_name(name) | |
expect(jane.email).to eql('[email protected]') | ||
expect(jane.roles.length).to eql(2) | ||
expect(jane.roles).to eql([ | ||
{ name: 'Member' } , { name: 'Admin' } | ||
{ name: 'Member' }, { name: 'Admin' } | ||
]) | ||
end | ||
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