Skip to content

Commit 3f4187e

Browse files
committed
Style/MutableConstant
1 parent 0e77b9b commit 3f4187e

File tree

5 files changed

+4
-13
lines changed

5 files changed

+4
-13
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,6 @@ Style/GlobalVars:
7272
Exclude:
7373
- 'ext/mysql2/extconf.rb'
7474

75-
# Offense count: 4
76-
# Cop supports --auto-correct.
77-
Style/MutableConstant:
78-
Exclude:
79-
- 'ext/mysql2/extconf.rb'
80-
- 'lib/mysql2/version.rb'
81-
- 'tasks/rspec.rake'
82-
- 'tasks/vendor_mysql.rake'
83-
8475
# Offense count: 17
8576
# Cop supports --auto-correct.
8677
# Configuration parameters: Strict.

ext/mysql2/extconf.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def add_ssl_defines(header)
5252
# For those without HOMEBREW_ROOT in PATH
5353
dirs << "#{ENV['HOMEBREW_ROOT']}/bin" if ENV['HOMEBREW_ROOT']
5454

55-
GLOB = "{#{dirs.join(',')}}/{mysql_config,mysql_config5,mariadb_config}"
55+
GLOB = "{#{dirs.join(',')}}/{mysql_config,mysql_config5,mariadb_config}".freeze
5656

5757
# If the user has provided a --with-mysql-dir argument, we must respect it or fail.
5858
inc, lib = dir_config('mysql')

lib/mysql2/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# encoding: UTF-8
22

33
module Mysql2
4-
VERSION = "0.4.10"
4+
VERSION = "0.4.10".freeze
55
end

tasks/rspec.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ begin
1313
--partial-loads-ok=yes
1414
--undef-value-errors=no
1515
--trace-children=yes
16-
)
16+
).freeze
1717
cmdline = "valgrind #{VALGRIND_OPTS.join(' ')} bundle exec rake spec"
1818
puts cmdline
1919
system cmdline

tasks/vendor_mysql.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
require 'rake/clean'
44
require 'rake/extensioncompiler'
55

6-
CONNECTOR_VERSION = "6.1.11" # NOTE: Track the upstream version from time to time
6+
CONNECTOR_VERSION = "6.1.11".freeze # NOTE: Track the upstream version from time to time
77

88
def vendor_mysql_platform(platform = nil)
99
platform ||= RUBY_PLATFORM

0 commit comments

Comments
 (0)