-
Notifications
You must be signed in to change notification settings - Fork 548
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #752 from tamird/update-rubocop
Update RuboCop to 0.50.x
- Loading branch information
Showing
36 changed files
with
402 additions
and
348 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,31 +1,35 @@ | ||
inherit_from: .rubocop_todo.yml | ||
|
||
AllCops: | ||
TargetRubyVersion: 1.9 | ||
|
||
DisplayCopNames: true | ||
Exclude: | ||
- 'pkg/**/*' | ||
- 'tmp/**/*' | ||
- 'vendor/**/*' | ||
|
||
Layout/CaseIndentation: | ||
EnforcedStyle: end | ||
|
||
Layout/IndentHash: | ||
EnforcedStyle: consistent | ||
|
||
Layout/IndentHeredoc: | ||
EnforcedStyle: powerpack | ||
|
||
Lint/EndAlignment: | ||
AlignWith: variable | ||
EnforcedStyleAlignWith: variable | ||
|
||
Style/CaseIndentation: | ||
IndentWhenRelativeTo: end | ||
Style/Encoding: | ||
AutoCorrectEncodingComment: '# encoding: UTF-8' | ||
EnforcedStyle: always | ||
|
||
Style/IndentHash: | ||
EnforcedStyle: consistent | ||
Style/TrailingCommaInArguments: | ||
EnforcedStyleForMultiline: consistent_comma | ||
|
||
Style/TrailingComma: | ||
Style/TrailingCommaInLiteral: | ||
EnforcedStyleForMultiline: consistent_comma | ||
|
||
Style/TrivialAccessors: | ||
AllowPredicates: true | ||
|
||
# TODO: remove when we end support for < 1.9.3 | ||
|
||
Style/HashSyntax: | ||
EnforcedStyle: hash_rockets | ||
|
||
Style/Lambda: | ||
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,75 +1,86 @@ | ||
# This configuration was generated by | ||
# `rubocop --auto-gen-config` | ||
# on 2015-09-06 13:16:09 -0400 using RuboCop version 0.34.0. | ||
# on 2017-11-25 19:54:28 -0500 using RuboCop version 0.50.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. | ||
|
||
# Offense count: 2 | ||
Metrics/AbcSize: | ||
Max: 93 | ||
Max: 90 | ||
|
||
# Offense count: 31 | ||
# Configuration parameters: CountComments, ExcludedMethods. | ||
Metrics/BlockLength: | ||
Max: 825 | ||
|
||
# Offense count: 1 | ||
# Configuration parameters: CountBlocks. | ||
Metrics/BlockNesting: | ||
Max: 5 | ||
|
||
# Offense count: 1 | ||
# Configuration parameters: CountComments. | ||
Metrics/ClassLength: | ||
Max: 125 | ||
|
||
# Offense count: 2 | ||
# Offense count: 3 | ||
Metrics/CyclomaticComplexity: | ||
Max: 30 | ||
|
||
# Offense count: 290 | ||
# Configuration parameters: AllowURI, URISchemes. | ||
# Offense count: 313 | ||
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns. | ||
# URISchemes: http, https | ||
Metrics/LineLength: | ||
Max: 232 | ||
|
||
# Offense count: 5 | ||
# Offense count: 6 | ||
# Configuration parameters: CountComments. | ||
Metrics/MethodLength: | ||
Max: 60 | ||
Max: 57 | ||
|
||
# Offense count: 1 | ||
# Offense count: 2 | ||
Metrics/PerceivedComplexity: | ||
Max: 27 | ||
|
||
# Offense count: 40 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle, SupportedStyles, ProceduralMethods, FunctionalMethods, IgnoredMethods. | ||
Style/BlockDelimiters: | ||
Enabled: false | ||
# Offense count: 3 | ||
# Configuration parameters: Blacklist. | ||
# Blacklist: END, (?-mix:EO[A-Z]{1}) | ||
Naming/HeredocDelimiterNaming: | ||
Exclude: | ||
- 'tasks/compile.rake' | ||
|
||
# Offense count: 12 | ||
# Offense count: 10 | ||
Style/Documentation: | ||
Exclude: | ||
- 'spec/**/*' | ||
- 'test/**/*' | ||
- 'benchmark/active_record.rb' | ||
- 'benchmark/allocations.rb' | ||
- 'benchmark/query_with_mysql_casting.rb' | ||
- 'lib/mysql2.rb' | ||
- 'lib/mysql2/client.rb' | ||
- 'lib/mysql2/em.rb' | ||
- 'lib/mysql2/error.rb' | ||
- 'lib/mysql2/field.rb' | ||
- 'lib/mysql2/result.rb' | ||
- 'lib/mysql2/statement.rb' | ||
- 'lib/mysql2/version.rb' | ||
|
||
# Offense count: 9 | ||
# Offense count: 14 | ||
# Configuration parameters: AllowedVariables. | ||
Style/GlobalVars: | ||
Exclude: | ||
- 'ext/mysql2/extconf.rb' | ||
|
||
# Offense count: 14 | ||
# Offense count: 17 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: Strict. | ||
Style/NumericLiterals: | ||
MinDigits: 20 | ||
|
||
# Offense count: 680 | ||
# Offense count: 726 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle, SupportedStyles. | ||
# Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline. | ||
# SupportedStyles: single_quotes, double_quotes | ||
Style/StringLiterals: | ||
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
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
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
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
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# encoding: UTF-8 | ||
|
||
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib') | ||
|
||
require 'rubygems' | ||
|
Oops, something went wrong.