-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #108 from gliderlabs/lint-files
feat: add linting to various files
- Loading branch information
Showing
8 changed files
with
143 additions
and
43 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
root = true | ||
|
||
[*] | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 2 | ||
trim_trailing_whitespace = true | ||
|
||
[Makefile] | ||
insert_final_newline = true | ||
indent_style = tab | ||
indent_size = 4 | ||
|
||
[*.go] | ||
insert_final_newline = true | ||
indent_style = tab | ||
indent_size = 4 |
This file contains 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
default: true | ||
|
||
# Line length | ||
# https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md013 | ||
MD013: false |
This file contains 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
extends: default | ||
|
||
rules: | ||
line-length: disable |
This file contains 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 |
---|---|---|
@@ -0,0 +1,69 @@ | ||
--- | ||
name: "lint" | ||
|
||
# yamllint disable-line rule:truthy | ||
on: | ||
pull_request: | ||
branches: | ||
- "*" | ||
push: | ||
branches: | ||
- "main" | ||
|
||
jobs: | ||
hadolint: | ||
name: hadolint | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Clone | ||
uses: actions/checkout@v4 | ||
- name: Run hadolint | ||
uses: hadolint/hadolint-action@54c9adbab1582c2ef04b2016b760714a4bfde3cf | ||
|
||
markdown-lint: | ||
name: markdown-lint | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Clone | ||
uses: actions/checkout@v4 | ||
- name: Run markdown-lint | ||
uses: avto-dev/markdown-lint@04d43ee9191307b50935a753da3b775ab695eceb | ||
with: | ||
config: ".github/linters/.markdown-lint.yml" | ||
args: "./README.md" | ||
|
||
shellcheck: | ||
name: shellcheck | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Clone | ||
uses: actions/checkout@v4 | ||
- name: Run shellcheck | ||
uses: ludeeus/action-shellcheck@00cae500b08a931fb5698e11e79bfbd38e612a38 | ||
env: | ||
SHELLCHECK_OPTS: -s bash | ||
shfmt: | ||
name: shfmt | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Clone | ||
uses: actions/checkout@v4 | ||
- name: Run shfmt | ||
uses: luizm/action-sh-checker@c6edb3de93e904488b413636d96c6a56e3ad671a | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} | ||
SHFMT_OPTS: -l -d -i 2 | ||
with: | ||
sh_checker_shellcheck_disable: true | ||
sh_checker_comment: true | ||
|
||
yamllint: | ||
name: yamllint | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Clone | ||
uses: actions/checkout@v4 | ||
- name: Run yamllint | ||
uses: ibiqlik/action-yamllint@2576378a8e339169678f9939646ee3ee325e845c | ||
with: | ||
config_file: ".github/linters/.yamllint.yml" |
File renamed without changes.
This file contains 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
This file contains 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
This file contains 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