[Yum-devel] yum pylint

Tim Lauridsen tim.lauridsen at googlemail.com
Sun Mar 29 11:19:46 UTC 2009


i have added  'pylint'  (warnings and errors) and a 'pylint-errors'  
(errors onlhy) target to the yum Makefile and a test/yum-pylintrc pylint 
profile to exclude the most crazy stuff.

'make pylint' shows this at the moment.

[tim at hoth yum]$ make pylint-errors
************* Module output
E:1110:YumOutput.interrupt_callback: Access to member '_last_interrupt' 
before its definition line 1115
************* Module yum.i18n
E:463: Instance of 'NullTranslations' has no 'nugettext' member (but 
some types could not be inferred)
************* Module yum.packages
E:681:YumAvailablePackage.verifyLocalPkg: Access to member 
'_verify_local_pkg_cache' before its definition line 698
************* Module yum.sqlitesack
E:178:YumAvailablePackageSqlite._loadFiles: Access to member '_files' 
before its definition line 200
************* Module yum.yumRepo
E:348:YumRepository.__cmp__: method already defined line 284
************* Module rpmUtils.oldUtils
E: 38:checkRpmMD5: Undefined variable 'ts'
E: 41:checkRpmMD5: Undefined variable 'ts'
E: 47:checkRpmMD5: Undefined variable 'ts'
E: 61:checkSig: Undefined variable 'ts'
E: 64:checkSig: Undefined variable 'ts'
E:147:openrpmdb: Undefined variable 'conf'
E:274:RPM_Work.__init__: Undefined variable 'ts'
E:277:RPM_Work.__init__: Undefined variable 'ts'
E:289:Rpm_Ts_Work.__init__: Undefined variable 'conf'
E:290:Rpm_Ts_Work.__init__: Undefined variable 'conf'
E:291:Rpm_Ts_Work.__init__: Undefined variable 'conf'

check the 'make pylint' in the attached file.
please help me identify the crazy warnings we don't care about, so we 
can cut down the number of warnings, so the output can be used to 
something useful
like a pre release check to catch the syntax errors etc.

Tim

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: yum-pylint.txt
URL: <http://lists.baseurl.org/pipermail/yum-devel/attachments/20090329/7b489e43/attachment-0001.txt>


More information about the Yum-devel mailing list