Commit graph

314 commits

Author SHA1 Message Date
Adam Waldenberg
1bc3e026ed Updated README.txt to refer to the new home on GitHub. 2015-08-24 11:03:59 +02:00
Adam Waldenberg
e8648a51c2 Added documentation written in AsciiDoc (Fixes issue 45).
Using the AsciiDoc file, documentation was generated in man (troff), PDF
and HTML formats.
2015-02-22 11:22:39 +01:00
Adam Waldenberg
02b6db512b Strip exotic characters from the table-sorter plugin.
This is needed under certain circumstances whenever the terminal locale
can't be determined and can't handle unicode characters.
2015-02-22 00:53:38 +01:00
Adam Waldenberg
de602bb70f Added workaround for missing LANG environment variable (Fixes issue 55). 2015-02-16 16:10:12 +01:00
Kamila Chyla
6c45819a62 Updated Polish translation.
Update issue 16
Status: Done
2014-12-30 09:10:32 +01:00
Adam Waldenberg
568a5e5e8b Fixed the terminal column alignment for languages with multi-column chars.
This is for example needed for the Chinese and Korean translations to work
correctly when using terminal output.
2014-12-19 03:02:08 +01:00
Adam Waldenberg
b327238496 Fixed a mistake in the Swedish translation.
The translation for the cyclomatic complexity string was using the wrong
format.
2014-12-19 02:59:50 +01:00
Adam Waldenberg
1230fcf80c Changes.get_latest_author_by_email() was broken under Python 3.
This is because of the patch committed with revision 68a6e90228. As
Python 3 stores unicode strings by default, we need to convert them back.

This change will hopefully fix it once and for all.
2014-12-18 04:30:04 +01:00
Adam Waldenberg
eed6d0debf localization.get_date() was failing with unicode characters under Python 2.
Fixed by adding a simple decode call.
2014-12-18 04:07:28 +01:00
Adam Waldenberg
8c464fddd4 Some minor tweaks to the German translation. 2014-12-08 11:18:34 +01:00
Philipp Nowak
a42726aedb Added German translation.
Update issue 25
Status: Done
2014-12-08 03:41:41 +01:00
Bill Wang
e169421fa9 Updated Chinese translation (Fixes issue 11). 2014-12-07 11:27:19 +01:00
Dmitry Dzhus
c6928bd675 Recognize Haskell (.hs) comments (Fixes issue 49).
Signed-off-by: Adam Waldenberg <adam.waldenberg@ejwa.se>
2014-12-07 11:03:51 +01:00
Luca Motta
cbed2ac13f Updated Italian translation.
Update issue 20
Status: Done
2014-12-03 12:12:39 +01:00
Yannick Moy
2ca997cc9d Added French translation.
Update issue 38
Status: Done
2014-11-30 10:18:18 +01:00
Adam Waldenberg
e703856560 The Swedish translation had 2013 instead of 2014 in it's version text. 2014-11-30 10:09:00 +01:00
Adam Waldenberg
b22d614849 Recognize comments in .po and .pot files. 2014-11-29 07:01:24 +01:00
Adam Waldenberg
4d6e51a760 Updated the locale template (.pot) and the Swedish translation.
A number of new strings have been added since the last version.
2014-11-29 06:37:34 +01:00
Adam Waldenberg
26e2ce7c07 Added help text (--help) for the new revision filtering. 2014-11-29 06:35:07 +01:00
Adam Waldenberg
bc6be1c56f Fixed some pylint violations. 2014-11-27 12:38:58 +01:00
Adam Waldenberg
bc9fd8b207 Localized error message in the basedir module. 2014-11-27 12:16:42 +01:00
Adam Waldenberg
d315829e9d Added commit filtering by revision (Fixes issue 33).
Specific commits can now be filtered by using;

-x, --exclude="revision:<SHA-1>"

Like with all other filtering in gitinspector, regular expressions are
supported. Likewise, multiple revisions can be specified using a comma or
by simply supplying multiple exclude parameters.

As usual, both the commit module and blame module take this filtering into
account.
2014-11-27 08:39:17 +01:00
Adam Waldenberg
8755fb33dc Doesn't start when using "C" locale (Fixes issue 29). 2014-11-24 09:36:11 +01:00
Christian Kastner
3010359eb2 Add missing html.footer to htmlembedded output (Fixes issue 48).
Signed-off-by: Adam Waldenberg <adam.waldenberg@ejwa.se>
2014-11-23 01:37:18 +01:00
Adam Waldenberg
dd50994f2c The metrics module was failing on paths with spaces (Fixes issue 47). 2014-11-21 02:55:29 +01:00
Christian Kastner
e3b4857eb6 Gracefully handle non-git-repo path (Fixes issue 44).
Error out gracefully when gitinspector is called with a path that does not
point to a git repository, instead of printing a stack trace.

Signed-off-by: Christian Kastner <debian@kvr.at>
Signed-off-by: Adam Waldenberg <adam.waldenberg@ejwa.se>
2014-11-20 03:41:08 +01:00
Jon Warghed
68a6e90228 Handle escaping in get_latest_author_by_email() (Fixes issue 46).
Signed-off-by: Adam Waldenberg <adam.waldenberg@ejwa.se>
2014-11-19 07:46:07 +01:00
Adam Waldenberg
1d2fd619bd Fixed a special and unique KeyError exception that could occur.
This is because of a mismatch between the changes module and the
blame module. Seems to be triggered by empty rows in source files.
2014-11-06 10:46:23 +01:00
Adam Waldenberg
fa5e5411f5 Fixed problem with the new email detection patch. 2014-11-03 11:02:06 +01:00
Yannick Moy
12dce7f365 Recognize comments in Ada and OCaml.
Signed-off-by: Adam Waldenberg <adam.waldenberg@ejwa.se>
2014-11-03 10:34:46 +01:00
Diomidis Spinellis
bc5b0abe74 Remove assumption of Python path.
For example, on a FreeBSD system Python can be installed in
/usr/local/bin/python.

Some systems have multiple interpreters installed in a variety of
locations.  The attached patch corrects the problem by using the
env(1) command to run Python.

Signed-off-by: Adam Waldenberg <adam.waldenberg@ejwa.se>
2014-11-03 10:19:04 +01:00
Diomidis Spinellis
b20f15e794 More stable author email extraction.
The email search regular expression in the git-blame output can be tripped
by a similar pattern appearing in the source code. The supplied patch
fixes the problem.

Signed-off-by: Adam Waldenberg <adam.waldenberg@ejwa.se>
2014-11-03 10:12:44 +01:00
Chris Barry
d6a2f33de5 Use https where possible.
Signed-off-by: Adam Waldenberg <adam.waldenberg@ejwa.se>
2014-11-03 09:56:49 +01:00
Adam Waldenberg
7b61a46d7c The blame chart legend now shows the correct colors (Fixes issue 26).
To also correctly update the legend of the chart, a call to setupGrid()
(in Flot) seems to be required.
2014-07-04 01:37:58 +02:00
Adam Waldenberg
93b18cdd9a The name of the project is now shown in the title of the HTML output.
Moved the gitinspector version number from the title down to the top text
box of the HTML page.
2014-03-17 08:47:49 +01:00
Adam Waldenberg
722ca9b91a The HTML output of the metrics module now shows violation severity.
This is accomplished by color coding the rows of the violations in the
following manner:

minimal violations: light green
minor violations:   green
medium violations:  yellow
bad violations:     light-red
sever violations:   red

Naturally, the zebra coloring of the rows is still being maintained.
2014-02-26 13:53:11 +01:00
Adam Waldenberg
144303dab6 The metrics module cyclomatic complexity density now limited to 3 decimals. 2014-02-26 11:57:43 +01:00
Adam Waldenberg
6052eb5646 Fixed XML output of the metrics module. Also reworked the indentation. 2014-02-26 11:54:23 +01:00
Adam Waldenberg
232e041861 Did some visual improvements to the HTML output of the metrics module.
Each metrics section now has a header with proper coloring. Furthermore,
every other row of the outputted violations are colorized in order to
improve readability.
2014-02-26 11:43:57 +01:00
Adam Waldenberg
efe04cc10b Added cyclomatic complexity output to the HTML and XML output formats.
More of the strings in the metrics module are now also localized.
2014-02-25 06:08:26 +01:00
Adam Waldenberg
f85c2fe7b4 Removed height adjustment from the HTML body. This isn't needed anymore. 2014-02-24 14:15:37 +01:00
Adam Waldenberg
b2528cfda7 Fixed horizontal centering of the header in the HTML output. 2014-02-24 14:14:02 +01:00
Adam Waldenberg
fac4b34646 Fixed invalid function call in the responsibilities module. 2014-02-20 21:03:00 +01:00
Adam Waldenberg
9b2aecc3e9 Added support for cyclomatic complexity to the metrics module.
The calculation is rather simple and is not meant to be a reflection of
McCabes's cyclomatic complexity number. Instead, it is an approximation,
implemented in a more general way and supporting many different languages
through the use of regular expression matching.

The initial languages supported in this metric are: Java, JavaScript, C,
C++ and Python.

If anyone needs support for some other language, patches to the metric
module (metrics.py) are welcome.
2014-02-20 20:57:57 +01:00
Adam Waldenberg
786a44ddbc Fixed a newly introduced bug in the resonsibilities module.
The blame module was being called with too few arguments, causing an
exception.
2014-02-20 04:08:05 +01:00
Adam Waldenberg
4e4d0a2ddb The repository name and report date is now included in the generated text. 2014-02-20 04:06:47 +01:00
Adam Waldenberg
12e08daf72 Moved absolute path detection into the basedir module.
The base name of the returned absolute path is also the name of the
repository from which the statistics were gathered. We will use this in
the generated reports.
2014-02-20 03:49:16 +01:00
Adam Waldenberg
0447da1933 The git log is now read in reverse order.
This makes sure that the most recent email of an author is always used when
generating the gravatar. It also makes sure that the mappings between
author<->email are correct (and recent).
2014-02-19 06:36:06 +01:00
Adam Waldenberg
e902f7b82d Fixed possible exception occurring during stability value gathering.
For now, we return 100 % whenever an author is not found to have any
entries in the changes log. This can happen whenever an author uses the
same email but with different author names.

The solution would probably be to consider these commits to belong to the
same person and merge the results.

This will require some additional changes to the code and a redesign in
the way that author names and emails are mapped.
2014-02-19 06:33:17 +01:00
Adam Waldenberg
02e0858985 The two generated pie graphs now use the same colors (Fixes issue 26).
The same author should have the same color in the two graphs, something
that is more consistent and logical.
2014-02-14 17:26:26 +01:00