puppet-lint-no_symbolic_file_modes-check 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/puppet-lint/plugins/no_symbolic_file_modes.rb +2 -2
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d47187d70be310b9107971d06a1c851d08199b63
|
4
|
+
data.tar.gz: a0521c1c9d5cf2ee880333c3b9768ff14e3abaff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a84cedcaef44ef684723d2a5597e84599e3c4a2efc9010a197fa1e2ee7ff703e9e3725fef4b836ca77110b12283eafbfb16e1f6fb5784a6b3f832879ffb69680
|
7
|
+
data.tar.gz: 76623a2dab5d6db1a6b086432bb0f6b833e44cba87225620c7cdb8b3bfc8f3bd5faff158aaa6d009ad4bb83e6697954c1039f07e92e0c84266015d5b3f91777c
|
@@ -1,6 +1,6 @@
|
|
1
1
|
PuppetLint.new_check(:no_symbolic_file_modes) do
|
2
2
|
|
3
|
-
|
3
|
+
NO_SYMBOLIC_FILE_MODES_IGNORE_TYPES = Set[:VARIABLE, :UNDEF]
|
4
4
|
WARNING = 'mode should be a 4 digit octal value, not a symbolic mode'
|
5
5
|
|
6
6
|
def check
|
@@ -11,7 +11,7 @@ PuppetLint.new_check(:no_symbolic_file_modes) do
|
|
11
11
|
}.each do |param_token|
|
12
12
|
value_token = param_token.next_code_token.next_code_token
|
13
13
|
|
14
|
-
break if
|
14
|
+
break if NO_SYMBOLIC_FILE_MODES_IGNORE_TYPES.include?(value_token.type)
|
15
15
|
break if value_token.value =~ /^[0-7]{4}$/
|
16
16
|
|
17
17
|
notify :warning, {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puppet-lint-no_symbolic_file_modes-check
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dean Wilson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: puppet-lint
|
@@ -80,8 +80,9 @@ dependencies:
|
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
|
-
description:
|
84
|
-
|
83
|
+
description: |2
|
84
|
+
Extends puppet-lint to ensure all file resource modes are defined as octal
|
85
|
+
values and not symbolic ones.
|
85
86
|
email: dean.wilson@gmail.com
|
86
87
|
executables: []
|
87
88
|
extensions: []
|