[haiku-bugs] Re: [Haiku] #11532: Fix CodingStyle checking tool for cached directories of vcs

  • From: "LkpPo" <trac@xxxxxxxxxxxx>
  • Date: Sat, 29 Nov 2014 21:47:38 -0000

#11532: Fix CodingStyle checking tool for cached directories of vcs
-------------------------+----------------------------
   Reporter:  LkpPo      |      Owner:  nobody
       Type:  bug        |     Status:  new
   Priority:  low        |  Milestone:  R1
  Component:  - General  |    Version:  R1/Development
 Resolution:             |   Keywords:
 Blocked By:             |   Blocking:
Has a Patch:  1          |   Platform:  All
-------------------------+----------------------------

Comment (by LkpPo):

 I can also simplify the script by a single loop without exception:


 {{{
      for name in names:
          if name in vcsCacheDirectory:
              print(name + " cache directory has been ignored")
              names.remove(name)
          else:
              path = os.path.join(dir, name)
              if os.path.isfile(path) and os.path.splitext(name)[1] in
 extensions:
                  print "adding", path
                  result.append(path)
 }}}

--
Ticket URL: <https://dev.haiku-os.org/ticket/11532#comment:3>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: