Skip to content

Standardize on one Result type alias for public API #477

@avifenesh

Description

@avifenesh

Audit Finding (API Design, Medium)

Location: crates/agnix-core/src/diagnostics.rs:7

The crate exports both LintResult and CoreResult type aliases. Usage across the public API is inconsistent. The distinction between CoreError and LintError is unclear from the API surface.

Fix: Standardize on one result type alias for the public API. Document when to use each error type. Consider deprecating one if they're redundant.

Found by /audit-project

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions