12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
I, [2024-06-13T12:41:14.325285 #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:41:14.349638 #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:41:14.403319 #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
[main] INFO profile include tests: None
[main] INFO profile exclude tests: None
[main] INFO cli include tests: None
[main] INFO cli exclude tests: None
[node_visitor] INFO Unable to find qualified name for module: setup.py
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.474s
INFO: Final Memory: 6M/295M
INFO: ------------------------------------------------------------------------