Perl-Critic / PPI

53 stars 44 forks source link

implement PPI::Document::Strict #136

Open wchristian opened 9 years ago

wchristian commented 9 years ago

PPI::D::Strict would be a sibling to PPI::Document that is not afraid of dieing when things go wrong, and that is not afraid to die in situations where syntax is objectively broken, and that will also let the user know about syntax that is ambiguous, likely by dieing by default, with an option to set a flag.

This is related to #129, #135 and #28.

adamkennedy commented 9 years ago

The tricky bit here will be dealing with behavior that is always bad, versus behaviour that MIGHT be had.

I good way to think about this module is "What downstream tooling, precisely, does this code enable".

What is the use case? Who are the consumers of this functionality? Because it's probably a big job...