from
Edvard Majakari <edvard.majakari at staselog dot com>
to
Sylvain Thenault <syt at logilab dot fr>
subject
Re: [Python-projects] Allow suppressing class docstrings
date
Sylvain Thénault <Sylvain.Thenault@logilab.fr> writes:2004/02/19 12:21
Hi,
> I've checked in a fix in the CVS, making the no-docstring-rgx apply on
> classes too. If you want to get it working for you, just change line 265
> of pylint/checkers/base.py to :
>
> if self.config.no_docstring_rgx.match(node.name) is None:
> self.check_docstring('class', node)
For some reason this doesn't seem to be enough. I tested by doing the
change, and running then pylint domlib.py with the following entry in the
~/.pylintrc file:
no-docstring-rgx=Error
Yet I got the following:
$ pylint domlib.py|grep Err
W: 9:xmlParseError: Missing docstring
W: 9:xmlParseError: Missing docstring
W: 9:xmlParseError: More than one statement on a single line
W: 10:xmlValidityError: Missing docstring
W: 10:xmlValidityError: Missing docstring
W: 10:xmlValidityError: More than one statement on a single line
W: 11:xmlWellFormednessError: Missing docstring
W: 11:xmlWellFormednessError: Missing docstring
W: 11:xmlWellFormednessError: More than one statement on a single line
W: 12:xmlPathError: Missing docstring
W: 12:xmlPathError: Missing docstring
W: 12:xmlPathError: More than one statement on a single line
(all those classes are derived from Exception and contain only one
statement: pass)
--
# Edvard Majakari Software Engineer
# PGP PUBLIC KEY available Soli Deo Gloria!
$_ = '456476617264204d616a616b6172692c20612043687269737469616e20'; print
join('',map{chr hex}(split/(\w{2})/)),uc substr(crypt(60281449,'es'),2,4),"\n";

