Variables | |
tuple | args = parser.parse_args() |
tuple | dirs = set( ( "/".join(name.split("/")[0:3]) for name in filesUsing) ) |
list | filesUsing = [l[:-1] for l in result] |
string | help = 'name of package to check interface usage' |
string | interfaceDir = packageName+"/interface" |
string | mvCommand = "git mv {oldName} {newName}" |
string | newFileName = onlyDir+"/" |
tuple | onlyDir = dirs.pop() |
list | onlyfiles = [join(interfaceDir,f) for f in os.listdir(interfaceDir) if isfile(join(interfaceDir, f))] |
packageName = args.packageName | |
tuple | parser = argparse.ArgumentParser(description='Find includes only used in one non-interface directory.') |
removeUnused = args.removeUnused | |
tuple | result = os.popen('git grep \'#include [",<]{filename}[",>]\' | awk -F\':\' \'{{print $1}}\' | sort -u'.format(filename=f)) |
string | sedCommand = "sed --in-place 's/{oldName}/{newName}/' {filesToChange}" |
shouldFix = args.shouldFix | |
tuple cmssw_fix_interface.args = parser.parse_args() |
Definition at line 16 of file cmssw_fix_interface.py.
tuple cmssw_fix_interface.dirs = set( ( "/".join(name.split("/")[0:3]) for name in filesUsing) ) |
Definition at line 40 of file cmssw_fix_interface.py.
Definition at line 30 of file cmssw_fix_interface.py.
Definition at line 10 of file cmssw_fix_interface.py.
string cmssw_fix_interface.interfaceDir = packageName+"/interface" |
Definition at line 22 of file cmssw_fix_interface.py.
string cmssw_fix_interface.mvCommand = "git mv {oldName} {newName}" |
Definition at line 47 of file cmssw_fix_interface.py.
string cmssw_fix_interface.newFileName = onlyDir+"/" |
Definition at line 46 of file cmssw_fix_interface.py.
tuple cmssw_fix_interface.onlyDir = dirs.pop() |
Definition at line 42 of file cmssw_fix_interface.py.
list cmssw_fix_interface.onlyfiles = [join(interfaceDir,f) for f in os.listdir(interfaceDir) if isfile(join(interfaceDir, f))] |
Definition at line 24 of file cmssw_fix_interface.py.
cmssw_fix_interface.packageName = args.packageName |
Definition at line 18 of file cmssw_fix_interface.py.
tuple cmssw_fix_interface.parser = argparse.ArgumentParser(description='Find includes only used in one non-interface directory.') |
Definition at line 8 of file cmssw_fix_interface.py.
cmssw_fix_interface.removeUnused = args.removeUnused |
Definition at line 20 of file cmssw_fix_interface.py.
tuple cmssw_fix_interface.result = os.popen('git grep \'#include [",<]{filename}[",>]\' | awk -F\':\' \'{{print $1}}\' | sort -u'.format(filename=f)) |
Definition at line 28 of file cmssw_fix_interface.py.
string cmssw_fix_interface.sedCommand = "sed --in-place 's/{oldName}/{newName}/' {filesToChange}" |
Definition at line 50 of file cmssw_fix_interface.py.
cmssw_fix_interface.shouldFix = args.shouldFix |
Definition at line 19 of file cmssw_fix_interface.py.