On Tue, Oct 17, 2017 at 4:00 PM <zbranie...@mozilla.com> wrote: > Those things can be encoded as regexps, but they span across programming > languages (XUL, XHTML, HTML, XBL, DTD, JS, C++). >
To create a new regex-based linter, simply add a file like this: https://dxr.mozilla.org/mozilla-central/source/tools/lint/test-disable.yml It'll get picked up automatically and be enabled on any files that match the include/exclude directives. Just run: ./mach lint <path/to/dir/or/file> And anything that matches the regex will spit out an error. The above link is currently the only regex based linter in-tree, so it could definitely use some improvements (e.g we could allow a list of regexes in a single linter). It also only works if the offending string is all on the same line, which isn't ideal. Is there any mozilla-clippy project being planned? :) > Yes, see bug 1361342. We were blocking on rust stable support in clippy. Last I heard that still hadn't landed (though this was several months ago). If anyone knows the status there please chime in on the bug. > zb. > _______________________________________________ > dev-platform mailing list > dev-platform@lists.mozilla.org > https://lists.mozilla.org/listinfo/dev-platform > _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform