mohkale / flymake-collection

Collection of checkers for flymake
MIT License
68 stars 13 forks source link

Additional checkers #38

Open abougouffa opened 4 months ago

abougouffa commented 4 months ago

First, I would like to thank you for this collection!

I've been using flymake-collection to define some checkers in my config for tools that I use regularly. And I thought I should contribute them back!

This PR include checkers for:

I've tried to add the install commands and some tests, but I'm kind of trying blindly because I didn't manage to run the Docker used to run tests!

Edit

A little bug fix slipped into one of the commits, the setup hook for Elisp was wrongly set to elisp-mode instead of emacs-lisp-mode.

abougouffa commented 4 months ago

Thanks for the feedback, I've done the changes.

Thanks again for your responsiveness!

abougouffa commented 4 months ago

Hi again @mohkale ,

I've pushed a fix to pass the test. It seems like the NASM version included in the test container is a bit older than mine, hence the difference in the messages.

It should be fixed now!

abougouffa commented 4 months ago

@mohkale I've fixed in issue in clang-tidy, it should pass the linter now!

abougouffa commented 4 months ago

Reverted (require 'subr)

mohkale commented 4 months ago

I've seen this failure before but can never remember how to fix it. When I get some free time I'll take a look. If you'd prefer please continue trying to debug. You should be able to run the linter yourself with make lint :thinking:.

abougouffa commented 4 months ago

Hi again @mohkale

I've tried the linter on the current branch and it comes clean!

$ make lint
[compile] src/checkers/flymake-collection-clang-tidy.el
[compile] src/checkers/flymake-collection-less.el
[compile] src/checkers/flymake-collection-luacheck.el
[compile] src/checkers/flymake-collection-hlint.el
[compile] src/checkers/flymake-collection-statix.el
[compile] src/checkers/flymake-collection-pylint.el
[compile] src/checkers/flymake-collection-mypy.el
[compile] src/checkers/flymake-collection-flake8.el
[compile] src/checkers/flymake-collection-codespell.el
[compile] src/checkers/flymake-collection-shellcheck.el
[compile] src/checkers/flymake-collection-markdownlint.el
[compile] src/checkers/flymake-collection-lua.el
[compile] src/checkers/flymake-collection-bandit.el
[compile] src/checkers/flymake-collection-nasm.el
[compile] src/checkers/flymake-collection-sql-lint.el
[compile] src/checkers/flymake-collection-xmllint.el
[checkdoc] src/flymake-collection-define.el
[checkdoc] src/flymake-collection.el
[checkdoc] src/flymake-collection-commands.el
[checkdoc] src/flymake-collection-hook.el
[checkdoc] src/checkers/flymake-collection-jq.el
[checkdoc] src/checkers/flymake-collection-yamllint.el
[checkdoc] src/checkers/flymake-collection-pyre.el
[checkdoc] src/checkers/flymake-collection-gcc.el
[checkdoc] src/checkers/flymake-collection-kube-linter.el
[checkdoc] src/checkers/flymake-collection-clang.el
[checkdoc] src/checkers/flymake-collection-pycodestyle.el
[checkdoc] src/checkers/flymake-collection-html-tidy.el
[checkdoc] src/checkers/flymake-collection-ruff.el
[checkdoc] src/checkers/flymake-collection-jsonlint.el
[checkdoc] src/checkers/flymake-collection-rubocop.el
[checkdoc] src/checkers/flymake-collection-sqlint.el
[checkdoc] src/checkers/flymake-collection-vale.el
[checkdoc] src/checkers/flymake-collection-awk-gawk.el
[checkdoc] src/checkers/flymake-collection-eslint.el
[checkdoc] src/checkers/flymake-collection-proselint.el
[checkdoc] src/checkers/flymake-collection-clang-tidy.el
[checkdoc] src/checkers/flymake-collection-less.el
[checkdoc] src/checkers/flymake-collection-luacheck.el
[checkdoc] src/checkers/flymake-collection-hlint.el
[checkdoc] src/checkers/flymake-collection-statix.el
[checkdoc] src/checkers/flymake-collection-pylint.el
[checkdoc] src/checkers/flymake-collection-mypy.el
[checkdoc] src/checkers/flymake-collection-flake8.el
[checkdoc] src/checkers/flymake-collection-codespell.el
[checkdoc] src/checkers/flymake-collection-shellcheck.el
[checkdoc] src/checkers/flymake-collection-markdownlint.el
[checkdoc] src/checkers/flymake-collection-lua.el
[checkdoc] src/checkers/flymake-collection-bandit.el
[checkdoc] src/checkers/flymake-collection-nasm.el
[checkdoc] src/checkers/flymake-collection-sql-lint.el
[checkdoc] src/checkers/flymake-collection-xmllint.el
abougouffa commented 4 months ago

ping @mohkale !

mohkale commented 4 months ago

Hi, sorry. Didn't get a chance to check this this weekend. I'll take a look when I have some free time.

mohkale commented 4 months ago

FYI Tried taking a look at this, annoyingly some regressions in pylint and the rx interface is causing the build on the master branch to fail which is rippling into this PR. It requires some refactoring so when I have some more time I'll address the failures but won't be able to merge this PR until afterwards (just to avoid compounding issues :disappointed:).

mohkale commented 2 months ago

@abougouffa Took me a while to reprioritise this but i've fixed the build failures on the master branch. You're PR is currently failing linting on Emacs 28.1. I'd suggest double checking by running make lint from a container with Emacs 28.1 installed.

abougouffa commented 2 months ago

Hi @mohkale

Thank you for the feedback,

I see the issue now, I will fix it ASAP!

Thanks again!

mohkale commented 1 day ago

Hiya, there still seems to be some issues with the build. Please take a look when you get a chance. I've also noticed for some reason CI didn't run automatically when you commit, I've pushed something that should fix that but I'll keep monitoring to see if the issue persists :thinking:.