Client Version Matches Parent Version (SL017)

Checks that client modules have matching service versions with mobile-openapi-client-parent or mobile-protobuf-client-parent

Description

Parses pom.xml files and ensures version formatting is consistent with applicable parent versions (mobile-openapi-client-parent, mobile-protobuf-client-parent). If a module inherits from mobile-openapi-client-parent, the child module must have a 2-digit version. If a module inherits from mobile-protobuf-client-parent, the child module must have a 3-digit version.

Rationale

Child module of mobile-protobuf-client-parent must match major/minor/patch pattern

Findings

  • ERROR

    • Violation

    • Child module of mobile-protobuf-client-parent does not match major/minor/patch pattern

Noncompliant

Module versioned incorrectly

Compliant

Module versioned correctly

Configuration

This rule has no configuration.