Bug: Linter fails to recognize aliases containing commas
See original GitHub issueDescribe the Bug
This is related to the fix for #509
The following YAML array contains two aliases:
aliases: Scott, "Scott, Jr."
Linter parses this into three aliases.
How to Reproduce
I have attached the data.json file.
See the example above.
Linter produces a multiline array of three aliases:
aliases:
- Scott
- '"Scott'
- 'Jr."'
Expected Behavior
Linter should parse the tags array exactly how Obsidian parses the tags array.
The example should produce a multiline tags array with two tags. The double quotes should be eliminated, and the tag containing the commas should not be escaped with single quotes.
Expected output:
aliases:
- Scott
- Scott, Jr.
Device
- Desktop
- [?] Mobile
Issue Analytics
- State:
- Created 10 months ago
- Comments:14
Top Results From Across the Web
[Bug] tslint doesn't detect webpack aliases? #9227 - GitHub
I have a webpack config with an alias for an import path, VSCode doesn't recognize ... Error messages from tslint are prefixed with...
Read more >Rules Reference — SQLFluff 1.4.5 documentation
This rule will fail if a single section of whitespace contains both tabs and spaces. ... Reusing table aliases is very likely a...
Read more >Linters | golangci-lint
Name Description Presets Since
asasalint ⚙️ check for pass any as any in variadic func(...any) bugs 1.47.0
bidichk ⚙️ Checks for dangerous unicode character sequences...
Read more >Why doesn't my Bash script recognize aliases?
commandB , which is an alias to a Bash script. I want to process the same file with these two commands, so I...
Read more >Why (and How Can I FIx) ESLint import/no-extraneous ...
I solved it simply by setting devDependencies to true. By default it is false. "import/no-extraneous-dependencies": [ "error", { " ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have not forgotten about this. I just have not had time to sit down and actually determine what it would take to allow for the removing of those parentheses. Hopefully I will have time later this week.
Gotcha. I will think on this and see if it makes sense and is feasible to remove the quotes for multi-line and other array formats. It just gets a little hard to tell when quotes should be removed without knowing the previous and new formats of the array.