FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Added excluded-directories option by yorukai · Pull Request #2 · pmagentur/linting-java · GitHub

Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .yml  (1) All 1 file type selected
Only manifest files
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
8 changes: 7 additions & 1 deletion .github/workflows/linting.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ on:
required: false
type: string
default: '._linting' # Use the configs from this repository (separate checkout)
excluded-directories:
description: 'List of directories to exclude (JSON), empty = none'
required: false
type: string
default: '[]'

jobs:
checkstyle:
Expand Down Expand Up @@ -42,12 +47,13 @@ jobs:

- name: Linting with checkstyle
id: linter
uses: pmagentur/linting-action@v0.2
uses: pmagentur/linting-action@v0.4
with:
changed-files: ${{ steps.changedFiles.outputs.all_changed_files }}
linter-command: "java -jar ._linting/checkstyle/checkstyle-10.3.3-all.jar -c ${{ inputs.configs-path }}/checkstyle/config.xml {files}"
parse-pattern: '\[(?<level>[^\]]+)\] (?<file>[^:]+):(?<line>\d+)(?::(?<column>\d+))?: (?<message>.+) \[(?<ruleName>[^\]]+)\]'
relevant-file-endings: '["java"]'
excluded-directories: ${{ inputs.excluded-directories }}

- name: Add Annotations
uses: pmagentur/linting-annotations@v0.1
Expand Down

Back | FazBrowse Home | New Git URL