From 2350c15b975ac074d6b383d3d30692b0cb44da4c Mon Sep 17 00:00:00 2001 From: Sam Sendelbach Date: Tue, 19 Dec 2017 22:19:49 -0600 Subject: [PATCH] working eloc and cyclometric (cc needs futher work) --- gitinspector/extensions.py | 2 +- gitinspector/metrics.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/gitinspector/extensions.py b/gitinspector/extensions.py index 3764735..270140b 100644 --- a/gitinspector/extensions.py +++ b/gitinspector/extensions.py @@ -19,7 +19,7 @@ from __future__ import unicode_literals -DEFAULT_EXTENSIONS = ["java", "c", "cc", "cpp", "h", "hh", "hpp", "py", "glsl", "rb", "js", "sql"] +DEFAULT_EXTENSIONS = ["java", "c", "cc", "cpp", "h", "hh", "hpp", "py", "glsl", "rb", "js", "sql", "go"] __extensions__ = DEFAULT_EXTENSIONS __located_extensions__ = set() diff --git a/gitinspector/metrics.py b/gitinspector/metrics.py index 8cc3588..aab03a6 100644 --- a/gitinspector/metrics.py +++ b/gitinspector/metrics.py @@ -25,7 +25,6 @@ from . import comment, filtering, interval __metric_eloc__ = {"java": 500, "c": 500, "cpp": 500, "cs": 500, "h": 300, "hpp": 300, "php": 500, "py": 500, "glsl": 1000, "rb": 500, "js": 500, "sql": 1000, "xml": 1000, "go":500} - # added eloc -- must test at 500 before opening request __metric_cc_tokens__ = [[["java", "js", "c", "cc", "cpp"], ["else", r"for\s+\(.*\)", r"if\s+\(.*\)", r"case\s+\w+:", "default:", r"while\s+\(.*\)"],