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. |