12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
I, [2024-05-01T19:57:23.090300 #1] INFO -- : Skipping file ./flag/__init__.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 27
__version__: str = '1.3.2'
^
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: Invalid character encountered in file '/code/docs/_static/qr.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: 25 files indexed
ERROR: Unable to parse file: /code/flag/__init__.py
ERROR: Parse error at line 27 column 11:
2: """
3: Converts flag emoji to ascii and back
4: https://github.com/cvzi/flag
5: Based on http://schinckel.net/2015/10/29/unicode-flags-in-python/
6:
7: Unicode country code emoji flags for Python
8: ~~~~~~~~~~~~~~~~
9: >>> import flag
10: >>> flag.flag("IL")
11: '🇮🇱'
12: >>> flag.flagize("Flag of Israel :IL:")
13: 'Flag of Israel 🇮🇱'
14: >>> flag.dflagize("Flag of Israel 🇮🇱")
15: 'Flag of Israel :IL:'
16: >>> flag.flagize(":gb-eng: is part of the UK :GB:", subregions=True)
17: 'England 🏴 is part of the UK 🇬🇧'
18: >>> flag.dflagize("England 🏴 is part of the UK 🇬🇧", subregions=True)
19: 'England :gb-eng: is part of the UK :GB:'
20: """
21:
22: import sys
23: import warnings
24: import re
25: from typing import List
26:
--> __version__: str = '1.3.2'
28: __author__: str = 'cuzi'
29: __email__: str = 'cuzi@openmail.cc'
30: __source__: str = 'https://github.com/cvzi/flag'
31: __license__: str = """
32: MIT License
33:
34: Copyright (c) cuzi 2018
35:
36: Permission is hereby granted, free of charge, to any person obtaining a copy
37: of this software and associated documentation files (the "Software"), to deal
38: in the Software without restriction, including without limitation the rights
39: to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
40: copies of the Software, and to permit persons to whom the Software is
41: furnished to do so, subject to the following conditions:
42:
43: The above copyright notice and this permission notice shall be included in all
44: copies or substantial portions of the Software.
45:
46: THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
47: IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
48: FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
49: AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
50: LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
51: OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
52: SOFTWARE.
53: """
54:
55: __all__
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 0.333s
INFO: Final Memory: 6M/295M
INFO: ------------------------------------------------------------------------
|