working eloc and cyclometric (cc needs futher work)

This commit is contained in:
Sam Sendelbach 2017-12-19 22:19:49 -06:00
parent 6b103a8e4c
commit 2350c15b97
2 changed files with 1 additions and 2 deletions

View File

@ -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()

View File

@ -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+\(.*\)"],