Suppress "Wrong attribute value" warning
Hi, I'm trying to suppress the below warning (code is valid, see https://developers.google.com/search/reference/robots_meta_tag#data-nosnippet-attr)
I believe it's somewhere in Settings > Editor > Language injections but I haven't managed to get it to work.
Below is what i've tried.
Can someone please help? Thank you.
Please sign in to leave a comment.
What file is it? WebStorm reports no errors for data- attributes:
Please hover over the highlighted attribute and hit Alt+Enter - what actions are shown? please attach a screenshot
Thanks for the reply Elena.
Your question put me in the right track and I've found a solution: Settings > Editor > Inspections > Unknown HTML boolean tag attribute > add data-nosnippet to the custom list:
For information, to answer your question the suggested actions were to "Add attribute value" and to "Remove attribute".
Jetbrains seems to be ignoring this issue for a long time. Having to tolerate warnings like that defeats the purpose of trusting the warnings in the first place. For teams striving for code quality, this is not a small issue (even if people are not being as vocal about it as they should).
At the end of the day, investments made towards code quality are super important. I hope they will eventually do the right thing here.
This happens in Svelte as well and its kind of annoying. I've tried everything to suppress this warning including disabling the HTML boolean inspection check.
Example:
Jaxramus it's https://youtrack.jetbrains.com/issue/WEB-54911, please follow it for updates
Man, how I hate JetBrains for things such this! It has been YEARS and they simple don't care to give us an option to disable this fuc#*&% warning!!!