Skip to content

Warning

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

Revive Action

Actions
Lint your Go code with Revive
v2.6.0-beta.1
Pre-release
Star (39)

Revive Action

This Action runs Revive on your Go code and adds annotations to the check.

Usage

Checkout

- name: Check out code into the Go module directory
  uses: actions/checkout@v2

Use by pulling pre-built image (recommended)

- name: Run Revive Action by pulling pre-built image
  uses: docker://morphy/revive-action:v2

Use by building from repository

- name: Run Revive Action by building from repository
  uses: morphy2k/revive-action@v2

Configuration

  with:
    # Path to your Revive config within the repo (optional)
    config: revive/config.toml
    # Exclude patterns, separated by semicolons (optional)
    exclude: "file.go;foo/bar.go;./foo/bar/..."
    # Path pattern (default: ./...)
    path: "./foo/..."

Screenshots

Screenshot of annotations

GitHub Annotations

Revive Action 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

Lint your Go code with Revive
v2.6.0-beta.1
Pre-release

Revive Action 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.