Open ryonakano opened 4 years ago
This is still a major problem with the Vala linter.
It needs to completely ignore the entirety of Regexp literals, everything between the / /
markers!
We just had a project whose if (/^NAME="\s*(.+?)\s*"/m.match (distro_info, 0, out m))
was subtly broken by being "fixed" by vala-lint to if (/^NAME = "\s*(.+?)\s*"/m.match (distro_info, 0, out m))
It seems like linting is ignored in strings:
However, if you use regex directly, vala-lint raise "space-before-paren" error:
You need to disable linting in the line to fix this, but I feel it's not smart:
It would be great if linting is disabled in regex expressions.