Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kiancross/checkstyle-annotations-action

Uploads Checkstyle errors & warnings as GitHub Annotations and decorates the log file output. Unlike other similar Actions, this also works on pull requests from forks and Dependabot.
https://github.com/kiancross/checkstyle-annotations-action

actions checkstyle github-actions

Last synced: 3 months ago
JSON representation

Uploads Checkstyle errors & warnings as GitHub Annotations and decorates the log file output. Unlike other similar Actions, this also works on pull requests from forks and Dependabot.

Awesome Lists containing this project

README

        

# Java Checkstyle Annotations Uploader

[![Continuous Integration](https://github.com/kiancross/checkstyle-annotations-action/actions/workflows/continous-integration.yml/badge.svg?event=push)](https://github.com/kiancross/checkstyle-annotations-action/actions/workflows/continous-integration.yml)
[![License](https://img.shields.io/github/license/kiancross/checkstyle-annotations-action)](https://github.com/kiancross/checkstyle-annotations-action/blob/master/LICENSE)

Uploads Checkstyle errors & warnings as [GitHub Annotations](https://docs.github.com/en/rest/reference/checks#list-check-run-annotations)
and decorates the log file output. Unlike other similar Actions, this
also works on pull requests from forks and Dependabot.

## Usage

```yaml
steps:
- uses: kiancross/checkstyle-annotations-action@v1

# Execute Checkstyle
```

Console output for Checkstyle must be enabled. For example, this
Action will not work if the output is only written to an XML file.

## Advanced

No special permissions are required to upload annotations from
forks, as a [Problem Matcher](https://github.com/actions/toolkit/blob/master/docs/problem-matchers.md)
is used. This scans the output of steps for a [specified regular expression](https://github.com/kiancross/checkstyle-annotations-action/blob/master/problem-matcher.json),
which matches Checkstyle's logging format.

## License

The contents of this repository is released under the [MIT License](https://github.com/kiancross/checkstyle-annotations-action/blob/master/LICENSE).