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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a879d214278d7ede417115e5ea44ae4fd240d56a
4
- data.tar.gz: 826315192d79abbda51de1034b50234fcbfa0832
3
+ metadata.gz: d47187d70be310b9107971d06a1c851d08199b63
4
+ data.tar.gz: a0521c1c9d5cf2ee880333c3b9768ff14e3abaff
5
5
  SHA512:
6
- metadata.gz: 027096ef8f757bf084d5a37dc490078eb56b951141f29b8a0af50609e85fd536004a662ac7011bec470022f5232e8d970b3c510efc0936063c8edf37bf76bcf2
7
- data.tar.gz: 3e8dd08019faa700e593d1306438cf61657e8a783608945c575bf36defb271459099cc2c19d6cae8f0fcfc5453257c7a6f28bbb6e32eeec126ce9db479b72c94
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
- IGNORE_TYPES = Set[:VARIABLE, :UNDEF]
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 IGNORE_TYPES.include?(value_token.type)
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.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-01-20 00:00:00.000000000 Z
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: " Extends puppet-lint to ensure all file resource modes are defined
84
- as octal\n values and not symbolic ones. \n"
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: []