Package: python-django-lint
Version: 0.11-1
Severity: important

Helo. I have traceback when checking djangobb code.

slav0...@sl:/tmp$ hg clone http://hg.djangobb.org/djangobb
...

slav0...@sl:/tmp$ django-lint djangobb
/usr/lib/pymodules/python2.5/pylint/lint.py:314: DeprecationWarning: use
lgc.optik_ext.check_csv
  value = check_csv(None, opt_name, value)
************* Module djangobb.apps.forum.models
W: 65:Category.forum_count: Method should come after standard model methods
W:121:Topic: created: Field is nullable but blank=False
W:122:Topic: updated: Field is nullable but blank=False
W:123:Topic: user: ForeignKey missing related_name
W:147:Topic.reply_count: Method should come after standard model methods
W:153:Topic.save: Standard model method should come before
'get_absolute_url'
W:118:Topic: Model has too many fields (21/20); consider splitting model
W:197:Post.summary: Method should come after standard model methods
W:223:Post.delete: Standard model method should come before
'get_absolute_url'
W:268:Profile: status: Nullable CharField or TextField
W:269:Profile: site: URLField uses verify_exists=True default
W:270:Profile: jabber: Nullable CharField or TextField
W:271:Profile: icq: Nullable CharField or TextField
W:272:Profile: msn: Nullable CharField or TextField
W:273:Profile: aim: Nullable CharField or TextField
W:274:Profile: yahoo: Nullable CharField or TextField
W:275:Profile: location: Nullable CharField or TextField
Traceback (most recent call last):
  File "/usr/bin/django-lint", line 8, in <module>
    load_entry_point('django-lint==0.0.0', 'console_scripts',
'django-lint')()
  File "/usr/lib/pymodules/python2.5/DjangoLint/script.py", line 107, in
main
    linter.check([target])
  File "/usr/lib/pymodules/python2.5/pylint/lint.py", line 501, in check
    self.check_astng_module(astng, checkers)
  File "/usr/lib/pymodules/python2.5/pylint/lint.py", line 578, in
check_astng_module
    if implements(checker, IASTNGChecker)])
  File "/usr/lib/pymodules/python2.5/pylint/lint.py", line 595, in
astng_events
    self.astng_events(child, checkers, _reversed_checkers)
  File "/usr/lib/pymodules/python2.5/pylint/lint.py", line 595, in
astng_events
    self.astng_events(child, checkers, _reversed_checkers)
  File "/usr/lib/pymodules/python2.5/pylint/lint.py", line 595, in
astng_events
    self.astng_events(child, checkers, _reversed_checkers)
  File "/usr/lib/pymodules/python2.5/pylint/lint.py", line 592, in
astng_events
    checker.visit(astng)
  File "/usr/lib/pymodules/python2.5/logilab/astng/utils.py", line 320, in
visit
    method(node)
  File
"/usr/lib/pymodules/python2.5/DjangoLint/AstCheckers/model_fields.py", line
134, in visit_callfunc
    options[option] = safe_infer(arg.value).value
  File "/usr/lib/pymodules/python2.5/logilab/astng/infutils.py", line 44, in
__getattr__
    return getattr(self._proxied, name)
AttributeError: 'ClassDef' object has no attribute 'value'

--- System information. ---
Architecture: i386
Kernel:       Linux 2.6.30-2-686

Debian Release: squeeze/sid
  500 unstable        ftp.gajim.org
  500 unstable        ftp.debian.org
  500 testing         security.debian.org
    1 experimental    ftp.debian.org

--- Package information. ---
Depends              (Version) | Installed
==============================-+-============
python                         | 2.5.4-3
python-support     (>= 0.90.0) | 1.0.4
pylint             (>= 0.18.1) | 0.18.1-1


Recommends         (Version) | Installed
============================-+-===========
python-django       (>= 1.0) | 1.1.1-1

Reply via email to