Service Lint Rules
This page lists all Service-Lint rules grouped by severity. Click a rule to view its full documentation, examples, and configuration.
ERROR
-
SL003: POM Versions Consistent — Checks whether module POM versions are consistent across the repo (client modules compare major.minor only).
-
SL004: Swagger Contract Version Matches Client — Ensures swagger.contract.version in service modules matches the corresponding -client module version.
-
SL005: Parent Version Consistent Across Libraries — Verifies that mobile-framework parent versions are consistent across related library families.
-
SL007: Deployment and Service Image Versions Match POM — Validates kubernetes/base deployment.yaml image tag and service.yaml build.version match the POM version, and each other.
-
SL008: Dynatrace Labels Consistent — Validates that DynatraceDeploymentName and MAP-<>-ServiceName labels in deployment.yaml match.
-
SL012: AppD Base Image Not Allowed — Flags use of AppD base images in skaffold.yaml and recommends JRE base images.
-
SL014: Application Properties Validation — Validates application*.properties for debug flags, unsafe log levels, and metrics exporting settings.
-
SL015: Jenkinsfile Build Image Override Not Allowed — Flags Jenkinsfile buildServiceProject image overrides and recommends using the default latest build image.
-
SL017: Client Version Matches Parent Version — Checks that client modules have matching service versions with mobile-openapi-client-parent or mobile-protobuf-client-parent
INFO
-
SL001: Service Lint Version Up-to-date — Checks if a newer version of service-lint is available and suggests updating.
-
SL002: Dependency Updates Available — Checks for available updates to dependencies and plugins in a Maven project.
-
SL010: NGSS Maven Tiles Up-to-date — Checks if a newer version of ngss-maven-tiles is available.
-
SL013: Dev-with-Dependencies Components Up-to-date — Checks kubernetes/dev-with-dependencies/kustomization.yaml components for latest Release/* versions.
-
SL016: Dev and Release Branch Version — Checks that a release branch that is not pushing out a milestone or release candidate, or that a dev branch version should be a release candidate or milestone
WARNING
-
SL006: Changelog Has Entry For Current Version — Ensures CHANGELOG.md contains an entry for the current POM version (without -SNAPSHOT).
-
SL009: SDD/SRVDD Document Version Up-to-date — Checks SDD.md and SRVDD.md versions against latest template versions.
-
SL011: Base Image Version Up-to-date and Consistent — Checks skaffold.yaml base images for version consistency between sandbox and production and suggests newer versions.