febus982/mkdocs-macros-adr-summary

View on GitHub
Update paambaati/codeclimate-action action to v9 (#16) #58
renovate[bot] authored 05d87368
complete00:00:10
Your first build completed successfully!

Congratulations

Your first build completed successfully!

See the Results

1
git clone
2
codeclimate validate-config
View output
codeclimate validate-config
No errors or warnings found in .codeclimate.yml.
3
codeclimate prepare
View output
codeclimate prepare
4
builder pull-engines
View output
determining required images
5
structure
View output
12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
6
duplication
View output
12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
I, [2024-11-03T08:46:28.843939 #1]  INFO -- : Skipping file ./mkdocs_macros_adr_summary/interfaces.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 32
    file_path: str
             ^
SyntaxError: invalid syntax


I, [2024-11-03T08:46:28.844506 #1]  INFO -- : Skipping file ./mkdocs_macros_adr_summary/renderer.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 32
    documents: Iterable[ADRDocument],
             ^
SyntaxError: invalid syntax


I, [2024-11-03T08:46:28.855378 #1]  INFO -- : Skipping file ./mkdocs_macros_adr_summary/__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 28
    def define_env(env: MacrosPlugin) -> None:
                      ^
SyntaxError: invalid syntax


I, [2024-11-03T08:46:28.859252 #1]  INFO -- : Skipping file ./mkdocs_macros_adr_summary/parser/madr3.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
    def _get_metadata_and_ast(cls, file: str) -> Tuple[Dict[str, Any], TYPE_AST]:
                                       ^
SyntaxError: invalid syntax


I, [2024-11-03T08:46:28.870253 #1]  INFO -- : Skipping file ./mkdocs_macros_adr_summary/parser/base.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
    renderer: MarkdownRenderer = MarkdownRenderer()
            ^
SyntaxError: invalid syntax


I, [2024-11-03T08:46:28.878183 #1]  INFO -- : Skipping file ./mkdocs_macros_adr_summary/parser/nygard.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 30
    def _get_metadata_and_ast(cls, file: str) -> Tuple[Dict[str, Any], TYPE_AST]:
                                       ^
SyntaxError: invalid syntax


I, [2024-11-03T08:46:28.881363 #1]  INFO -- : Skipping file ./mkdocs_macros_adr_summary/parser/madr2.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 29
    def _get_metadata_and_ast(cls, file: str) -> Tuple[Dict[str, Any], TYPE_AST]:
                                       ^
SyntaxError: invalid syntax


I, [2024-11-03T08:46:28.892410 #1]  INFO -- : Skipping file ./mkdocs_macros_adr_summary/parser/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 25
    def __init__(self, file_path: Path, *args, **kwargs):
                                ^
SyntaxError: invalid syntax


I, [2024-11-03T08:46:28.900347 #1]  INFO -- : Skipping file ./mkdocs_macros_adr_summary/plugin.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 36
    env: MacrosPlugin,
       ^
SyntaxError: invalid syntax


I, [2024-11-03T08:46:28.903181 #1]  INFO -- : Skipping file ./mkdocs_macros_adr_summary/factory.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 26
    parser_registry: Dict[TYPE_ADRStyle, Type[ADRParser]] = {
                   ^
SyntaxError: invalid syntax
7
sonar-python
sonar-python engine documentation
View output
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: 45 files indexed
ERROR: Unable to parse file: /code/mkdocs_macros_adr_summary/interfaces.py
ERROR: Parse error at line 32 column 13:

   24: 
   25: from typing import Literal, Optional, Sequence
   26: 
   27: TYPE_ADRStyle = Literal["MADR2", "MADR3", "nygard"]
   28: 
   29: 
   30: @dataclass
   31: class ADRDocument:
  -->      file_path: str
   33:     document_id: Optional[int] = None
   34:     title: Optional[str] = None
   35:     date: Optional[date] = None
   36: 

ERROR: Unable to parse file: /code/mkdocs_macros_adr_summary/parser/madr3.py
ERROR: Parse error at line 41 column 20:

   36: < 2:
   37:             raise LookupError("Metadata section not found in file")
   38: 
   39:         yaml_file = lines[0 : separators[1] :]
   40:         try:
  -->              metadata: Optional[Dict[str, str]] = safe_load("\n".join(yaml_file))
   42:         except ScannerError:
   43:             raise LookupError(

ERROR: Unable to parse file: /code/mkdocs_macros_adr_summary/parser/base.py
ERROR: Parse error at line 37 column 12:

   30: .interfaces import ADRDocument, ADRParser
   31: 
   32: from .exceptions import InvalidFileError
   33: from .types import TYPE_AST
   34: 
   35: 
   36: class BaseParser(ADRParser, ABC):
  -->      renderer: MarkdownRenderer = MarkdownRenderer()
   38:     parser: Markdown = create_markdown(
   39:         escape=False,
   40:         renderer=None,
   41:         plugins=["strikethrough", "footnotes", "table",

ERROR: Unable to parse file: /code/mkdocs_macros_adr_summary/parser/nygard.py
ERROR: Parse error at line 56 column 16:

   52: None
   53: 
   54:         @classmethod
   55:     def _get_statuses(cls, metadata: dict, ast: TYPE_AST) -> Sequence[str]:
  -->          statuses: List[str] = []
   57: 
   58: 
   59:         h2_list = [
   60:             i
   61:             for i, x in enumerate(ast[0])
   62:             if x.get(

ERROR: Unable to parse file: /code/mkdocs_macros_adr_summary/parser/madr2.py
ERROR: Parse error at line 58 column 16:

   54: [1])
   55: 
   56:     @classmethod
   57:     def _get_metadata_from_ast(cls, ast: TYPE_AST) -> Dict[str, str]:
  -->          metadata: Dict[str, str] = {}
   59:         rendered_metadata = cls._extract_metadata_as_md_string(ast)
   60: 
   61:         if rendered_metadata is None:
   62:             return metadata
   63: 

ERROR: Unable to parse file: /code/mkdocs_macros_adr_summary/parser/exceptions.py
ERROR: Parse error at line 29 column 13:

   25: *args, **kwargs):
   26:         super().__init__(*args, **kwargs)
   27:         self.file_path = file_path
   28: 
  -->      file_path: Path
   30: EOF

ERROR: Unable to parse file: /code/mkdocs_macros_adr_summary/factory.py
ERROR: Parse error at line 26 column 15:

   21: from typing import Dict, Type
   22: 
   23: from .interfaces import ADRParser, TYPE_ADRStyle
   24: from .parser import MADR2Parser, MADR3Parser, NygardParser
   25: 
  -->  parser_registry: Dict[TYPE_ADRStyle, Type[ADRParser]] = {
   27:     "nygard": NygardParser,
   28:     "MADR3": MADR3Parser,
   29:     "MADR2": MADR2Parser,
   30: }
   31: 
   32: 
   33: def get_parser(adr_style

INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 0.230s
INFO: Final Memory: 6M/295M
INFO: ------------------------------------------------------------------------