Dancer2 icon indicating copy to clipboard operation
Dancer2 copied to clipboard

Support selective DSL keywords on import?

Open xsawyerx opened this issue 8 years ago • 0 comments

Currently you cannot pick which DSL keywords would be imported from Dancer2. This also confuses static analyzer Perl::Critic. I suggest we allow this.

We currently check for the following:

  • :script. :syntax, :tests: No op.
  • :nopragmas.
  • appname, followed by a string, representing a class.
  • dsl, following by a string representing a class.
  • Anything prefixed with !, meaning "do not import this thing".

We can verify anything else is a keyword and if so, support it being used as a filter instead. This would be simpler and much more consistent with general importing conventions.

xsawyerx avatar Feb 12 '17 12:02 xsawyerx