Skip to content

Integrate DSF Linter as Maven plugin goal #431

@khalilmalla95

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions