HomePhorge

(maint) Disable future parser warnings based on :disable_warnings
dc411336dafbUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(maint) Disable future parser warnings based on :disable_warnings

Work on PUP-2650 missed that the future parser has a separate method of
handling deprecation warnings. This changes IssueReporter to muzzle
deprecations when 'deprecations' is in Puppet[:disable_warnings]. It
also adjusts the max_warnings/deprecations counts to be one-based, so a
setting of Puppet[:max_warnings] = 4 emits at most 4 warnings per
manifest from future parser. A setting of 0 blocks the warnings
altogether.

Adds specs for the current behavior.

Details

Provenance
Josh Partlow <joshua.partlow@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU7040f81e0a33: (PUP-2557) Issue deprecation warning for AST::Node inheritance
Branches
Unknown
Tags
Unknown

Event Timeline

Josh Partlow <joshua.partlow@puppetlabs.com> committed rPUdc411336dafb: (maint) Disable future parser warnings based on :disable_warnings (authored by Josh Partlow <joshua.partlow@puppetlabs.com>).Jun 17 2014, 1:32 AM