HomePhorge

(#17260) Warn when variables contain hyphens
bd0caf57e10fUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#17260) Warn when variables contain hyphens

Previously the deprecation warnings for hyphens in variables
incorrectly warned even when there were no hyphens in the variable.
There was also no warning about hypens in variable interpolations when
the bare-word form of interpolation was used, e.g. "${foo-bar}".

This commit causes those two cases to warn correctly and also cleans up
the tests to be more directed to just the lexing of specific tokens.
This also removes some duplication that crept in around checking and
issuing the warning.

Paired-with: henrik.lindberg@cloudsmith.com

Details

Provenance
Andrew Parker <andy@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU35b9ff2c5b54: Edit description of hyphenated variables compatibility setting
Branches
Unknown
Tags
Unknown

Event Timeline

Andrew Parker <andy@puppetlabs.com> committed rPUbd0caf57e10f: (#17260) Warn when variables contain hyphens (authored by Andrew Parker <andy@puppetlabs.com>).Oct 30 2012, 1:18 AM