Skip to content

Commit ac93121

Browse files
committed
Updates for Rubocop 0.34.0
1 parent dfc6395 commit ac93121

File tree

3 files changed

+25
-12
lines changed

3 files changed

+25
-12
lines changed

.rubocop_todo.yml

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
# This configuration was generated by `rubocop --auto-gen-config`
2-
# on 2015-06-07 18:25:43 -0400 using RuboCop version 0.32.0.
1+
# This configuration was generated by
2+
# `rubocop --auto-gen-config`
3+
# on 2015-09-06 13:16:09 -0400 using RuboCop version 0.34.0.
34
# The point is for the user to remove these configuration records
45
# one by one as the offenses are removed from the code base.
56
# Note that changes in the inspected code, or installation of new
67
# versions of RuboCop, may require this file to be generated again.
78

89
# Offense count: 2
910
Metrics/AbcSize:
10-
Max: 66
11+
Max: 68
1112

1213
# Offense count: 1
1314
Metrics/BlockNesting:
@@ -17,19 +18,19 @@ Metrics/BlockNesting:
1718
Metrics/CyclomaticComplexity:
1819
Max: 23
1920

20-
# Offense count: 283
21+
# Offense count: 290
2122
# Configuration parameters: AllowURI, URISchemes.
2223
Metrics/LineLength:
2324
Max: 232
2425

2526
# Offense count: 5
2627
# Configuration parameters: CountComments.
2728
Metrics/MethodLength:
28-
Max: 40
29+
Max: 43
2930

3031
# Offense count: 1
3132
Metrics/PerceivedComplexity:
32-
Max: 20
33+
Max: 22
3334

3435
# Offense count: 40
3536
# Cop supports --auto-correct.
@@ -39,19 +40,31 @@ Style/BlockDelimiters:
3940

4041
# Offense count: 12
4142
Style/Documentation:
42-
Enabled: false
43+
Exclude:
44+
- 'benchmark/active_record.rb'
45+
- 'benchmark/allocations.rb'
46+
- 'benchmark/query_with_mysql_casting.rb'
47+
- 'lib/mysql2.rb'
48+
- 'lib/mysql2/client.rb'
49+
- 'lib/mysql2/em.rb'
50+
- 'lib/mysql2/error.rb'
51+
- 'lib/mysql2/field.rb'
52+
- 'lib/mysql2/result.rb'
53+
- 'lib/mysql2/statement.rb'
54+
- 'lib/mysql2/version.rb'
4355

4456
# Offense count: 9
4557
# Configuration parameters: AllowedVariables.
4658
Style/GlobalVars:
47-
Enabled: false
59+
Exclude:
60+
- 'ext/mysql2/extconf.rb'
4861

49-
# Offense count: 13
62+
# Offense count: 14
5063
# Cop supports --auto-correct.
5164
Style/NumericLiterals:
5265
MinDigits: 20
5366

54-
# Offense count: 673
67+
# Offense count: 680
5568
# Cop supports --auto-correct.
5669
# Configuration parameters: EnforcedStyle, SupportedStyles.
5770
Style/StringLiterals:

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ gem 'rake-compiler', '~> 0.9.5'
88
group :test do
99
gem 'eventmachine' unless RUBY_PLATFORM =~ /mswin|mingw/
1010
gem 'rspec', '~> 3.2'
11-
gem 'rubocop', '~> 0.32.0' unless RUBY_VERSION =~ /1.8/
11+
gem 'rubocop', '~> 0.34.0' unless RUBY_VERSION =~ /1.8/
1212
end
1313

1414
group :benchmarks do

lib/mysql2.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
ENV['RUBY_MYSQL2_LIBMYSQL_DLL']
1414
elsif File.exist?(File.expand_path('../vendor/libmysql.dll', File.dirname(__FILE__)))
1515
# Use vendor/libmysql.dll if it exists, convert slashes for Win32 LoadLibrary
16-
File.expand_path('../vendor/libmysql.dll', File.dirname(__FILE__)).gsub('/', '\\')
16+
File.expand_path('../vendor/libmysql.dll', File.dirname(__FILE__)).tr('/', '\\')
1717
else
1818
# This will use default / system library paths
1919
'libmysql.dll'

0 commit comments

Comments
 (0)