12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
I, [2024-04-20T03:24:21.175685 #1] INFO -- : Skipping file ./as3ninja/gitget.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 44
f"http.sslVerify={NINJASETTINGS.GITGET_SSL_VERIFY}",
^
SyntaxError: invalid syntax
I, [2024-04-20T03:24:21.175740 #1] INFO -- : Skipping file ./as3ninja/templateconfiguration.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 68
template_configuration: Union[List[Union[dict, str]], dict, str]
^
SyntaxError: invalid syntax
I, [2024-04-20T03:24:21.189943 #1] INFO -- : Skipping file ./as3ninja/schema/as3schema.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 33
_latest_version: str = ""
^
SyntaxError: invalid syntax
I, [2024-04-20T03:24:21.197652 #1] INFO -- : Skipping file ./as3ninja/schema/formatcheckers.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 28
def as3_schema_format_checkers(self) -> dict:
^
SyntaxError: invalid syntax
I, [2024-04-20T03:24:21.208132 #1] INFO -- : Skipping file ./as3ninja/types.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 24
def _get_addr(ipaddr: str) -> str:
^
SyntaxError: invalid syntax
I, [2024-04-20T03:24:21.211150 #1] INFO -- : Skipping file ./as3ninja/jinja2/j2ninja.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 13
filters: dict = {}
^
SyntaxError: invalid syntax
I, [2024-04-20T03:24:21.218671 #1] INFO -- : Skipping file ./as3ninja/jinja2/filterfunctions.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 24
def b64encode(data: Union[str, bytes], urlsafe: bool = False) -> str:
^
SyntaxError: invalid syntax
I, [2024-04-20T03:24:21.221729 #1] INFO -- : Skipping file ./as3ninja/jinja2/filters.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 16
def ninjutsu(ctx: Context, value: str, **kwargs: dict) -> str:
^
SyntaxError: invalid syntax
I, [2024-04-20T03:24:21.232330 #1] INFO -- : Skipping file ./as3ninja/jinja2/functions.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 33
f"iterfiles: Could not find any files for pattern:{pattern}"
^
SyntaxError: invalid syntax
I, [2024-04-20T03:24:21.242800 #1] INFO -- : Skipping file ./as3ninja/api.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 48
valid: bool
^
SyntaxError: invalid syntax
I, [2024-04-20T03:24:21.250365 #1] INFO -- : Skipping file ./as3ninja/cli.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 43
as3declaration: AS3Declaration,
^
SyntaxError: invalid syntax
I, [2024-04-20T03:24:21.260769 #1] INFO -- : Skipping file ./as3ninja/utils.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 37
def _path_glob(value: str) -> List[str]:
^
SyntaxError: invalid syntax
I, [2024-04-20T03:24:21.264205 #1] INFO -- : Skipping file ./as3ninja/declaration.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 44
template_configuration: Dict,
^
SyntaxError: invalid syntax
I, [2024-04-20T03:24:21.271235 #1] INFO -- : Skipping file ./as3ninja/exceptions.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
def __init__(self, message: str = "", original_exception=None):
^
SyntaxError: invalid syntax
I, [2024-04-20T03:24:21.274794 #1] INFO -- : Skipping file ./as3ninja/vault.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 48
path: str
^
SyntaxError: invalid syntax
I, [2024-04-20T03:24:21.281931 #1] INFO -- : Skipping file ./as3ninja/settings.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 35
GITGET_TIMEOUT: int = 120
^
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: 30 files indexed
ERROR: Unable to parse file: /code/as3ninja/gitget.py
ERROR: Parse error at line 75 column 20:
72: self._repodir = str(mkdtemp(suffix=".ninja.git"))
73: self._repodir_persist = False
74: self._force = force
--> self._gitlog: dict = {"branch": self._branch, "commit": {}, "author": {}}
76:
77: def __enter__(self):
78:
ERROR: Unable to parse file: /code/as3ninja/templateconfiguration.py
ERROR: Parse error at line 68 column 30:
17: , deserialize
18:
19: __all__ = ["AS3TemplateConfiguration"]
20:
21:
22: class AS3TemplateConfiguration(DictLike):
23: """The AS3TemplateConfiguration module. Allows to build an AS3 Template Configuration from YAML, JSON or dict.
24: Creates a AS3TemplateConfiguration instance for use with AS3Declaration.
25:
26: The Template Configuration can be created from one or more files or `dicts`.
27: Globbing based on pathlib Path glob is supported to load multiple files.
28: De-serialization for files is automatically performed, YAML and JSON is supported.
29: If a file is included multiple times, it is only loaded once on first occurrence.
30: AS3TemplateConfigurationError exception is raised when a file is not found or not readable.
31:
32: Files can be included using the as3ninja.include ``Union[str, List[str]]`` namespace in every specified configuration file.
33: Files included through this namespace will not be checked for as3ninja.include and therefore cannot include further files.
34:
35: The as3ninja.include namespace is updated with entries of all as3ninja.include entries, globbing will be expanded. This helps during troubleshooting.
36:
37: If a list of inputs is provided, the input will be merged using :py:meth:`_dict_deep_update`.
38:
39: If template_configuration is ``None``, AS3TemplateConfiguration will look for the first default configuration
40: file it finds in the current working directory (files are in order: `ninja.json`, `ninja.yaml`, `ninja.yml`).
41:
42: :param template_configuration: Template Configuration (Optional)
43: :param base_path: Base path for any configuration file includes. (Optional)
44:
45:
46: Example usage:
47:
48: .. code:: python
49:
50: from as3ninja.templateconfiguration import AS3TemplateConfiguration
51:
52: as3tc = AS3TemplateConfiguration([
53: {"inlineConfig": True},
54: "./config.yaml",
55: "./config.json",
56: "./includes/*.yaml"
57: ])
58:
59: as3tc.dict()
60: as3tc.json()
61: as3tc_dict = dict(as3tc)
62:
63: """
64:
65: class TemplateConfigurationValidator(BaseModel):
66: """Data Model validation and de-serialization for as3ninja.include namespace."""
67:
--> template_configuration: Union[List[Union[dict, str]], dict, str]
69:
70: def __init__(
71: self,
72: template_configuration: Optional[
73: Union[
ERROR: Unable to parse file: /code/as3ninja/schema/as3schema.py
ERROR: Parse error at line 33 column 19:
19: import Gitget
20: from ..settings import NINJASETTINGS
21: from .formatcheckers import AS3FormatChecker
22:
23: __all__ = ["AS3Schema"]
24:
25:
26: class AS3Schema:
27: """Creates a AS3Schema instance of specified version.
28: The :py:meth:`validate` method provides AS3 Declaration validation based on the AS3 JSON Schema.
29:
30: :param version: AS3 Schema version (Default value = "latest")
31: """
32:
--> _latest_version: str = ""
34: _versions: tuple = ()
35: _schemas: dict = {}
36: _schemas_ref_updated: dict = {}
37: _validators: dict =
ERROR: Unable to parse file: /code/as3ninja/types.py
ERROR: Parse error at line 174 column 8:
159: .update(
160: examples=[
161: "2001:db8::1",
162: "2001:db8::/32",
163: "2001:db8::1%12345",
164: "2001:db8::%12345/32",
165: ]
166: )
167:
168:
169: class F5IP(BaseModel):
170: """
171: Accepts and validates IPv6 and IPv4 addresses in F5 notation.
172: """
173:
--> f5ip: BaseF5IP
175: addr: str
176: mask: Optional[Any]
177: rdid: Optional[Any]
178:
179: def __init__(self, f5ip):
180:
ERROR: Unable to parse file: /code/as3ninja/jinja2/j2ninja.py
ERROR: Parse error at line 13 column 11:
2: """
3: J2Ninja collects jinja2 filters, functions an tests in a single class.
4: """
5:
6:
7: class J2Ninja:
8: """
9: J2Ninja provides decorator methods to register jinja2 filters,
10: functions and tests, which are available as class attributes (dict).
11: """
12:
--> filters: dict = {}
14: functions: dict = {}
15: tests: dict = {}
16:
17: @classmethod
18: def registertest(cls, function)
ERROR: Unable to parse file: /code/as3ninja/jinja2/filterfunctions.py
ERROR: Parse error at line 64 column 15:
56:
57: @pass_context
58: def readfile(ctx: Context, filepath: str, missing_ok: bool = False) -> str:
59: """Reads a file and returns its content as ASCII.
60: Expects the file to be a ASCII (not utf8!) encoded file.
61:
62: `missing_ok=True` prevents raising an exception when the file is missing and will return an empty string (default: missing_ok=False).
63: """
--> path_prefix: str = ""
65: if isinstance(ctx, Context):
66: path_prefix = ctx.parent.get("jinja2_searchpath", "")
67: try
ERROR: Unable to parse file: /code/as3ninja/api.py
ERROR: Parse error at line 48 column 9:
38: ,
39: "allow_credentials": True,
40: "allow_methods": ["*"],
41: "allow_headers": ["*"],
42: }
43:
44:
45: class AS3ValidationResult(BaseModel):
46: """AS3 declaration Schema validation result"""
47:
--> valid: bool
49: error: Optional[str]
50:
51:
52: class LatestVersion(BaseModel):
53: """AS3 /schema/latest_version response"""
54:
55: latest_version: str
56:
57:
58: class Error(BaseModel
ERROR: Unable to parse file: /code/as3ninja/utils.py
ERROR: Parse error at line 56 column 18:
46: value]
47:
48: @classmethod
49: def _include_constructor(cls, _, node) -> Union[List, Dict]:
50: """
51: The PyYAML constructor for the INCLUDE_TAG (!include).
52: This method should not be called directly, it is passed to PyYAML as a constructor function.
53:
54: :param node: The yaml node to be inspected
55: """
--> yaml_files: List = []
57:
58: if isinstance(
59: node, yaml.nodes.ScalarNode
60: ):
61: yaml_files = cls._path_glob(node.value)
ERROR: Unable to parse file: /code/as3ninja/exceptions.py
ERROR: Parse error at line 43 column 16:
33: )
34:
35: @staticmethod
36: def _highlight_error(doc: str, err_lineno: int, err_colno: int) -> str:
37: """Adds line numbers and highlights the error in the JSON document.
38:
39: :param doc: (invalid) JSON document
40: :param err_lineno: Erroneous line number
41: :param err_colno: exact error position on erroneous line
42: """
--> doc_list: list = []
44: lineno = 1
45: lines_total = doc.count("\n")
46: indent = len(str(lines_total))
47: for
ERROR: Unable to parse file: /code/as3ninja/vault.py
ERROR: Parse error at line 48 column 8:
31: kv1 = "kv1"
32: kv2 = "kv2"
33: """Aliases"""
34: default = "kv2"
35: kv = "kv1"
36:
37:
38: class VaultSecret(BaseModel):
39: """Vault Secret configuration BaseModel.
40:
41: :param path: The secret path. If `mount_point` is not specified the first path element is assumed to be the `mount_point`.
42: :param mount_point: The secrets engine path. Optional.
43: :param engine: The secrets engine. Optional.
44: :param filter: Optional Filter to select specific data from the secret, e.g. "data.privateKey". Filter automatically prepends "data." for kv2 to replicate the same behaviour for kv1 and kv2.
45: :param version: The version of the secret. Only relevant for KV2 Secrets Engine. Optional. Default: 0 (latest secret version)
46: """
47:
--> path: str
49: mount_point: str
50: engine: Union[str, VaultSecretsEngines] = VaultSecretsEngines["default"]
51: filter: Optional[str]
52: version:
ERROR: Unable to parse file: /code/as3ninja/settings.py
ERROR: Parse error at line 35 column 18:
12: Union
13:
14: from pydantic import BaseSettings
15:
16: from .utils import deserialize
17:
18: __all__ = ["NINJASETTINGS"]
19:
20:
21: class NinjaSettings(BaseSettings):
22: """AS3 Ninja Settings class.
23:
24: Holds the default configuration for AS3 Ninja.
25:
26: Reads from $CWD/as3ninja.settings.json if it exists, otherwise from `$HOME/.as3ninja/as3ninja.settings.json`.
27: If none of the configuration files exist, it creates `$HOME/.as3ninja/as3ninja.settings.json` and writes the current configuration (default + settings overwritten by ENV vars).
28:
29: Any setting can be overwritten using environment variables. The ENV variable has a prefix of `AS3N_` + name of the setting.
30: The environment variables take precedence over any setting in the configuration file.
31:
32: """
33:
34:
--> GITGET_TIMEOUT: int = 120
36:
37: GITGET_SSL_VERIFY: bool = True
38:
39: GITGET_PROXY: str = ""
40:
41:
42: SCHEMA_BASE_PATH: str = ""
43:
44: SCHEMA_GITHUB_REPO: str = "https://github.com/F5Networks/f5-appsvcs-extension"
45:
46:
47: VAULT_SSL_VERIFY
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 0.290s
INFO: Final Memory: 6M/295M
INFO: ------------------------------------------------------------------------
|