Being able to dynamically determine if a linter should run on a buffer could be useful. For example, not running systemdlint if we're editing a Quadlet.
It shouldn't be difficult to add this to my own zeroknight.lint module. It might even be worth trying to work it into a proper feature PR for nvim-lint?