Skip to content

Commit 93cfad1

Browse files
committed
(CONT-803) Rubocop Manual Fix 1 - Lint/ConstantDefinitionInBlock
1 parent 4bc011a commit 93cfad1

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,6 @@ Lint/BooleanSymbol:
1515
- 'lib/puppet/type/vcsrepo.rb'
1616
- 'spec/acceptance/clone_repo_spec.rb'
1717

18-
# Offense count: 1
19-
# Configuration parameters: AllowedMethods.
20-
# AllowedMethods: enums
21-
Lint/ConstantDefinitionInBlock:
22-
Exclude:
23-
- 'lib/puppet/provider/vcsrepo/svn.rb'
24-
2518
# Offense count: 14
2619
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
2720
Metrics/AbcSize:

lib/puppet/provider/vcsrepo/svn.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
require File.join(File.dirname(__FILE__), '..', 'vcsrepo')
44

5+
SKIP_DIRS = ['.', '..', '.svn'].freeze
6+
57
Puppet::Type.type(:vcsrepo).provide(:svn, parent: Puppet::Provider::Vcsrepo) do
68
desc 'Supports Subversion repositories'
79

@@ -167,8 +169,6 @@ def sensitive?
167169
(@resource.parameters.key?(:basic_auth_password) && @resource.parameters[:basic_auth_password].sensitive) ? true : false # Check if there is a sensitive parameter
168170
end
169171

170-
SKIP_DIRS = ['.', '..', '.svn'].freeze
171-
172172
def get_includes(directory)
173173
at_path do
174174
args = buildargs.push('info', directory)

0 commit comments

Comments
 (0)