efm-perl - perl -c executable with errorformat friendly outputs.
efm-perl [options]
Options: --filename, -f [filename] Filename to lint. This is mandatory. --lib, -I [paths] Additional paths for $PERL5LIB. --verbose, -v Print all outputs. --help, -h Show help message. # load the script from -f option efm-perl -f /path/to/script.pl # load the script from STDIN but filter out by filename from -f option cat /tmp/script.pl | efm-perl -f /path/to/script.pl
Additional paths for PERL5LIB
PERL5LIB
Filename to lint. This is mandatory.
Print out all outputs. Without this, it shows errors only.
Print a help message.
This is a tiny script to use with mattn/efm-langserver. It parses perl -c outputs and arrange them to errorformat-friendly ones.
perl -c
For efm-langserver, set config.yaml as below.
tools: efm-perl: &efm-perl lint-command: efm-perl -f ${INPUT} lint-ignore-exit-code: true lint-stdin: true lint-formats: - '%f:%l:%m' languages: perl: - <<: *efm-perl
Copyright (C) delphinus.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
delphinus <me@delphinus.dev>
To install App::efm_perl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::efm_perl
CPAN shell
perl -MCPAN -e shell install App::efm_perl
For more information on module installation, please visit the detailed CPAN module installation guide.