Skip to content

Commit 95dff1a

Browse files
committed
Naming/ClassAndModuleCamelCase
Disable the Naming/ClassAndModuleCamelCase Rubocop cop on existing violations, as class names are public by default and updating them could be a breaking change. Enable this cop for new code to catch any future violations.
1 parent 85e4069 commit 95dff1a

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

.rubocop.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,15 @@ Metrics/ParameterLists:
5555
Metrics/PerceivedComplexity:
5656
Enabled: false
5757

58+
Naming/ClassAndModuleCamelCase:
59+
Exclude:
60+
- 'lib/puppet/ffi/windows/structs.rb'
61+
- 'lib/puppet/pops/validation/checker4_0.rb'
62+
- 'lib/puppet/pops/validation/validator_factory_4_0.rb'
63+
- 'lib/puppet/util/windows/root_certs.rb'
64+
- 'lib/puppet/util/windows/security.rb'
65+
- 'lib/puppet/util/windows/user.rb'
66+
5867
Naming/HeredocDelimiterNaming:
5968
Enabled: false
6069

.rubocop_todo.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -656,17 +656,6 @@ Naming/BlockParameterName:
656656
- 'lib/puppet/util/windows/daemon.rb'
657657
- 'lib/puppet/util/windows/user.rb'
658658

659-
# Configuration parameters: AllowedNames.
660-
# AllowedNames: module_parent
661-
Naming/ClassAndModuleCamelCase:
662-
Exclude:
663-
- 'lib/puppet/ffi/windows/structs.rb'
664-
- 'lib/puppet/pops/validation/checker4_0.rb'
665-
- 'lib/puppet/pops/validation/validator_factory_4_0.rb'
666-
- 'lib/puppet/util/windows/root_certs.rb'
667-
- 'lib/puppet/util/windows/security.rb'
668-
- 'lib/puppet/util/windows/user.rb'
669-
670659
Naming/ConstantName:
671660
Exclude:
672661
- 'lib/puppet/graph/relationship_graph.rb'

0 commit comments

Comments
 (0)