Skip to content

Commit 3fba6fa

Browse files
committed
fix: fix Rubocop Naming/VariableNumber offense
1 parent 57edc79 commit 3fba6fa

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,6 @@
66
# Note that changes in the inspected code, or installation of new
77
# versions of RuboCop, may require this file to be generated again.
88

9-
# Offense count: 2
10-
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
11-
# SupportedStyles: snake_case, normalcase, non_integer
12-
# AllowedIdentifiers: TLS1_1, TLS1_2, capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64
13-
Naming/VariableNumber:
14-
Exclude:
15-
- 'tests/units/test_log.rb'
16-
- 'tests/units/test_log_execute.rb'
17-
189
# Offense count: 1
1910
Style/ClassVars:
2011
Exclude:

tests/units/test_log.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def test_log_max_count_default
1515
end
1616

1717
# In these tests, note that @git.log(n) is equivalent to @git.log.max_count(n)
18-
def test_log_max_count_20
18+
def test_log_max_count_twenty
1919
assert_equal(20, @git.log(20).size)
2020
assert_equal(20, @git.log.max_count(20).size)
2121
end

tests/units/test_log_execute.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def test_log_max_count_default
1616
end
1717

1818
# In these tests, note that @git.log(n) is equivalent to @git.log.max_count(n)
19-
def test_log_max_count_20
19+
def test_log_max_count_twenty
2020
assert_equal(20, @git.log(20).execute.size)
2121
assert_equal(20, @git.log.max_count(20).execute.size)
2222
end

0 commit comments

Comments
 (0)