Sorry if this is the wrong place for asking SublimeLinter questions; I don’t see a dedicated forum for it. Please point me in the right direction if I’m in the wrong spot.
I’m writing a linter plugin that’s going to be an experiment in supporting multiple languages using a common linting engine (written in Python). I’d like to be able to do this with a single plugin rather than writing multiple plugins, and I’d like to do all of the linting internally. It’s a crazy idea, I know, but I’m going to try it anyway.
I’m looking at the docs and the examples, and even the SL source code, and I’m not seeing where SL tells the plugin what language the text-to-be-linted is. I know that ST has some magic for language detection, and I assumed that SL would pass that on to its plugins. Was that a bad assumption?
If I can’t get the language info from SL, can I put multiple Linter sublclasses in the same plugin? If that works then maybe I can write a script that autogenerates Linter subclasses for each language.