Skip to content

Integrate DSF Linter as Maven plugin goal #431

Description

@khalilmalla95

Summary

Add a lint goal to the dsf-maven-plugin that validates DSF process plugin JARs as part of the Maven build lifecycle.

Motivation

Currently there is no automated way to lint process plugins during the build. The dsf-linter tool already provides this functionality via CLI, but it requires a manual step.

Changes

  • Add linter-core (v0.1.2) as a dependency to dsf-maven-plugin
  • Add LintPluginMojo implementing the lint goal (default phase: verify)
  • Add MavenLinterLogger as adapter between DSF Linter and Maven logging
  • Enable the lint goal in dsf-bpe-test-plugin-v1 and dsf-bpe-test-plugin-v2

Usage

<plugin>
  <groupId>dev.dsf</groupId>
  <artifactId>dsf-maven-plugin</artifactId>
  <executions>
    <execution>
      <id>lint-plugin</id>
      <goals>
        <goal>lint</goal>
      </goals>
    </execution>
  </executions>
</plugin>

Configurable parameters: dsf.lint.html, dsf.lint.json, dsf.lint.failOnErrors, dsf.lint.skip, dsf.lint.verbose, dsf.lint.reportPath

The Solution

See the following commit: f43d61e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions