-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better message documentation: add various templates to be able to handle all messages #7897
Comments
I think it would be beneficial if the errors that need to have a different template with good.py and bad.py were moved into this or a separate PR so that people could focus on the issues that can currently have documentation added. There could also be an explanation of what needs to be added if different things need to be added for different errors. |
An alternative suggestion is to add notes to each issue that needs to have a different template on #5953. |
That's what I'm trying to do in the tasklist of the description in the first comment, check it out :) |
Do you still think that unexpected-line-ending-format should be included in this list? Because it has not had a comment for that |
It's done in #8255 |
It's possible to do some messages without a new template by removing good.py and bad.py and simply adding a details.rst and related.rst. |
import-error and import-self both have documentation |
I noticed that the error: https://bugs.python.org/issue20485 that is mentioned in the documentation for non-ascii-file-name has been fixed. |
Nice catch, it look like its been fixed for python > 3.4 (python/cpython#64684 (comment)). |
We still need support for configuration file messages, but with #8287 we now have support for multi-file messages 😄 |
I see that the errors that needed to have a different template were moved here. |
I'm trying to use the duplicate-code example as a way to do too-many-lines (Don't worry @DanielNoord, I mentioned you in the commit), and it keeps saying that there is an "AssertionError: There should be at least one warning raised for 'bad' examples." I have max-module-lines at 15, which should cause an issue with orange.py and not for any other file but, as I said before, pytest still says that "there should be at least one warning raised ..." NOTE: I just changed orange.py to bad.py and the code was able to find the too-many-lines error. This could be an issue with how the new template code was made. |
Also, how would one go about removing non-ascii-file-name from pylint? |
The too-many-lines examples could work without a bad/good example imo. For non-ascii-file-name, we can either remove it or add a |
Closing as completed as the template now exists and we can move and deal with the remaining messages in #5953 |
Current problem
In #5953, some messages do not follow the generic template with good code and bad code or can't be triggered easily. Among them:
internal errors
configuration errors
Code that require multiple examples
There already are multiple example mixed in the existing files.
A <= message-symbol < D
#9006Messages that depend on multiple file or dependency to trigger
cyclic-import
#8322other
Desired solution
We need to create templates for those message so we can generate the proper skeleton for them.
Additional context
The Sphinx extension that generates these pages needs to be modified see #5953 (comment)
The text was updated successfully, but these errors were encountered: