Skip to content

Commit

Permalink
Fixed invalid default style - #1 🛠
Browse files Browse the repository at this point in the history
  • Loading branch information
RafikFarhad committed May 14, 2021
1 parent d93d8bf commit 4e49929
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ or, for all nested folder
`"src/**/*.h,src/**/*.c"`

### `style`
The style for `clang-format`. Possible value are: `LVM, Google, Chromium, Mozilla, WebKit`. If your repository has a `.clang-format` file in the root directory then you can use `file` option here.
The style for `clang-format`. Possible value are: `LLVM, GNU, Google, Chromium, Microsoft, Mozilla, WebKit`. If your repository has a `.clang-format` file in the root directory then you can use `file` option here.

Default: `LVM`
Default: `LLVM`

## Sample Workflow File
Create a file in `.github/workflows/` folder with:
Expand All @@ -40,7 +40,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: RafikFarhad/clang-format-github-action@v1
- uses: RafikFarhad/clang-format-github-action@v1.0.1
with:
sources: "src/**/*.h,src/**/*.c,test/**/*.c"
```
Expand All @@ -54,6 +54,6 @@ Kudos to [@silkeh](github.com/silkeh) for his awesome [docker image](https://hub

## Contribution

Feel free to submit PR and raise issue.
Feel free to submit PR and/or raise issue.

🌞 Thanks for using 🌞
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ inputs:
style:
description: The style to use by clang-format.
required: false
default: 'LVM'
default: 'LLVM'
sources:
description: |
Location of sources to check. It can be a single file,
regex of a folder or multiple selecteor seprated
regex of a directory or multiple selecteor seprated
by comma (`,`)
required: false
default: "**/*"
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 @@ function resolve_inputs() {

function check_file() {
local file="$1"
message="$(clang-format -n -Werror --ferror-limit=1 $STYLE --fallback-style=LVM "${file}")"
message="$(clang-format -n -Werror --ferror-limit=1 $STYLE --fallback-style=LLVM "${file}")"
local status="$?"
if [ $status -ne 0 ]; then
echo "$message" >&2
Expand Down

0 comments on commit 4e49929

Please sign in to comment.