puppet-lint-absolute_classname-check 4.0.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bab4eb9b4aef059a9c8504154fae11e0255f60d5189917cca60e2cfb34b3303b
|
4
|
+
data.tar.gz: cb99d84abdd3643e7716cfbcd8acaa305e01044cacde4ef357a2356027598207
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04e32d38a39f8971047041bef61928e17a4bbf10b2094dd87179ff7596714bf36abefcaa15723effb7f031943024b21868fc84446a0bd002579620f2ae9f0265
|
7
|
+
data.tar.gz: 7dd31a3d2d1554008030ae3dba22257573be9a7c9f06e96bcdd251c01728f5e7c1e36e84da23b63ff53b71b8c161408283b7977089dda495f6c544fe217a78f4
|
@@ -30,7 +30,7 @@ PuppetLint.new_check(:relative_classname_inclusion) do
|
|
30
30
|
elsif token.type == :CLASS and token.next_code_token.type == :LBRACE
|
31
31
|
s = token.next_code_token
|
32
32
|
while s.type != :COLON
|
33
|
-
if
|
33
|
+
if %i[NAME SSTRING].include?(s.type) && s.value.start_with?('::')
|
34
34
|
notify :warning, {
|
35
35
|
message: message,
|
36
36
|
line: s.line,
|
@@ -7,7 +7,7 @@ PuppetLint.new_check(:relative_classname_reference) do
|
|
7
7
|
|
8
8
|
s = token.next_code_token
|
9
9
|
while s.type != :RBRACK
|
10
|
-
if
|
10
|
+
if %i[NAME SSTRING].include?(s.type) && s.value.start_with?('::')
|
11
11
|
notify :warning, {
|
12
12
|
message: message,
|
13
13
|
line: s.line,
|
data/spec/spec_helper.rb
CHANGED
@@ -1,29 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
begin
|
4
|
-
require 'simplecov'
|
5
|
-
require 'simplecov-console'
|
6
|
-
require 'codecov'
|
7
|
-
rescue LoadError
|
8
|
-
else
|
9
|
-
SimpleCov.start do
|
10
|
-
track_files 'lib/**/*.rb'
|
11
|
-
|
12
|
-
add_filter '/spec'
|
13
|
-
|
14
|
-
enable_coverage :branch
|
15
|
-
|
16
|
-
# do not track vendored files
|
17
|
-
add_filter '/vendor'
|
18
|
-
add_filter '/.vendor'
|
19
|
-
end
|
20
|
-
|
21
|
-
SimpleCov.formatters = [
|
22
|
-
SimpleCov::Formatter::Console,
|
23
|
-
SimpleCov::Formatter::Codecov,
|
24
|
-
]
|
25
|
-
end
|
26
|
-
|
27
3
|
require 'puppet-lint'
|
4
|
+
require 'rspec/collection_matchers'
|
28
5
|
|
29
6
|
PuppetLint::Plugins.load_spec_helper
|
metadata
CHANGED
@@ -1,35 +1,28 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puppet-lint-absolute_classname-check
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 5.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vox Pupuli
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: puppet-lint
|
15
14
|
requirement: !ruby/object:Gem::Requirement
|
16
15
|
requirements:
|
17
|
-
- - "
|
16
|
+
- - "~>"
|
18
17
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
20
|
-
- - "<"
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '5'
|
18
|
+
version: '5.1'
|
23
19
|
type: :runtime
|
24
20
|
prerelease: false
|
25
21
|
version_requirements: !ruby/object:Gem::Requirement
|
26
22
|
requirements:
|
27
|
-
- - "
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '3.0'
|
30
|
-
- - "<"
|
23
|
+
- - "~>"
|
31
24
|
- !ruby/object:Gem::Version
|
32
|
-
version: '5'
|
25
|
+
version: '5.1'
|
33
26
|
description: " A puppet-lint plugin to check that classes are not included or referenced
|
34
27
|
by their absolute name.\n"
|
35
28
|
email: voxpupuli@groups.io
|
@@ -48,7 +41,6 @@ homepage: https://github.com/voxpupuli/puppet-lint-absolute_classname-check
|
|
48
41
|
licenses:
|
49
42
|
- Apache-2.0
|
50
43
|
metadata: {}
|
51
|
-
post_install_message:
|
52
44
|
rdoc_options: []
|
53
45
|
require_paths:
|
54
46
|
- lib
|
@@ -56,15 +48,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
56
48
|
requirements:
|
57
49
|
- - ">="
|
58
50
|
- !ruby/object:Gem::Version
|
59
|
-
version: 2
|
51
|
+
version: '3.2'
|
60
52
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
61
53
|
requirements:
|
62
54
|
- - ">="
|
63
55
|
- !ruby/object:Gem::Version
|
64
56
|
version: '0'
|
65
57
|
requirements: []
|
66
|
-
rubygems_version: 3.
|
67
|
-
signing_key:
|
58
|
+
rubygems_version: 3.6.9
|
68
59
|
specification_version: 4
|
69
60
|
summary: A puppet-lint plugin to check that classes are not included or referenced
|
70
61
|
by their absolute name.
|