Comments (10)
If no one is working on this I can do it
from pylint.
I think trying if this works with a template would be nice. Then we can just document that in the documentation.
Once it works as template string, maybe it'd still be beneficial to have something like github
available as key one can pass to the --output-format
(or a similiar?) flag such that users won't have to add something like
pylint --msg-template='{msg_id}:{line:3d},{column}: {obj}: {msg}' # example from the docs
and can instead simply go ahead and run
pylint --output-format=github # or a similar cli flag
without having to know the "internals" of how the messages are to be outputted in order to be GitHub-action-consumable? But maybe that's just me being too lazy as a user.
from pylint.
No I think that is fair. We have recently added a new json
reporter. You can probably look at that PR to see what stuff you'd need to add for it to work.
I'm on mobile right now so can't easily link the PR myself, sorry!
from pylint.
I made a dummy test with my PR changes:
https://github.com/zoftko/balba/pull/2/files
Just wondering if we should mark all annotations as error? Or make some sort of mapping between pylint message types and github annotation types.
For example Pylint has fatal, error, warning, convention, refactor and information type messages. Github has notice, warning and error annotations.
from pylint.
Thank you for opening this issue, great suggestion !
from pylint.
So I was checking the code and it seems like this could be done with --msg-template, in fact some reporters are marked as deprecated and suggest using --msg-template directly instead. Would this be the same case?
from pylint.
I think trying if this works with a template would be nice. Then we can just document that in the documentation. You could start there?
from pylint.
I also like the shortcut. Lazy users are the best users 😄
Here's hopefuly a link to the code of json reporters (other exemples are available in this directory) : https://github.com/pylint-dev/pylint/blob/main/pylint%2Freporters%2Fjson_reporter.py
from pylint.
It looks really great. I think pylint fatal should break the build, error should be mapped to error, warning to warning and pylint convention and refactor to github's notice.
from pylint.
@crazybolillo Many thanks for the quick implementation and thanks to everyone involved in the PR ❤
from pylint.
Related Issues (20)
- Pylint crash: RecursionError: maximum recursion depth exceeded HOT 2
- Incorrect "Value '<val>' is unsubscriptable" with class method type overloading HOT 2
- sdist is missing requirements files
- 3.1.0: Nine test_functional and one test_package fails HOT 4
- Crashed while using pylint as a static test for a docker
- False positive assignment-from-no-return on generator with nested yield expression
- [Documentation] - Fix 2 typos in `too-many-branches` documentation
- spelling of Sphinx parameter descriptions
- Unexpected keyword argument for Generic dataclass with ABC bounded TypeVar
- Pylint 3.1.0 reports ByteString as deprecated class when ``py-version = 3.8`` HOT 3
- Cannot disable 'cyclic-import' warning HOT 1
- False-positive E0:601 on `datetime` when USE_TYPECHECKING HOT 1
- Wrong string missing method when defining with round brackets
- Check for pylint pragmas in `__init__.py` HOT 2
- Non existent member not detected on datetime.datetime
- Check "__slots__" and "@dataclass" attributes HOT 9
- ERROR: Could not install packages due to an OSError HOT 1
- Add a dynamic URL to the message documentation in the message descriptions from checkers HOT 12
- Using truethy coroutine in if-clause should trigger a warning HOT 5
- cannot disable checks right after "else:" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pylint.