This linter plugin for Linter provides an interface to perl. It will be used with files that have the "Perl" syntax.
apm install linter(optional)
apm install linter-perl
You can configure linter-perl by editing ~/.atom/config.cson (choose Open Your Config in Atom menu):
"linter-perl":# The absolute path of perl interpreter.# If this was given, executeCommandViaShell and autoDetectCarton are ignored."executablePath": null# Is the command executed via `$SHELL -l`?# This is useful when PATH is setup in .bash_profile, etc.# If true, executablePath option is ignored."executeCommandViaShell": false# Is carton enabled if there are both "cpanfile.snapshot" and "local/"# in the current root directory?"autoDetectCarton": true# This is passed to the perl interpreter directly."additionalPerlOptions": null# Relative include paths from the current root directory."incPathsFromProjectRoot": [".", "lib"]# B::Lint options. "-MO=Lint,HERE"# ex. "all,no-bare-subs,no-context""lintOptions": "all"
NOTE: "The current root directory" is the root directory in tree-view which contains the file opened in the active text editor. If no root directories contain the file, its parent directory is selected as the current root directory.
There are three ways to use this package with plenv:
atom .in your shell.
perlExecutablePath(this way is not portable)
Perlbrew is not tested, but those methods could be used.
If you would like to contribute enhancements or fixes, please do the following:
Please note that modifications should follow these coding guidelines:
Thank you for helping out!
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.