check_resources.rb

Path: lib/puppet-lint/plugins/check_resources.rb
Last Update: Thu Nov 20 14:31:36 -0800 2014

Public: Check the manifest tokens for any resource titles / namevars that are not quoted and record a warning for each instance found.

Methods

check   check   check   check   check   check   fix   fix   fix   fix  

Constants

TOKEN_TYPES = Set[:NAME, :NUMBER]
MSG = 'mode should be represented as a 4 digit octal value or symbolic mode'
SYM_RE = "([ugoa]*[-=+][-=+rstwxXugo]*)(,[ugoa]*[-=+][-=+rstwxXugo]*)*"
IGNORE_TYPES = Set[:VARIABLE, :UNDEF]
MODE_RE = Regexp.new(/\A([0-7]{4}|#{SYM_RE})\Z/)

Public Instance methods

[Validate]