12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
I, [2024-06-13T12:40:57.176674 #1] INFO -- : Skipping file ./cimod/utils/response.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 21
) -> tuple[dict, float]:
^
SyntaxError: invalid syntax
I, [2024-06-13T12:40:57.207372 #1] INFO -- : Skipping file ./cimod/model/binary_polynomial_model.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 189
def print(self):
^
SyntaxError: invalid syntax
I, [2024-06-13T12:40:57.268674 #1] INFO -- : Skipping file ./cimod/model/binary_quadratic_model.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
print(json.dumps(to_json(ast.parse(source))))
File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 88
f"Offset or vartype is configured incorrectly. Vartype must be set."
^
SyntaxError: invalid syntax
|
[cppcheck] config: {'enabled': True, 'channel': 'stable', 'include_paths': ['codecov.yml', 'pyproject.toml', 'public/', 'doc-requirements.in', 'cimod/', 'LICENSE', 'oneAPI.repo', '.github/', 'SECURITY.md', 'CODE_OF_CONDUCT.md', 'MANIFEST.in', 'format-requirements.in', '.coveragerc', 'include/', 'cmake/', 'dev-requirements.in', '.gitattribute', 'CONTRIBUTING.md', 'README.md', 'external/', '.pre-commit-config.yaml', 'CMakeLists.txt', 'setup.cfg', 'docs/', 'lint-requirements.in', '.reviewdog.yml', '.gitignore', 'setup.py', '.codeclimate.json', 'build-requirements.in', 'Doxyfile', '.clang-format'], 'debug': None}
[cppcheck] analyzing 1 files
[cppcheck] command: ['cppcheck', '--enable=all', '--inconclusive', '--xml', '--xml-version=2', '--file-list=/tmp/tmpo9c5wfj7']
|
INFO: Java 1.8.0_111-internal Oracle Corporation (64-bit)
INFO: Linux 4.4.0-1128-aws amd64
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/src/app/build/libs/sonarlint-core-2.17.0.899.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/src/app/build/libs/sonarlint-cli-2.1.0.566.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
INFO: Index files
INFO: Invalid character encountered in file '/code/docs/favicon.ico' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/OpenJij-Logo.webp' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: 74 files indexed
ERROR: Unable to parse file: /code/cimod/model/binary_quadratic_model.py
ERROR: Parse error at line 331 column 20:
321:
322:
323: @classmethod
324: def from_numpy_matrix(
325: cls,
326: mat,
327: variables: list,
328: offset=0.0,
329: vartype="BINARY",
330: fix_format=True,
--> **kwargs,
332: ):
333: shape = np.shape(mat)
334: if not (len(shape) == 2 and shape[0] == shape
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 0.649s
INFO: Final Memory: 6M/292M
INFO: ------------------------------------------------------------------------
|