class Object
Constants
- BOOLEANS
- COMMENT_TOKENS
- COMMENT_TYPES
- DEFAULT_SCOPE_VARS
- IGNORE_TYPES
- MODE_RE
- MSG
- POST_VAR_TOKENS
- STRING_TYPES
- SYM_RE
- TOKENS
- TOKEN_TYPES
- VARIABLE_TYPES
- VAR_TYPES
- WHITESPACE_TOKENS
- WHITESPACE_TYPES
Public Instance Methods
check()
click to toggle source
# File lib/puppet-lint/plugins/check_classes.rb, line 4 def check tokens.select { |r| r.type == :OUT_EDGE }.each do |token| notify :warning, { :message => 'right-to-left (<-) relationship', :line => token.line, :column => token.column, } end end
fix(problem)
click to toggle source
# File lib/puppet-lint/plugins/check_comments.rb, line 17 def fix(problem) problem[:token].type = :COMMENT end