Email [Python-projects] WG: pyLint problems with inheritance

subject
[Python-projects] WG: pyLint problems with inheritance
date
2004/12/10 10:47
WG: pyLint problems with inheritance

Dear pyLint developers,
some time ago I have sent you the E-Mail below. The first problem mentioned there really jeopardizes broad usage of your tool within our project.

Could you please give me some hints how to come around this?

We are using pyLint on Windows XP systems and have Python 2.3.3.


Best Regards / Mit freundlichen Grüßen
 
Gerhard Kring

    Siemens AG
    Information and Communication Mobile
    Com CD NI DB D

    St.-Martin-Str. 76
    D-81541 München
    Room: 5531/356
                                                    
    T.+49-89-636-76219
    Mobile +49-178-7700355

        Email: Gerhard.Kring@siemens.com


 -----Ursprüngliche Nachricht-----
Von:    Kring Gerhard 
Gesendet:       Montag, 8. November 2004 15:18
An:     'python-projects@logilab.org'
Betreff:        pyLint

Dear pyLint developers,
we did some first testing with your tool.
It has given us some good hints, how to improve our software.

We have found the following problems
- Inheritance is not fully suported.
  I have stripped down our example code(see zip file) to the essential lines and got the output shown in the lint.txt file in the same .zip file

<<modules.zip>>
The lint_sessionagent.py defines a class which inherits from a class defined in lint_agent.
lint seems not to support this, because it generates the error message
F0001:  0: Unable to load module testagent.lint_sessionagent ('module' object has no attribute 'lint_agent')

- W0301: Line too long
  does not really help because the line length calculation is not based on the Source file.
  e.g. long doc strings or lines continued via \ at the end of a line are reported here,  although the physical lines defining these are <80 characters

- Generation of configuration file on windows:
  If the configuration file is being generated on Window systems using the --generate-rcfile option, the configuration file is written to stdout.

  The configuration file generated via this option shows the following problems:
  - for some options the comments have to be deleted to make them work
  - the option --disable-msg is not being transferred to the configuration file

I have attached an example file being generated with the following Commandline Arguments:
 python %TOOLDIR%\lint.py seetestutils --module-rgx=[a-z][a-zA-Z0-9]+$ --disable-msg=W0103 --include-ids=y --variable-rgx=[a-z][a-zA-Z0-9]*$

  --argument-rgx=[a-z][a-zA-Z0-9]*$ --class-rgx=[A-Z][a-zA-Z0-9]*$ --method-rgx=[_]{0,2}[a-z][a-zA-Z0-9]*[_]{0,2}$ --function-rgx=[a-z][a-zA-Z0-9]*$

 --generate-rcfile>lint.txt

<<lint.txt>>
Best Regards / Mit freundlichen Grüßen
 
Gerhard Kring

    Siemens AG
    Information and Communication Mobile
    ICM N PG NM S C6

    St.-Martin-Str. 76
    D-81541 München
    Room: 5531/356
                                                    
    T.+49-89-636-76219
    Mobile +49-178-7700355

Email: Gerhard.Kring@siemens.com



has reply