Package repoman :: Module checks :: Class EbuildUselessCdS
[hide private]

Class EbuildUselessCdS

source code

object --+    
         |    
 LineCheck --+
             |
            EbuildUselessCdS

Check for redundant cd ${S} statements

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
check(self, num, line)
Run the check on line and return error if there is one
source code

Inherited from LineCheck: check_eapi, end, new

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  repoman_check_name = u'ebuild.minorsyn'
  method_re = re.compile(r'^\s*src_(prepare|configure|compile|in...
  cds_re = re.compile(r'^\s*cd\s+("\$(\{S\}|S)"|\$(\{S\}|S))\s')

Inherited from LineCheck: ignore_comment, ignore_line

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

check(self, num, line)

source code 

Run the check on line and return error if there is one

Overrides: LineCheck.check
(inherited documentation)

Class Variable Details [hide private]

method_re

Value:
re.compile(r'^\s*src_(prepare|configure|compile|install|test)\s*\(\)')