http://www.perlmonks.org?node_id=1232583

geraint has asked for the wisdom of the Perl Monks concerning the following question:

Hi everyone,

I'm writing perl using VSCode and have installed the Perl Toolbox extension which provides linting with perlcritic. I can't find a way to use my project's .perlcriticrc file though, and the default rules it's applying are excessively strict. In the settings there's an option to use the file at ~/.perlcriticrc but I can't find an option to use a file in the project directory. I could just copy the projects .perlcriticrc file to my home directory but I would have to do this each time I switch between different projects which is not ideal and I don't want to make project config global.

Is there a way to use the rc file from the current project or just go up the directory tree until it finds a config file, similar to how eslintrc file works?

Thanks,

Ger