Skip to content

Inconsistent Interface Contracts for Metrics/Patterns (AST vs. Filepath) #813

@AntonProkopyev

Description

@AntonProkopyev

The current codebase exhibits inconsistencies in metric and pattern interfaces, where some implementations accept an ast while others take a filepath. Additionally, the unstructured use of dictionaries in config and main complicates maintenance and refactoring.

Historical commit patterns suggest that the intended contract operates on an ast (Abstract Syntax Tree), but this is not formally enforced, leading to potential bugs and technical debt.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions