Skip to content

'declare' linter does not obey --strict option #271

@joshbax189

Description

@joshbax189

E.g. the following is the same with and without --strict

> eask lint declare --strict
`js-comint.el` with check-declare
js-comint.el:148:Warning (check-declare): said ‘nvm--find-exact-version-for’ was defined in .eask/31.0.50/elpa/nvm-20240921.1901/nvm.el: arglist mismatch


js-comint.el:148:Warning (check-declare): said ‘nvm--find-exact-version-for’ was defined in .eask/31.0.50/elpa/nvm-20240921.1901/nvm.el: arglist mismatch

`test-js-comint.el` with check-declare
No issues found

(Total of 2 files have checked)

Expect that the command exits with non-zero status but it exits with 0.

Also, notice that the warning is repeated.

Compare to the output of the checkdoc linter

> eask lint checkdoc --strict
`js-comint.el` with checkdoc (0.6.2)
No issues found

`test-js-comint.el` with checkdoc (0.6.2)
test-js-comint.el:0: The first line should be of the form: ";;; package --- Summary"
test-js-comint.el:0: You should have a section marked ";;; Commentary:"
test-js-comint.el:7: You should have a section marked ";;; Code:"
test-js-comint.el:137: The footer should be: (provide ’test-js-comint)\n;;; test-js-comint.el ends here
test-js-comint.el:8: Argument ‘regex’ should appear (as REGEX) in the doc string
test-js-comint.el:43: First line is not a complete sentence

(Total of 2 files have checked)

This exits with status 1 and all are marked as errors.

This is in version 0.10.1 of Eask

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions