-
Notifications
You must be signed in to change notification settings - Fork 21
feat: Lint YAML files and add linting workflow #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| --- | ||
| name: commit | ||
|
|
||
| on: | ||
| on: # yamllint disable-line rule:truthy | ||
| push: | ||
| branches: [ main ] | ||
| pull_request: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| --- | ||
| name: commit | ||
|
|
||
| on: | ||
| on: # yamllint disable-line rule:truthy | ||
| pull_request: | ||
| branches: [main] | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| --- | ||
| name: 'Lint YAML' | ||
| on: # yamllint disable-line rule:truthy | ||
| - pull_request | ||
| jobs: | ||
| yamllint: | ||
| name: 'Lint YAML' | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This I'd call |
||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: 'Checkout' | ||
| uses: actions/checkout@v4 | ||
| - name: 'Yamllint' | ||
| uses: karancode/yamllint-github-action@master | ||
| with: | ||
| yamllint_strict: true | ||
| yamllint_comment: false | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| --- | ||
|
|
||
| extends: default | ||
|
|
||
| rules: | ||
| braces: | ||
| level: warning | ||
| max-spaces-inside: 1 | ||
| brackets: | ||
| level: warning | ||
| max-spaces-inside: 1 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| --- | ||
| colourful: false | ||
|
|
||
| filekinds: | ||
|
|
@@ -102,9 +103,9 @@ broken_symlink: {foreground: "#000"} | |
| broken_path_overlay: {foreground: "#000"} | ||
|
|
||
| filenames: | ||
| # Custom filename-based overrides | ||
| # Cargo.toml: {icon: {glyph: 🦀}} | ||
| # Custom filename-based overrides | ||
| # Cargo.toml: {icon: {glyph: 🦀}} | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In these cases the indentation is intentional as you would just need to uncomment the example code and it would already be at the right indentation level. So this and other similar comments should stay this way. |
||
|
|
||
| extensions: | ||
| # Custom extension-based overrides | ||
| # rs: {filename: {foreground: Red}, icon: {glyph: 🦀}} | ||
| # Custom extension-based overrides | ||
| # rs: {filename: {foreground: Red}, icon: {glyph: 🦀}} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| --- | ||
| colourful: true | ||
|
|
||
| filekinds: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| --- | ||
| colourful: true | ||
| # yellow #F1FA8C | ||
| # red #FF5555 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| --- | ||
| colourful: true | ||
|
|
||
| filekinds: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| --- | ||
| colourful: true | ||
|
|
||
| filekinds: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| --- | ||
| colourful: true | ||
|
|
||
| # Colors are in format of: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| --- | ||
| colourful: true | ||
|
|
||
| # Colors are in format of: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| --- | ||
| colourful: true | ||
|
|
||
| # Colors are in format of: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| --- | ||
| colourful: true | ||
|
|
||
| filekinds: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd call this
lint.