Skip to content

Development: make lint always fails using GNU grep 3.8 or later #3635

@matthewhughes934

Description

@matthewhughes934

Output of make lint

$ make lint
==> Running linting tools
Running vint ... SKIPPED
'vint' binary not found; use 'pip install vim-vint' to install it.
Running vim-vimlint ... FAILED
egrep: warning: egrep is obsolescent; using grep -E

Running vimhelplint ... PASSED
make: *** [Makefile:21: lint] Error 6

This failure is because the Running vim-vimlint step is marked as failed when any output is captured

if [ -n "$lint" ]; then

But vim-vimlint uses egrep when run https://github.com/syngan/vim-vimlint/blob/cec40c28f119a5f4b92ceb0b6aae525122a81244/bin/vimlint.sh#L106 since GNU grep 3.8 egrep is deprecated and emits a warning https://lists.gnu.org/archive/html/info-gnu/2022-09/msg00001.html which is then captured, resulting in failure.

Since https://github.com/syngan/vim-vimlint has not been updated in 6 years I don't imagine we can patch there. Maybe the lint script could check the exit code of vimlin-lint instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions