Skip to content

Warning

You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?

common lint reporter

Actions
common lint reporter that can handle various lint report files
v0.5.0
Star (3)

common-lint-reporter

This is generalized lint reporter action

Focuses on:

  • Many lint file format support
  • Flexible extendable reporting
  • Multiple report format support, as check-run, comment or inline-comment

Specification

Current supporting lint file format:

report format file format tool compatibility
androidlint xml androidlint
checkstyle xml eslint
dotnet format json dotnet format
eslint json eslint
junit xml eslint, textlint, cpplint, RuboCop
markdownlint txt markdownlint
RuboCop json RuboCop
stylelint json stylelint
textlint json textlint

Feature request

Now, this action is WIP. Features are not enough and should improve about transformer and operator. If you have nice idea, please send as issue:heart:

Usage

Basic information

This action have 3 steps. Flexible and extendable are realized by separating step

  1. Transform lint report file to common lint format file
  2. Operate converting common lint file
  3. Report common lint to GitHub

Quick usage

name: CI

on:
  pull_request:

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-node@v1
        with:
          node-version: 12
      - run: npm install
      - run: npm run build
      - run: npm run lint
        continue-on-error: true
      - uses: MeilCli/common-lint-reporter/transformer/eslint@0
        with:
          # your output path
          report_files: |
            eslint_report.json
      - uses: MeilCli/common-lint-reporter/operator/filter-by-file-changed@v0
      - uses: MeilCli/common-lint-reporter@v0
        with:
          report_type: 'check_run'
          report_name: 'Lint Report'

Detail information

License

MIT License

Using

common lint reporter is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

common lint reporter that can handle various lint report files
v0.5.0

common lint reporter is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.