sscpac / statick

Making code quality easier.
https://sscpac.github.io/statick/
Creative Commons Zero v1.0 Universal
74 stars 14 forks source link

Tool versions log option. #490

Open tdenewiler opened 10 months ago

tdenewiler commented 10 months ago

Add an option (--show-versions?) to print out the list of tool plugins and their versions. Have the tool plugin implement a default get_version() method that returns Unknown. Where possible in the individual tool plugins implement a get_version() method that gets the version using the Python API or a subprocess call. Return the version as a string. Then make a table like

Tool Version
black 1.2.3
pylint 4.5.6
cmake 7.8.9

Having a default implementation will allow external plugin repos and tools that do not have an easily accessible version to come up with a solution later.