Service Lint Version Up-to-date (SL001)

Checks if a newer version of service-lint is available and suggests updating.

Description

This rule inspects the current execution context (Maven plugin or CLI) to determine the installed service-lint version and reports when a newer version is available.

Rationale

Keeping tooling up-to-date ensures you get the latest rule fixes and features.

Findings

  • ERROR

    • Could not determine service-lint version (no version found in Maven plugin/CLI/package info)

  • WARNING

    • A newer version of service-lint is available (current < latest); pre-release updates are suggested only when current is also pre-release

Noncompliant

Outdated service-lint version in parent POM
<!-- Example of outdated service-lint parent version in a Maven POM -->
<project>
  <parent>
    <groupId>gov.va.mobile.tools</groupId>
    <artifactId>service-lint-parent</artifactId>
    <version>0.9.0</version> <!-- outdated -->
  </parent>
</project>

Compliant

Up-to-date service-lint version in parent POM
<!-- Example of up-to-date service-lint parent version in a Maven POM -->
<project>
  <parent>
    <groupId>gov.va.mobile.tools</groupId>
    <artifactId>service-lint-parent</artifactId>
    <version>1.2.0</version> <!-- up-to-date (example) -->
  </parent>
</project>

Configuration

This rule has no configuration.