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)
Currently, we cannot get the version of
lintslibrary, without creating theDefect, 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()inProgramorProgramsin order to do it easier:This idea was initiated by this: objectionary/eo#3897 (comment)