5

I'm currently using ALE to lint my Python code. I'm just curious how to disable specific warning or error messages. I've checked the GitHub repository's FAQ but I only see an option for disabling linters entirely rather than selected messages (e.g., line-too-long). How should I go about this? Thanks.

Edit

The specific linter that I want to configure is PyLint. I've tried creating a .pylintrc file and adding in messages as per this Stack Overflow answer but it doesn't seem to be working. What I did is:

[MESSAGES CONTROL]
disable=line-too-long

I've also tried using the error codes (e.g., C0321) rather than the messages but it still doesn't seem to be working.

2
  • 1
    You need to configure the linters in their respective fashions. This can often be done by setting an ALE variable (:help ale-python-options) or via a project configuration file. Can you add more specifics (which linter, which rule?)
    – D. Ben Knoble
    Sep 8, 2020 at 15:00
  • 1
    Sure, I'll edit in some more details.
    – Sean
    Sep 9, 2020 at 0:58

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.