-
Notifications
You must be signed in to change notification settings - Fork 2
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
Markdownlint reporting false positive "double-spaces" (OSOE-831) #97
Comments
So it's not that the error is a false positive, but that the error message is incomplete/misleading, right? Because when you see
It just means that NE's MD analysis has sent this error, which is expected, and always the case (since that project runs that linter Node command). It doesn't mean that the error is in NE. There should be an additional line of output somewhere around this (and this used to work, or sometimes works) that tells you the actual file. |
Like I wrote above, the error (warning) is a false positive and Lombiq.NodeJsExtensions houses and runs markdownlint, so it's this project's responsibility. |
Correction, it's This change mitigated the warnings. |
I'm not arguing about responsibility, but the nature of the issue. I guess BTW why this rule tripped is because of two adjacent lines (you should rather have a single line, how you fixed it, or lines separated by blank lines, making the paragraphs). |
That's a workaround, yes, but that package is designed to detect double spaces (which it does), but it also detects a specific way of formatting text, which is completely normal and valid Markdown syntax, while it has nothing to do with actual double spaces. |
So two things to do here:
|
Updating The first issue is rather finding out why this package behaves differently on Windows vs. Linux and try to contrib a fix or just create our own rule for it. |
When running an OSOCE rebuild (not simply build) locally from VS, you'll see the warning in the Error List too, with the file and line (and clicking it will bring you to it). Running the task directly shows the location of the violation too: BTW this is a false positive as well:
Adding a line break between the lines fixes it but there shouldn't be a line break (it breaks this formatting). Instead, disabling textlint for that block would be a proper workaround, see below, for which
Note the newlines around the disable block! https://github.com/textlint/textlint-filter-rule-comments#:~:text=Limitation(markdown)%3A However, I couldn't get this to work. This is supposed to work: cf64bf0 But adding the disable comment like above doesn't have an effect. I asked about this: textlint/textlint#1389. |
I fixed disable comments in #101. This issue is still applicable though. |
Lombiq/GitHub-Actions#365 might be the cause for not seeing the file and line reference. |
In OSOCE, but only in the Windows build, after merging the Lombiq/Open-Source-Orchard-Core-Extensions#700 PR, which updated Lombiq.GitHub.Actions with changes from the Lombiq/GitHub-Actions#325 PR. See the build log here, here are relevant entries:
This doesn't help identifying where the problem is, but a local VS build points to LGHA's root Readme.md file, on lines 41 and 42:
These lines contain no double spaces.
Jira issue
The text was updated successfully, but these errors were encountered: