Skip to content

Latest commit

 

History

History
61 lines (40 loc) · 1.41 KB

README.md

File metadata and controls

61 lines (40 loc) · 1.41 KB

UCMA | Core

This repository encapsulates abstract classes and interfaces to simplify the process of plugin development. Use it to easily create a custom plugin.

Install

poetry add git+https://github.com/Universal-code-metrics-analyzer/core.git@v0.2.0

Git processor plugin

Subclass core.git_processor.GitProcessor and implement methods:

  • get_root_tree
  • process_tree
  • process_blob
  • [optional] cleanup

Expose entrypoint:

[tool.poetry.plugins."ucma.git_processor.plugin"]
export = "path.to:Subclass"

Examples:

Metrics calculator plugin

Subclass core.metrics_calculator.MetricsCalculator and implement methods:

  • calculate

Expose entrypoint:

[tool.poetry.plugins."ucma.metrics_calculator.plugin"]
export = "path.to:Subclass"

Examples:

Report generator plugin

Subclass core.report_generator.ReportGenerator and implement methods:

  • generate

Expose entrypoint:

[tool.poetry.plugins."ucma.report_generator.plugin"]
export = "path.to:Subclass"

Examples: