-
Notifications
You must be signed in to change notification settings - Fork 481
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Addressing a bunch of RuboCop stuff, breaking the API, etc.
- Loading branch information
1 parent
96a57a0
commit 36d9c87
Showing
29 changed files
with
954 additions
and
954 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 |
---|---|---|
@@ -1,129 +1,31 @@ | ||
# This configuration was generated by `rubocop --auto-gen-config`. | ||
# This configuration was generated by `rubocop --auto-gen-config` | ||
# on 2014-02-09 12:18:33 -0500 using RuboCop version 0.18.1. | ||
# The point is for the user to remove these configuration records | ||
# one by one as the offences 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. | ||
|
||
AccessorMethodName: | ||
Enabled: false | ||
|
||
AlignParameters: | ||
Enabled: false | ||
|
||
AssignmentInCondition: | ||
Enabled: false | ||
|
||
BracesAroundHashParameters: | ||
Enabled: false | ||
|
||
# Offence count: 1 | ||
CaseEquality: | ||
Enabled: false | ||
|
||
# Offence count: 1 | ||
# Configuration parameters: CountComments. | ||
ClassLength: | ||
Max: 318 | ||
|
||
ClassVars: | ||
Enabled: false | ||
|
||
CollectionMethods: | ||
Enabled: false | ||
|
||
ColonMethodCall: | ||
Enabled: false | ||
|
||
CommentAnnotation: | ||
Enabled: false | ||
|
||
# Offence count: 4 | ||
CyclomaticComplexity: | ||
Max: 28 | ||
|
||
Documentation: | ||
Enabled: false | ||
|
||
Encoding: | ||
Enabled: false | ||
|
||
FavorUnlessOverNegatedIf: | ||
Enabled: false | ||
|
||
FavorUntilOverNegatedWhile: | ||
Enabled: false | ||
|
||
HandleExceptions: | ||
Enabled: false | ||
|
||
HashSyntax: | ||
Enabled: false | ||
|
||
IfUnlessModifier: | ||
Enabled: false | ||
|
||
IndentationWidth: | ||
Enabled: false | ||
|
||
LineLength: | ||
Max: 152 | ||
|
||
Loop: | ||
Enabled: false | ||
|
||
MethodCallParentheses: | ||
Enabled: false | ||
Max: 24 | ||
|
||
# Offence count: 17 | ||
# Configuration parameters: CountComments. | ||
MethodLength: | ||
Max: 180 | ||
|
||
ModuleFunction: | ||
Enabled: false | ||
|
||
NumericLiterals: | ||
Enabled: false | ||
|
||
ParenthesesAroundCondition: | ||
Enabled: false | ||
|
||
PredicateName: | ||
Enabled: false | ||
|
||
RedundantBegin: | ||
Enabled: false | ||
Max: 150 | ||
|
||
# Offence count: 1 | ||
RescueException: | ||
Enabled: false | ||
|
||
RescueModifier: | ||
Enabled: false | ||
|
||
SingleLineMethods: | ||
Enabled: false | ||
|
||
SpaceAfterComma: | ||
Enabled: false | ||
|
||
SpaceAroundBlockBraces: | ||
Enabled: false | ||
|
||
SpaceAroundEqualsInParameterDefault: | ||
Enabled: false | ||
|
||
SpaceAroundOperators: | ||
Enabled: false | ||
|
||
SpaceInsideHashLiteralBraces: | ||
Enabled: false | ||
|
||
SpecialGlobalVars: | ||
Enabled: false | ||
|
||
StringLiterals: | ||
Enabled: false | ||
|
||
TrailingBlankLines: | ||
Enabled: false | ||
|
||
TrailingWhitespace: | ||
Enabled: false | ||
|
||
TrivialAccessors: | ||
Enabled: false | ||
|
||
UselessAssignment: | ||
Documentation: | ||
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 |
---|---|---|
@@ -1,29 +1,14 @@ | ||
require 'bundler/gem_tasks' | ||
require 'rake/testtask' | ||
require 'rubocop/rake_task' | ||
|
||
task default: [:rubocop, :test] | ||
|
||
Rubocop::RakeTask.new | ||
|
||
Rake::TestTask.new do |t| | ||
t.libs << 'test' | ||
t.pattern = ENV['PATTERN'] || 'test/*_test.rb' | ||
t.verbose = !!ENV['VERBOSE'] | ||
t.options = "--seed #{ENV['SEED']}" if ENV['SEED'] | ||
end | ||
|
||
desc 'Run rubocop' | ||
task :rubocop do | ||
unless RUBY_VERSION < '1.9' | ||
sh('rubocop --format simple') { |ok, _| ok || abort } | ||
end | ||
end | ||
|
||
begin | ||
require 'rdoc/task' | ||
|
||
Rake::RDocTask.new do |rd| | ||
rd.main = 'README.md' | ||
rd.rdoc_files.include('README.md', 'lib/**/*.rb') | ||
rd.rdoc_dir = 'doc' | ||
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
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
Oops, something went wrong.