Skip to content

Commit

Permalink
Merge c9ecc4d into a8451a9
Browse files Browse the repository at this point in the history
  • Loading branch information
muramura megane committed Jul 11, 2014
2 parents a8451a9 + c9ecc4d commit ae07a26
Show file tree
Hide file tree
Showing 5 changed files with 142 additions and 88 deletions.
18 changes: 1 addition & 17 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1 @@
# This is the configuration used to check the rubocop source code.

inherit_from: rubocop-todo.yml

AllCops:
Includes:
- Rakefile
- Gemfile
- Guardfile
- config.ru
- ruby-dmm.gemspec
Excludes:
- db/**
- config/**
- script/**
- gems/**
- vendor/**
inherit_from: .rubocop_todo.yml
136 changes: 136 additions & 0 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
# This configuration was generated by `rubocop --auto-gen-config`
# on 2014-07-12 00:25:45 +0900 using RuboCop version 0.24.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: 4
Lint/AmbiguousOperator:
Enabled: false

# Offense count: 2
# Configuration parameters: AllowSafeAssignment.
Lint/AssignmentInCondition:
Enabled: false

# Offense count: 1
# Cop supports --auto-correct.
Lint/UnusedBlockArgument:
Enabled: false

# Offense count: 1
# Cop supports --auto-correct.
Lint/UnusedMethodArgument:
Enabled: false

# Offense count: 1
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/ClassAndModuleChildren:
Enabled: false

# Offense count: 7
# Cop supports --auto-correct.
# Configuration parameters: PreferredMethods.
Style/CollectionMethods:
Enabled: false

# Offense count: 1
Style/CyclomaticComplexity:
Max: 11

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

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

# Offense count: 1
Style/EachWithObject:
Enabled: false

# Offense count: 11
# Cop supports --auto-correct.
Style/EmptyLinesAroundBody:
Enabled: false

# Offense count: 1
# Configuration parameters: Exclude.
Style/FileName:
Enabled: false

# Offense count: 35
# Cop supports --auto-correct.
# Configuration parameters: SupportedStyles.
Style/HashSyntax:
EnforcedStyle: hash_rockets

# Offense count: 12
# Configuration parameters: AllowURI.
Style/LineLength:
Max: 141

# Offense count: 7
# Configuration parameters: CountComments.
Style/MethodLength:
Max: 23

# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: PreferredDelimiters.
Style/PercentLiteralDelimiters:
Enabled: false

# Offense count: 1
# Configuration parameters: SupportedStyles.
Style/RaiseArgs:
EnforcedStyle: compact

# Offense count: 2
Style/RegexpLiteral:
MaxSlashes: 0

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/SignalException:
Enabled: false

# Offense count: 3
# Configuration parameters: Methods.
Style/SingleLineBlockParams:
Enabled: false

# Offense count: 7
# Cop supports --auto-correct.
Style/SingleSpaceBeforeFirstArg:
Enabled: false

# Offense count: 28
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
Style/SpaceInsideHashLiteralBraces:
Enabled: false

# Offense count: 1
# Cop supports --auto-correct.
Style/SpecialGlobalVars:
Enabled: false

# Offense count: 127
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/StringLiterals:
Enabled: false

# Offense count: 13
# Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
Style/TrailingComma:
Enabled: false

# Offense count: 2
# Cop supports --auto-correct.
Style/UnneededPercentQ:
Enabled: false
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language: ruby
script: "rake travis"
script: rake ci
rvm:
- 1.9.3
- 2.0.0
Expand Down
23 changes: 4 additions & 19 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,31 +1,16 @@
require "bundler/gem_tasks"
require "rspec/core/rake_task"
require 'coveralls/rake/task'
require 'rubocop/rake_task'

RSpec::Core::RakeTask.new(:rspec) do |spec|
spec.pattern = 'spec/**/*_spec.rb'
spec.rspec_opts = ['-cfd --backtrace']
end

task :default => :rspec

task :travis => [:rspec, :quality, 'coveralls:push']
task :quality => []
RuboCop::RakeTask.new(:style)

Coveralls::RakeTask.new

if RUBY_VERSION >= '1.9.0'
require 'rubocop/rake_task'
task :quality => :rubocop
RuboCop::RakeTask.new do |task|
task.patterns = %w(
lib/**/*.rb
spec/**/*.rb
Rakefile
Gemfile
Guardfile
ruby-dmm.gemspec
)
task.fail_on_error = false
end
end
task :default => %w(spec style)
task :ci => %w(rspec style coveralls:push)
51 changes: 0 additions & 51 deletions rubocop-todo.yml

This file was deleted.

0 comments on commit ae07a26

Please sign in to comment.