Fixing broken for puppet-lint >= 2.4.0 #28
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is an empty PR to let Travis run and show the problem.
As a small example:
A lot of the "fixes" don't work anymore. My tests show that this starts to happen with puppet-lint 2.4.0.
Problem seems to be here:
puppet-lint-legacy_facts-check/lib/puppet-lint/plugins/legacy_facts.rb
Line 128 in 0741bbf
It gets triggered because
problem[:token].value != problem[:token].raw
and therefore no fixing is attempted for this line.To be honest, I don't really get why this line was introduced in the first place. Perhaps @seanmil has some deeper insight why this started to break in 2.4.0? He introduce this change in #13.