forked from manlon/mysql2
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'brianmario/master'
- Loading branch information
Showing
51 changed files
with
1,715 additions
and
1,278 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,31 @@ | ||
inherit_from: .rubocop_todo.yml | ||
|
||
AllCops: | ||
TargetRubyVersion: 2.0 | ||
|
||
DisplayCopNames: true | ||
Exclude: | ||
- 'pkg/**/*' | ||
- 'tmp/**/*' | ||
- 'vendor/**/*' | ||
|
||
Lint/EndAlignment: | ||
AlignWith: variable | ||
|
||
Style/CaseIndentation: | ||
IndentWhenRelativeTo: end | ||
Layout/CaseIndentation: | ||
EnforcedStyle: end | ||
|
||
Style/IndentHash: | ||
Layout/IndentHash: | ||
EnforcedStyle: consistent | ||
|
||
Style/TrailingComma: | ||
EnforcedStyleForMultiline: consistent_comma | ||
Layout/IndentHeredoc: | ||
EnforcedStyle: powerpack | ||
|
||
Style/TrivialAccessors: | ||
AllowPredicates: true | ||
Lint/EndAlignment: | ||
EnforcedStyleAlignWith: variable | ||
|
||
# TODO: remove when we end support for < 1.9.3 | ||
Style/TrailingCommaInArguments: | ||
EnforcedStyleForMultiline: consistent_comma | ||
|
||
Style/HashSyntax: | ||
EnforcedStyle: hash_rockets | ||
Style/TrailingCommaInLiteral: | ||
EnforcedStyleForMultiline: consistent_comma | ||
|
||
Style/Lambda: | ||
Enabled: false | ||
Style/TrivialAccessors: | ||
AllowPredicates: true |
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: 85 | ||
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: 26 | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eux | ||
|
||
apt-get purge -qq '^mysql*' '^libmysql*' | ||
rm -fr /etc/mysql | ||
rm -fr /var/lib/mysql | ||
apt-get install -qq mysql-server-5.5 mysql-client-core-5.5 mysql-client-5.5 libmysqlclient-dev |
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
Oops, something went wrong.