/rubocop-problem-matchers-action

GitHub Action to setup Problem Matchers for RuboCop.

Primary LanguageJavaScript

rubocop-problem-matchers-action

GitHub Action to setup Problem Matchers for RuboCop.

Usage

Add this action as a step before running rubocop step:

name: test

on:
  pull_request:
  push:
    branches:
      - main

jobs:
  test:
    runs-on: ubuntu-20.04
    steps:
      - uses: actions/checkout@v2
        with:
          ref: ${{ github.event.pull_request.head.sha }}
      - uses: ruby/setup-ruby@v1
        with:
          bundler-cache: true
          ruby-version: 2.7.2
      - uses: r7kamura/rubocop-problem-matchers-action@v1
      - run: bundle exec rubocop --parallel

Note

  • rubocop --color is not supported.
  • Use ref on actions/checkout to annotate with actual line numbers.

Screenshot

screenshot