[analyzer plugins] Plugin-reported diagnostics should be ignorable inline #59647
Labels
devexp-plugin
legacy-area-analyzer
Use area-devexp instead.
P2
A bug or feature request we're likely to work on
type-enhancement
A request for a change that isn't a bug
The design we've roughly landed on is that
// ignore:
and// ignore_for_file:
comments will supported for plugin-defined diagnostics (lints and warnings) via a plugin-namespaced name:// ignore: foo.bar
This will direct the analyzer plugin tooling to ignore a report of the
bar
diagnostic from thefoo
plugin.Notice the period (
.
) delimiter. We discussed also the:
delimiter, but that looks confusing withignore:
, especially since there does not need to be whitespace afterignore:
(e.g.// ignore:foo:bar
). We also considered/
, which I believe tslint uses, something like// ignore: foo/bar
. We decided that the period looks the most "darty," being reminiscent of property access, like "the bar diagnostic of the foo plugin."The text was updated successfully, but these errors were encountered: