This linter plugin for Linter provides an interface to perl. It will be used with files that have the "Perl" syntax.
- Install Perl 5.
apm install linter
(if you didn't install Linter).apm install linter-perl
You can configure linter-perl by editing ~/.atom/config.cson (choose Open Your Config in Atom menu):
"linter-perl":
"perlExecutablePath": null # perl path. run 'which perl' to find the path
"executeCommandViaShell": false # If it is true, the command is executed via `$SHELL -l`
"autoDetectCarton": true # If it is true, and "cpanfile.snapshot" and "local/" exist, carton command is used.
"additionalPerlOptions": "" # This is passed to the perl interpreter directly.
"incPathsFromProjectPath": [".", "lib"] # Relative include paths from the project directory.
"lintOptions": "-no-bare-subs" # B::Lint options. "-MO=Lint,HERE"
There are three ways to use this package with plenv:
- Open a project by
atom .
in your shell. - Otherwise (e.g. drag & drop),
- set
"/absolute/path/to/.plenv/shims"
toperlExecutablePath
(this way is not portable) - set
true
toexecuteCommnadViaShell
(perlExecutablePath
is ignored)
- set
Perlbrew is not tested, but those methods could be used.
If you would like to contribute enhancements or fixes, please do the following:
- Fork the plugin repository.
- Hack on a separate topic branch created from the latest
master
. - Commit and push the topic branch.
- Make a pull request.
- welcome to the club
Please note that modifications should follow these coding guidelines:
- Indent is 2 spaces.
- Code should pass coffeelint linter.
- Vertical whitespace helps readability, don’t be afraid to use it.
Thank you for helping out!