pythonsublimetext3sublimelintercode-complexity

Python code complexity as Sublime Text 3 Linter


I like the python package radon and use it fairly often to help find/reduce complex code.

I'm normally developing in Sublime Text, and running radon beside in console, but would really like to have radon (or something similar) in sublime that will flag my function w/ a complexity that gives me any ranking less than "A"..kinda like pylint does when my code is junk.

I looked around for a SublimeLinter plugin that would check code complexity as you are typing out function etc. Has anyone seen a SublimeLinter plugin like that?

Thanks!


Solution

  • I ended up creating a plugin for SublimeLinter. https://github.com/christopherpickering/SublimeLinter-contrib-radon