redtux has asked for the wisdom of the Perl Monks concerning the following question:
I am running perlcritic against a perl app (perl, gtk, DBD::Pg so fairly complex)
Is there any way to tell perlcritic to IGNORE heredocs?.
I use heredocs exclusively for formatting sql stings to pass to the db server. However perlcritic complains within hereocs about at least
ProhibitMismatchedOperators (which are valid in sql strings, eg: =) ProhibitImplicitNewlines ProhibitHardTabs
## no critic doesn't assist as the only way to get it to work is globally, which removes the check from code that I want to check
thanks in advance
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perlcritic and heredocs
by Corion (Patriarch) on Apr 15, 2020 at 11:22 UTC | |
by redtux (Sexton) on Apr 15, 2020 at 13:09 UTC | |
by choroba (Cardinal) on Apr 15, 2020 at 14:14 UTC | |
by Fletch (Bishop) on Apr 15, 2020 at 15:09 UTC | |
by haukex (Archbishop) on Apr 15, 2020 at 15:24 UTC | |
by redtux (Sexton) on Apr 15, 2020 at 21:40 UTC | |
by haukex (Archbishop) on Apr 15, 2020 at 22:02 UTC | |
|
Re: perlcritic and heredocs
by haukex (Archbishop) on Apr 15, 2020 at 12:16 UTC | |
by redtux (Sexton) on Apr 15, 2020 at 22:45 UTC |