Skip to content

Programs.version is needed #324

Description

@h1alexbel

Currently, we cannot get the version of lints library, without creating the Defect, since it's implementation is package-private (Defect.Simple). Besides that, in some cases it's suboptimal to retrieve only one element from all the received defects to take its .version(). I suggest we introduce new method: version() in Program or Programs in order to do it easier:

final Programs programs = ...;
final String version = programs.version();

This idea was initiated by this: objectionary/eo#3897 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions