Skip to content

Commit a68c8f2

Browse files
committed
(CONT-789) Rubocop Manual Fix 5 - Naming/MethodParameterName
1 parent effc684 commit a68c8f2

File tree

3 files changed

+6
-14
lines changed

3 files changed

+6
-14
lines changed

.rubocop_todo.yml

-8
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,6 @@ Naming/MemoizedInstanceVariableName:
5555
Exclude:
5656
- 'spec/spec_helper_acceptance_local.rb'
5757

58-
# Offense count: 2
59-
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
60-
# AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
61-
Naming/MethodParameterName:
62-
Exclude:
63-
- 'lib/puppet/provider/mysql_login_path/mysql_login_path.rb'
64-
- 'lib/puppet/type/mysql_user.rb'
65-
6658
# Offense count: 24
6759
# Configuration parameters: MinSize.
6860
Performance/CollectionLiteralInLoop:

lib/puppet/provider/mysql_login_path/mysql_login_path.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ def delete_login_path(context, name)
105105
mysql_config_editor_cmd(context, uid, 'remove', '-G', login_path)
106106
end
107107

108-
def gen_pw(pw)
109-
Puppet::Provider::MysqlLoginPath::Sensitive.new(pw)
108+
def gen_pw(password)
109+
Puppet::Provider::MysqlLoginPath::Sensitive.new(password)
110110
end
111111

112112
def extract_pw(sensitive)

lib/puppet/type/mysql_user.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,13 @@ def should_to_s(_newvalue)
102102
end
103103
end
104104
end
105-
def insync?(is)
105+
def insync?(insync)
106106
# The current value may be nil and we don't
107107
# want to call sort on it so make sure we have arrays
108-
if is.is_a?(Array) && @should.is_a?(Array)
109-
is.sort == @should.sort
108+
if insync.is_a?(Array) && @should.is_a?(Array)
109+
insync.sort == @should.sort
110110
else
111-
is == @should
111+
insync == @should
112112
end
113113
end
114114
end

0 commit comments

Comments
 (0)