Skip to content

Commit

Permalink
Merge pull request #29 from alsutton/allow_globs
Browse files Browse the repository at this point in the history
Allow a glob to be specified for the files to be checked
  • Loading branch information
renatoabreu11 authored Nov 9, 2022
2 parents 0196851 + dc56010 commit fd215cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ inputs:
description: Defines the ktlint version to use
required: false
default: 'latest'
file_glob:
description: Optionally defines a file glob to identify files to be checked
required: false
default: ''
runs:
using: 'docker'
image: 'Dockerfile'
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export REVIEWDOG_GITHUB_API_TOKEN="${INPUT_GITHUB_TOKEN}"

echo ktlint version: "$(ktlint --version)"

ktlint --reporter=checkstyle $RELATIVE $ANDROID $BASELINE \
ktlint --reporter=checkstyle $RELATIVE $ANDROID $BASELINE $INPUT_FILE_GLOB \
| reviewdog -f=checkstyle \
-name="ktlint" \
-reporter="${INPUT_REPORTER}" \
Expand Down

0 comments on commit fd215cd

Please sign in to comment.