Hello. I'm working on a project that detects users' code style automatically. Basically, I want a tool that the user will first run on a set of sample files, this tool then will provide certain information which can be used to 'learn' the user's coding style. Can pylint be that tool? That is, can pylint parse through a bunch of files and spit out information like, the 'tab-width' the user has used, or the 'class docstring regex' and other such things? Thank You. Regards, Aayush Naik
On Mar 19, 2016 8:29 AM, "Aayush Naik" <aayushnaik17@gmail.com> wrote:
Hello. I'm working on a project that detects users' code style automatically.
Basically, I want a tool that the user will first run on a set of sample files, this tool then will provide certain information which can be used to 'learn' the user's coding style. Can pylint be that tool? That is, can pylint parse through a bunch of files and spit out information like, the 'tab-width' the user has used, or the 'class docstring regex' and other such things?
Thank You.
Regards, Aayush Naik
You sound like you want something to generate a baseline of the code base for future runs. I'm not sure if PyLint can do that. Flake8 cannot do that but if you're looking for inspiration, bandit is a static analysis tool that will generate a baseline for a code base. -- Ian
participants (2)
-
Aayush Naik
-
Ian Cordasco