robotcoral/coral-app

View on GitHub
bumpversion.py

Summary

Maintainability
A
0 mins
Test Coverage

Showing 0 of 3 total issues

Function detect_version has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
Wontfix

def detect_version(argv):
if len(argv) > 1:
version_string = argv[1]
version_string = version_string.lower()
print('Version in argv: "{}"'.format(repr(version_string)))
Severity: Minor
Found in bumpversion.py - About 1 hr to fix

Similar blocks of code found in 2 locations. Consider refactoring.
Wontfix

with open("./package-lock.json", "w") as f:
f.write(json.dumps(packagelockjson_dict, indent=2) + "\n")
Severity: Minor
Found in bumpversion.py and 1 other location - About 50 mins to fix
bumpversion.py on lines 97..98

Similar blocks of code found in 2 locations. Consider refactoring.
Wontfix

with open("./package.json", "w") as f:
f.write(json.dumps(packagejson_dict, indent=2) + "\n")
Severity: Minor
Found in bumpversion.py and 1 other location - About 50 mins to fix
bumpversion.py on lines 126..127

There are no issues that match your filters.

Category
Status