Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to work with puppet-lint >= 2.4 #32

Merged
merged 1 commit into from
Mar 9, 2020

Conversation

rodjek
Copy link
Contributor

@rodjek rodjek commented Feb 17, 2020

puppet-lint 2.4 introduced what was supposed to be a non-breaking change
that fixed how interpolated expressions were tokenised, but this
unfortunately broke the check in this plugin (I'm going to have to
rethink how plugins factor into my change classifications for semver
purposes).

Anyway, this PR should fix up the issues with this plugin and
puppet-lint 2.4.x by extending the existing logic to handle cases where
variables like $facts['osfamily'] are represented internally as
a sequence of tokens rather than a single token.

puppet-lint 2.4 introduced what was supposed to be a non-breaking change
that fixed how interpolated expressions were tokenised, but this
unfortunately broke the check in this plugin (I'm going to have to
rethink how plugins factor into my change classifications for semver
purposes).

Anyway, this PR should fix up the issues with this plugin and
puppet-lint 2.4.x by extending the existing logic to handle cases where
variables like `$facts['osfamily']` are represented internally as
a sequence of tokens rather than a single token.
@mmckinst
Copy link
Owner

mmckinst commented Mar 9, 2020

Thanks for submitting the PR to fix this.

@rodjek rodjek deleted the latest-puppet-lint branch March 10, 2020 01:35
alexjfisher added a commit to alexjfisher/puppet-lint-top_scope_facts-check that referenced this pull request Jul 19, 2022
Puppet-lint 2.4 contained a breaking change in
rodjek/puppet-lint#846

Fixups have already been applied in other plugins such as
mmckinst/puppet-lint-legacy_facts-check#32

This commit reverts ee3a6b0
updates the minimum puppet-lint version to 2.4, and fixes up a couple of
tests where the location of the warnings have changed by one character.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants