All Projects → damian-burke → danger-plugin-lint-report

damian-burke / danger-plugin-lint-report

Licence: MIT license
No description or website provided.

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to danger-plugin-lint-report

danger-flutter lint
A Danger Plugin to lint dart files using flutter analyze command line interface.
Stars: ✭ 28 (+64.71%)
Mutual labels:  danger, danger-plugin
danger-mention
Danger plugin to automatically mention potential reviewers on pull requests
Stars: ✭ 29 (+70.59%)
Mutual labels:  danger, danger-plugin
danger-eslint
A Danger plugin for linting javascript with eslint.
Stars: ✭ 13 (-23.53%)
Mutual labels:  danger, danger-plugin
danger-plugin-flow
Ensure all JS files that get touched in a PR are flow typed
Stars: ✭ 23 (+35.29%)
Mutual labels:  danger, danger-plugin
static-code-analysis-plugin
A plugin to simplify Static Code Analysis on Gradle. Not restricted to, but specially useful, in Android projects, by making sure all analysis can access the SDK classes.
Stars: ✭ 36 (+111.76%)
Mutual labels:  android-lint, checkstyle
Danger Js
⚠️ Stop saying "you forgot to …" in code review
Stars: ✭ 4,076 (+23876.47%)
Mutual labels:  danger, danger-js
danger-auto label
Enable to set label automatically from Danger. This is made from Danger plugin.
Stars: ✭ 15 (-11.76%)
Mutual labels:  danger, danger-plugin
danger-swift-xcodesummary
A Danger-Swift plugin that adds build errors, warnings and unit tests results generated from xcodebuild to your Danger report
Stars: ✭ 72 (+323.53%)
Mutual labels:  danger, danger-plugin
Twigcs
The missing checkstyle for twig!
Stars: ✭ 166 (+876.47%)
Mutual labels:  checkstyle
Phpcheckstyle
PHPCheckstyle is an open-source tool that helps PHP programmers adhere to certain coding conventions.
Stars: ✭ 151 (+788.24%)
Mutual labels:  checkstyle
Gnag
A Gradle plugin that helps facilitate GitHub PR checking and automatic commenting of violations.
Stars: ✭ 120 (+605.88%)
Mutual labels:  checkstyle
Diktat
Strict coding standard for Kotlin and a custom set of rules for detecting code smells, code style issues and bugs
Stars: ✭ 196 (+1052.94%)
Mutual labels:  checkstyle
CheckStyle
在协同开发中让代码风格保持一致
Stars: ✭ 25 (+47.06%)
Mutual labels:  checkstyle
gradle-circle-style
🚀🚀🚀MOVED TO Baseline
Stars: ✭ 28 (+64.71%)
Mutual labels:  checkstyle
Gradle Quality Plugin
Gradle quality plugin for Java and Groovy
Stars: ✭ 97 (+470.59%)
Mutual labels:  checkstyle
vscode-linter
Extension for code linting, all in one package. New linters can be easily added through an extension framework.
Stars: ✭ 47 (+176.47%)
Mutual labels:  swiftlint
Haxe Checkstyle
Haxe Checkstyle
Stars: ✭ 110 (+547.06%)
Mutual labels:  checkstyle
java-quality-checks
No description or website provided.
Stars: ✭ 33 (+94.12%)
Mutual labels:  checkstyle
swiftlint-config
Good starter config for SwiftLint
Stars: ✭ 34 (+100%)
Mutual labels:  swiftlint
ali-checkstyle-xml
ali standard code style
Stars: ✭ 17 (+0%)
Mutual labels:  checkstyle

danger-plugin-lint-report

Build Status npm version semantic-release

This plugin reads checkstyle / lint 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 any linter.

Instead, the plugin will search the file tree for lint reports according to the specified file mask and parse them.

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

Supported Reports

If you encounter a format that is missing, feel free to add a pull request or open an issue with a sample report attached.

  • Checkstyle 4.3
  • Checkstyle 8.0
  • Android Lint (Format 5)

Usage

Install:

yarn add danger-plugin-lint-report --dev

At a glance:

// dangerfile.js
import { schedule } from 'danger'

const reporter = require("danger-plugin-lint-report")
schedule(reporter.scan({
    fileMask: "**/reports/lint-results.xml",
    reportSeverity: true,
    requireLineModification: 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

  /**
   * If set to true, only issues will be reported that are contained in the current changeset (line comparison).
   * If set to false, all issues that are in modified files will be reported.
   */
  requireLineModification: boolean

  /**
   * Optional: Sets a prefix foreach violation message.
   * This can be useful if there are multiple reports being parsed to make them distinguishable.
   */
  outputPrefix?: string
  
  /**
   * Optional: Override the violation formatter to customize the output message.
   */
   violationFormatter?: ViolationFormatter
}

Changelog

See the GitHub release history.

Contributing

See CONTRIBUTING.md.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].