[tahoe-lafs-trac-stream] [tahoe-lafs] #1555: add check-miscaptures.py script to check for incorrect variable captures in loops

tahoe-lafs trac at tahoe-lafs.org
Sat Nov 5 02:27:15 UTC 2011


#1555: add check-miscaptures.py script to check for incorrect variable captures in
loops
-------------------------+-------------------------------------------------
     Reporter:           |      Owner:  somebody
  davidsarah             |     Status:  closed
         Type:           |  Milestone:  1.10.0
  enhancement            |    Version:  1.9.0a2
     Priority:  major    |   Keywords:  miscapture coding-tools review-
    Component:  code     |  needed
   Resolution:  fixed    |
Launchpad Bug:           |
-------------------------+-------------------------------------------------
Changes (by david-sarah@…):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [5365/trunk]:
 {{{
 #!CommitTicketReference repository="trunk" revision="5365"
 Add misc/coding_tools/check-miscaptures.py to detect incorrect captures of
 variables declared in a for loop, and a 'make check-miscaptures' Makefile
 target to run it. (It is also run by 'make code-checks'.) This is a
 rewritten version that reports much fewer false positives, by determining
 captured variables more accurately. fixes #1555
 }}}

-- 
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1555#comment:14>
tahoe-lafs <https://tahoe-lafs.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list