Skip to content

Commit

Permalink
Format code and documents (#7)
Browse files Browse the repository at this point in the history
* add Editorconfig

* format dcument
  • Loading branch information
SnO2WMaN authored Jan 14, 2022
1 parent 84dabef commit c24db1a
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 12 deletions.
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = tab
insert_final_newline = true
trim_trailing_whitespace = true

[*.yml]
indent_style = space

[*.md]
trim_trailing_whitespace = false
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ jobs:
- name: run action
uses: ./
with:
configDirectory: test
configDirectory: test
17 changes: 8 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ A GitHub Action for using [protolint](https://github.com/yoheimuta/protolint) in

- `configDirectory`: the path to where the `.protolint.yaml` configuration exists.


## Example

```yaml
Expand All @@ -19,11 +18,11 @@ jobs:
pr-check:
runs-on: ubuntu-latest
steps:
- name: checkout source
uses: actions/checkout@v1

- name: run protolint
uses: plexsystems/protolint-action@v0.2.0
with:
configDirectory: test
```
- name: checkout source
uses: actions/checkout@v1

- name: run protolint
uses: plexsystems/protolint-action@v0.4.0
with:
configDirectory: test
```
2 changes: 1 addition & 1 deletion test/.protolint.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
lint:
rules:
no_default: true

add:
- SERVICE_NAMES_UPPER_CAMEL_CASE
2 changes: 1 addition & 1 deletion test/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ syntax = "proto3";

package service;

service MyService { }
service MyService {}

0 comments on commit c24db1a

Please sign in to comment.