MarcoGorelli / cython-lint

Lint Cython files
MIT License
68 stars 11 forks source link

Output log file #114

Closed Jtachan closed 2 months ago

Jtachan commented 2 months ago

Analogous to flake8, I wanted to output all the possible warnings in a .log file. However, I've seen that this is not possible yet. My proposal is to add this feature with the same argument as in flake8:

# Call on flake8
flake8 --output-file=flake8.log src

# Proposal for call on cython-lint
cython-lint --output-file=cylint.log src

I believe this is a nice feature to add, as other linters like pylint also allow to create log files by using --output=pylint.log.

MarcoGorelli commented 2 months ago

hi - does it not work to just pipe to a file, like cython-lint src > cylint.log?

Jtachan commented 2 months ago

Yes, that works. Thanks! So I personally like the --output argument, but knowing this use case I understand if this feature won't be implemented.

MarcoGorelli commented 2 months ago

cool, thanks - closing then, but thanks fr the request