DataViews/CodeMetrics.py

changeset 3021
801289962f4e
parent 2986
cd4e2cab7eb2
child 3058
0a02c433f52d
child 3160
209a07d7e401
equal deleted inserted replaced
3020:542e97d4ecb3 3021:801289962f4e
171 def dump(self): 171 def dump(self):
172 """ 172 """
173 Public method used to format and print the collected statistics. 173 Public method used to format and print the collected statistics.
174 """ 174 """
175 label_len = 79 - len(spacer) - 6 * 6 175 label_len = 79 - len(spacer) - 6 * 6
176 print(spacer + "FUNCTION / CLASS".ljust(label_len) + \ 176 print(spacer + "FUNCTION / CLASS".ljust(label_len) +
177 " START END LINES NLOC COMM EMPTY") 177 " START END LINES NLOC COMM EMPTY")
178 for id in self.identifiers + ['TOTAL ']: 178 for id in self.identifiers + ['TOTAL ']:
179 label = id 179 label = id
180 counters = self.counters.get(id, {}) 180 counters = self.counters.get(id, {})
181 msg = spacer + label.ljust(label_len) 181 msg = spacer + label.ljust(label_len)
182 182

eric ide

mercurial