mirror of
https://github.com/ejwa/gitinspector.git
synced 2024-11-18 09:20:33 +01:00
working eloc and cyclometric (cc needs futher work)
This commit is contained in:
parent
6b103a8e4c
commit
2350c15b97
2 changed files with 1 additions and 2 deletions
|
@ -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()
|
||||
|
|
|
@ -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+\(.*\)"],
|
||||
|
|
Loading…
Reference in a new issue