You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using vscode, and I have a python project with LICENSE file. I added a .markdownlint.json file to the project directory to disable MD033, which works fine. However, markdownlint is now linting my LICENSE file, suggesting a MD041 violation. If I delete .markdownlint.json, then it stops linting the LICENSE.
Here are the glob patterns set in the vscode plugin:
If I put any other files in the project directory, without a file extension (e.g. TESTFILE), no issues are reported. If I give my LICENSE file a .txt extension, no issues are reported. It only happens when I have a .markdownlint.json file and a LICENSE file.
The text was updated successfully, but these errors were encountered:
I'm not sure why it's behaving like that, but this extension only lints files that VS Code tells it are Markdown. When you have a file open, there is a section in the bottom right of the window that shows what file type VS Code thinks it is. If you can figure out why VS Code sometimes thinks your license file is Markdown, you may be able to stop it doing that. Otherwise, you could specifically add that file to the ignore list, either via a configuration file or user settings. Which reminds me, user settings are only applied if a project configuration file does not exist, so that may explain why the behavior you see varies. all of that said, this does not sound like an extension bug as it is only doing what the editor tells it.
Thanks for all the hard work on the awesome tool!
This one is oddly specific.
I'm using vscode, and I have a python project with LICENSE file. I added a
.markdownlint.json
file to the project directory to disableMD033
, which works fine. However, markdownlint is now linting my LICENSE file, suggesting aMD041
violation. If I delete.markdownlint.json
, then it stops linting the LICENSE.Here are the glob patterns set in the vscode plugin:
If I put any other files in the project directory, without a file extension (e.g. TESTFILE), no issues are reported. If I give my LICENSE file a
.txt
extension, no issues are reported. It only happens when I have a.markdownlint.json
file and a LICENSE file.The text was updated successfully, but these errors were encountered: