You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
puppet-lint 2.4.1 manifests/subscription_manager.pp
WARNING: double quoted string containing no variables on line 19
WARNING: double quoted string containing no variables on line 36
The text was updated successfully, but these errors were encountered:
As @dioni21 mentioned, this is actually the expected behaviour.
Looking at how that string was tokenised in 2.3.6, the lack of a warning previously was the result of an unknown bug that caused the string to be tokenised into multiple tokens rather than the single :STRING token that it should have been.
You are correct that the style guide says that this should be valid, but puppet-lint was written at a time when the style guide only preferred the use of single quotes and has not been updated to support the preference of double quotes.
We started receiving failures on the new version of puppet-lint, we are getting a warning " WARNING: double quoted string containing no variables"
onlyif => "test$( subscription-manager refresh >/dev/null 2>&1; echo $ ? ) -ne 0 ",
It seems to follow the style guide for quotes.
https://puppet.com/docs/puppet/6.4/style_guide.html#quoting
puppet-lint 2.3.6 manifests/subscription_manager.pp
puppet-lint 2.4.1 manifests/subscription_manager.pp
WARNING: double quoted string containing no variables on line 19
WARNING: double quoted string containing no variables on line 36
The text was updated successfully, but these errors were encountered: