RadonMetrics/CodeMetricsCalculator.py

changeset 5
db25d1d5cc3a
parent 4
9ac53bf21182
child 6
13e9698a9981
equal deleted inserted replaced
4:9ac53bf21182 5:db25d1d5cc3a
43 @rtype (str, list) 43 @rtype (str, list)
44 """ 44 """
45 if type_ == "raw": 45 if type_ == "raw":
46 return __rawCodeMetrics(file, text) 46 return __rawCodeMetrics(file, text)
47 47
48 # TODO: Return error indication 48 res = {"error": "Unknown metrics '{0}'.".format(type_)}
49 return (res, )
49 50
50 51
51 def batchCodeMetrics(argumentsList, send, fx, cancelled): 52 def batchCodeMetrics(argumentsList, send, fx, cancelled):
52 """ 53 """
53 Module function to calculate selected code metrics for a batch of files. 54 Module function to calculate selected code metrics for a batch of files.

eric ide

mercurial