-
Notifications
You must be signed in to change notification settings - Fork 580
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
MarkdownBear should only use lint=
if max_line_length
is set
#1581
Comments
Yes, I had to set another value to |
If I understood correctly, the issue is related to supporting both the old and new versions of remark-lint and remark-cli. Is it a good idea to set the default value of |
@satwikkansal , this will assist with supporting both the old and new versions of remark-lint and remark-cli , because it would allow the user to de-activate remark-lint , which is where the compatibility problem comes from. But it also speeds up the bear as it doesnt need to load the remark-lint plugin. Allowing So the only remaining user-friendly solution for this bug is to change the default of Note that MarkdownBear does not appear to be completely broken. I've isolated it to a limited scenario at #1235 (comment) . Still more analysis to be done however, as I havent been able to reproduce it on the coala-bears build infrastructure yet. |
@satwikkansal , this will assist with supporting both the old and new versions of remark-lint and remark-cli , because it would allow the user to de-activate remark-lint , which is where the compatibility problem comes from. But it also speeds up the bear as it doesnt need to load the remark-lint plugin. Allowing So the only remaining user-friendly solution for this bug is to change the default of Note that MarkdownBear is not completely broken. It breaks if the |
The introduction of max_line_length with a default of 80 was a breaking change as previously line length was not constrained. This constraint required the use of remark-lint, which caused MarkdownBear to remove all content from files if remark-lint could not be found in NODE_PATH. The default is now again to not check line length, and not use remark-lint unless the .coafile explicitly requests a max_line_length. Fixes coala#1581
Yes, that seems like the only way to solve this issue. Wondering what happens when the remark-lint is not compatible and the user has provided non-default value for PS: Sorry, didn't reply to the comments because I accidentally turned off notifications for this issue. |
The introduction of max_line_length with a default of 80 was a breaking change as previously line length was not constrained. This constraint required the use of remark-lint, which caused MarkdownBear to remove all content from files if remark-lint could not be found in NODE_PATH. The default is now again to not check line length, and not use remark-lint unless the .coafile explicitly requests a max_line_length. Fixes coala#1581
At the moment, we cant detect that, and do not even show that a problem occurred. The work going on in https://gitlab.com/coala/package_manager/ is going to give us tools to do proper analysis of the runtime environment, including non-python dependencies. |
The introduction of max_line_length with a default of 80 was a breaking change as previously line length was not constrained. This constraint required the use of remark-lint, which caused MarkdownBear to remove all content from files if remark-lint could not be found in NODE_PATH. The default is now again to not check line length, and not use remark-lint unless the .coafile explicitly requests a max_line_length. Fixes coala#1581
The introduction of max_line_length with a default of 80 was a breaking change as previously line length was not constrained. This constraint required the use of remark-lint, which caused MarkdownBear to remove all content from files if remark-lint could not be found in NODE_PATH. The default is now again to not check line length, and not use remark-lint unless the .coafile explicitly requests a max_line_length. Fixes coala#1581
Not using
lint=
will allow MarkdownBear to be used without the lint plugin, which means we may be able to support older versions of remark, but without the plugin functionality.Unfortunately
max_line_length
is set to80
by default, which was almost certainly a breaking change.Either we:
\0
max_line_length = 0
to mean no max length, basically unsetting it.difficulty/medium
Opened via gitter by @jayvdb
The text was updated successfully, but these errors were encountered: