voxpupuli / metadata-json-lint

Tool to check the validity of Puppet metadata.json files
Apache License 2.0
29 stars 27 forks source link

Confusing error/warning messages if `version_requirement` has extra characters #104

Open llowder opened 4 years ago

llowder commented 4 years ago

With version 2.2.0, when listing module deps if you put in version_requirements by mistake, you get a warning about "open ended version requirements" even if the listed version is not open ended.

This should instead flag the typo in the field name as an error since it should be version_requirement (no trailing s) instead.

Note that this only shows up if --strict-dependencies is used, but the type should probably be flagged regardless.