voxpupuli / puppet-lint-strict_indent-check

indent check for puppet-lint
Mozilla Public License 2.0
4 stars 10 forks source link

Reset not only whitespaces but comments too. #9

Closed jiuka closed 7 years ago

jiuka commented 7 years ago

The logic to backtrack to the last non-whitespace on the previous line should also backtrack comments. Otherwise the following example would be generate a warning that the ensure line is indented to fare.

 class () {
   file {
     'this': #comment
       ensure  => 'present',
   }
 }
relud commented 7 years ago

Nice catch, thanks! I'll release an updated gem later today.