in reply to perlcriticrc packaged with project

Not sure how to do it with VSCode but if it supports a per-project environment setting you might could set PERLCRITIC to point to the .perlcritic file (presumably in the root directory of the project) that you want used.

Alternately if it allows you to pass extra options when it runs perlcritic add something like --profile path/to/.perlcritic options. See the section CONFIGURATION in Perl::Critic.

The cake is a lie.
The cake is a lie.
The cake is a lie.

Replies are listed 'Best First'.
Re^2: perlcriticrc packaged with project
by geraint (Novice) on Apr 16, 2019 at 09:45 UTC

    Thanks, yes it seems that creating a new settings.json file in the .vscode directory at the root of the project allows me to setup project specific settings. From there I could set the path to the perlcritic binary passing in the profile as you suggested.

    { "perl-toolbox.lint.exec": "/usr/local/bin/perlcritic -profile '/Us +ers/geraint/Projects/thisproject/.perlcriticrc'" }

    Thanks for your help!