This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

danger-plugin-checkstyle
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

danger-plugin-checkstyle

Build Status npm version semantic-release

This plugin reads checkstyle reports and posts issues and violations as inline comments in pull requests.

Screenshot of an issue posted as inline comment in a GitHub pull request:

inline comment

Requirements

The plugin does not execute checkstyle.

Instead, the plugin will search the file tree for checkstyle reports and parse them.

The plugin requires a configuration object with a file mask to search for XML reports.

It is limited to XML checkstyle reports.

Usage

Install:

yarn add danger-plugin-checkstyle --dev

At a glance:

// dangerfile.js
import { schedule } from 'danger'
 
const checkstyleReport = require("danger-plugin-checkstyle")
schedule(checkstyleReport.scan({
    fileMask: "**/reports/checkstyle/*.xml",
    reportSeverity: true,
}))

Configuration:

interface CheckstyleConfig {
  /**
   * File mask used to find XML checkstyle reports.
   */
  fileMask: string
 
  /**
   * If set to true, the severity will be used to switch between the different message formats (message, warn, fail).
   */
  reportSeverity: boolean
}

Changelog

See the GitHub release history.

Contributing

See CONTRIBUTING.md.

Readme

Keywords

Package Sidebar

Install

npm i danger-plugin-checkstyle

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

412 kB

Total Files

41

Last publish

Collaborators

  • damianburke