[code-quality] Code style detection

Ian Cordasco graffatcolmingov at gmail.com
Sat Mar 19 09:39:42 EDT 2016


On Mar 19, 2016 8:29 AM, "Aayush Naik" <aayushnaik17 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/code-quality/attachments/20160319/3eefc260/attachment.html>


More information about the code-quality mailing list