Can I use custom plugins? #1179
-
QuestionWe are using custom linters and would like to use it with codeclimate. But I don't see new version including possibility to add custom plugins like is was hehe. How can I use qlty with a custom plugin? CLI Version0.446.0
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Actually the new version is more flexible and accommodating to adding custom linters. You can check this plugin guide as a reference although it is not comprehensive it should give you some idea. Here are examples of configuration already implemented linters: https://github.com/qltysh/qlty/tree/main/plugins/linters You can use a custom source of plugin configuration: https://docs.qlty.sh/qlty-toml#sources or even define the entire plugin config in your qlty.toml file like in these tests. One limitation you might feel, depending on the output of your linter is parsing the output. We do support SARIF as standard and you can even write a custom regex, for more complex use cases I would recommend either converting your output to SARIF or a regex parsable output otherwise you will have to write a custom parser in Rust like this |
Beta Was this translation helpful? Give feedback.
Actually the new version is more flexible and accommodating to adding custom linters.
You can check this plugin guide as a reference although it is not comprehensive it should give you some idea.
Here are examples of configuration already implemented linters: https://github.com/qltysh/qlty/tree/main/plugins/linters
You can use a custom source of plugin configuration: https://docs.qlty.sh/qlty-toml#sources or even define the entire plugin config in your qlty.toml file like in these tests.
One limitation you might feel, depending on the output of your linter is parsing the output. We do support SARIF as standard and you can even write a custom regex, for more complex use cases I would recom…