12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
I, [2024-08-19T07:39:05.180060 #1] INFO -- : Skipping file ./examples/traffic_lights.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 76
print(f'red: {red}, yellow: {yellow}, green: {green}, result:{result}')
^
SyntaxError: invalid syntax
I, [2024-08-19T07:39:05.208474 #1] INFO -- : Skipping file ./src/pysidetap/libs/operations.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 4
def op_eq(value1: any, value2: any) -> bool:
^
SyntaxError: invalid syntax
I, [2024-08-19T07:39:05.214043 #1] INFO -- : Skipping file ./src/pysidetap/processor.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 14
_d_table: List[dict]
^
SyntaxError: invalid syntax
|
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: 43 files indexed
ERROR: Unable to parse file: /code/src/pysidetap/processor.py
ERROR: Parse error at line 14 column 12:
6: pysidetap.libs.operations as operations
7: except ModuleNotFoundError:
8: import libs.operations as operations
9:
10:
11: class DTProcessor:
12: """DTProcessor Decision table processor class."""
13:
--> _d_table: List[dict]
15: _op: dict = {
16: '==': operations.op_eq,
17: '!=': operations.op_noteq,
18: '>': operations.op_gt,
19: '>='
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 0.337s
INFO: Final Memory: 7M/295M
INFO: ------------------------------------------------------------------------
|