[dancer-users] Dancer DSL vs. Perl Critic

Mike Diehl mdiehlenator at gmail.com
Mon Dec 21 21:05:58 EST 2020


Hi all,

So I've got a line of code like:

prefix "/apps/Credit_Card/";

I'm using VS Code, which uses Perl::Critic, to edit the program.

When Perl::Critic encounters the line above, it see it as a "problem":

String found where operator expected at - line 3, near "prefix
"/apps/Credit_Card/""
(Do you need to predeclare template?)syntax error at - line 3, near
"prefix "/apps/Credit_Card/""

I know that I can put a ### No critic at the end of the line, but that
kind of defeats the purpose of using the tool.

How SHOULD I make this "problem" go away?

Hope that was clear.

Mike.


More information about the dancer-users mailing list