Commit Graph

10 Commits

Author SHA1 Message Date
Adam Waldenberg 35dc497e94 Removed keyword arguments from the decode() calls.
This makes the code compatible with Python 2.6 again.
2012-05-29 03:13:49 +02:00
Adam Waldenberg c59c8c23eb More changes done to improve compatibility with Python 3.
Changed from using the deprecated functions in the os module to using the
new ones in the subprocess module. All string reading now also uses the
string.decode() function, which seems to be recommended practice whenever
the input is a little "iffy".
2012-05-28 16:35:47 +02:00
Adam Waldenberg 2d48510777 Updated the whole project to be compatible with Python 3. 2012-05-25 16:42:29 +02:00
Adam Waldenberg 93cf15f500 Added filtering support.
Filtering can be specified using an arbitrary number of -x (or --exclude)
parameters. The filtering works in a similar fashion to an inverted grep,
meaning that matched file names will be excluded from the generated
statistics.
2012-05-22 17:57:44 +02:00
Adam Waldenberg 494679520f Enabled threading in the blame module and removed the system module.
To accommodate this modification, the changing of working directory (when
a repository is specified) has been moved from the system module to the
main gitinspector module. This enables us to change directory in one go
when gitinspector starts, thus removing the need for the previous system
module.
2012-05-20 22:02:08 +02:00
Adam Waldenberg 676cb5c114 Improved the comments module yet again.
It should now be able to handle multi-line comments that are only on one line.
Furthermore, it should also handle multi-line comments from languages such as
python (where the identifiers for comment begining/end are identical).
2012-05-16 04:14:48 +02:00
Adam Waldenberg 842ca6b87c Modified the comment module to properly detect comments mixed in with code. 2012-05-16 01:49:23 +02:00
Adam Waldenberg 4fb37bf914 Fixed a typo in the metrics module. 2012-05-15 00:35:20 +02:00
Adam Waldenberg 0188b16a37 Removed an unused import from the metrics module. 2012-05-14 15:27:14 +02:00
Adam Waldenberg 134d8d43a1 Added a metrics module together with a new -m option.
The metrics module currently only includes a very simple ELOC (estimated lines
of code) metric, but will be expanded eventually with some other metrics.
2012-05-14 15:24:45 +02:00