Skip to content

heinrich-S/linter-perl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

linter-perl package

This linter plugin for Linter provides an interface to perl. It will be used with files that have the "Perl" syntax.

Installation

  • Install Perl 5.
  • apm install linter (if you didn't install Linter).
  • apm install linter-perl

Settings

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"

plenv Support

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" to perlExecutablePath (this way is not portable)
    • set true to executeCommnadViaShell (perlExecutablePath is ignored)

Perlbrew is not tested, but those methods could be used.

Contributing

If you would like to contribute enhancements or fixes, please do the following:

  1. Fork the plugin repository.
  2. Hack on a separate topic branch created from the latest master.
  3. Commit and push the topic branch.
  4. Make a pull request.
  5. 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!

About

Lint Perl 5 on the fly, using perl (B::Lint).

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CoffeeScript 95.8%
  • Perl 4.2%