Actions Status

NAME

efm-perl - perl -c executable with errorformat friendly outputs.

SYNOPSIS

# load the script from -f option
efm-perl -f /path/to/script.pl

# load the script from STDIN but filter out messages by filename from -f option
cat /tmp/script.pl | efm-perl -f /path/to/script.pl

OPTIONS

DESCRIPTION

This is a tiny script to use with mattn/efm-langserver. It parses perl -c outputs and arrange them to errorformat-friendly ones.

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:
      - '%l:%m'

languages:
  perl:
    - <<: *efm-perl

efm-perl borrows many ideas from the original efm_perl.pl. This has improvements below after that.

USAGE

You can install efm-perl with cpanm.

cpanm install App::efm_perl

Or you can use simply by copying the script.

cp script/efm-perl /path/to/your/$PATH

LICENSE

Copyright (C) delphinus.

This library is free software; you can redistribute it and/or modify it under MIT License.

AUTHOR

delphinus me@delphinus.dev