Skip to content

Commit

Permalink
add Rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
e2 committed Dec 20, 2014
1 parent a073639 commit a6b08ec
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 0 deletions.
1 change: 1 addition & 0 deletions .rubocop.yml
@@ -0,0 +1 @@
inherit_from: .rubocop_todo.yml
51 changes: 51 additions & 0 deletions .rubocop_todo.yml
@@ -0,0 +1,51 @@
# This configuration was generated by `rubocop --auto-gen-config`
# on 2014-12-20 01:31:10 +0100 using RuboCop version 0.26.1.
# 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.

# Offense count: 3
Lint/HandleExceptions:
Enabled: false

# Offense count: 1
Lint/UnderscorePrefixedVariableName:
Enabled: false

# Offense count: 1
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 131

# Offense count: 6
# Configuration parameters: AllowURI, URISchemes.
Metrics/LineLength:
Max: 141

# Offense count: 1
# Configuration parameters: CountComments.
Metrics/MethodLength:
Max: 11

# Offense count: 3
# Configuration parameters: IndentWhenRelativeTo, SupportedStyles, IndentOneStep.
Style/CaseIndentation:
Enabled: false

# Offense count: 5
Style/Documentation:
Enabled: false

# Offense count: 5
Style/DoubleNegation:
Enabled: false

# Offense count: 2
# Configuration parameters: MinBodyLength.
Style/GuardClause:
Enabled: false

# Offense count: 1
Style/RegexpLiteral:
MaxSlashes: 0
1 change: 1 addition & 0 deletions Gemfile
Expand Up @@ -23,4 +23,5 @@ end
group :development do
gem 'guard-rspec', '~> 4.2.5'
gem 'pry'
gem 'rubocop'
end
5 changes: 5 additions & 0 deletions Rakefile
Expand Up @@ -10,4 +10,9 @@ end

task :default => :spec

if ENV['CI'] != 'true'
require "rubocop/rake_task"
default_tasks << RuboCop::RakeTask.new(:rubocop)
end

task default: default_tasks.map(&:name)

0 comments on commit a6b08ec

Please sign in to comment.