Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Strange, contradictory, output of linter #154

Closed
ZirconfleX opened this issue Nov 24, 2017 · 2 comments
Closed

Strange, contradictory, output of linter #154

ZirconfleX opened this issue Nov 24, 2017 · 2 comments

Comments

@ZirconfleX
Copy link

Hi,

Using Atom 1.22.1 x64, installed linter-markdown 5.2.0.
I'm experimenting with markdown and installed the linter, but that provides strange warnings over a markdown file loaded in Atom. I'm using a ReadMe.markdown file from NVM to test and see markdown stuff. The file is open in Atom and markdown-preview-enhanced nicely displays the document.
But there are many red bullets in the left gutter. All bullets from linter-markdown.
One of the warnings is:
Incorrect indentation before bullet: remove 2 spaces (remark-lint:list-item-bullet-indent)
Could be a fair point, so I removed the two spaces.
Then the linter produces this warning:
Incorrect list-item indent: add 2 spaces (remark-lint:list-item-indent)

Spoken about mixed messages ....
Why is the linter doing this?
Probably some setting in one or another file (remarkrc)?

If it is that file, how does it need to look?
I've tried several things but the above sort of messages keep popping up.

Thanks,

Marc

@oupala
Copy link

oupala commented May 16, 2018

I have the same strange contradictory messages.

Here is the .remarkrc file I'm using:

{
  "plugins": [
    "remark-preset-lint-recommended",
    "remark-preset-lint-consistent",
    ["remark-lint-list-item-indent", "space"],
    ["remark-lint-table-cell-padding", "padded"]
  ]
}

Any clue on how to make this behavior more consistent?

This might be linked to #156. If it is not possible to disable a rule, the preset remark-preset-lint-recommended enable the rule list-item-indent to 'tab-size', then the following config ["remark-lint-list-item-indent", "space"] overide it without deleting it. Hence there are 2 contradictory rules, you can do whatever you want, there will always be one rule broken by your markdown.

@wooorm
Copy link
Contributor

wooorm commented May 17, 2018

@Defossez Sorry for the late response.

You can find more about these messages on remarkjs/remark-lint. Such as list-item-bullet-indent and remark-lint-list-item-indent.

@oupala If this is related to a globally installed stuff, then it is related to GH-156.

@wooorm wooorm closed this as completed May 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants