mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-28 19:58:52 +00:00
@@ -17,10 +17,13 @@ indent_size = 2
|
|||||||
indent_size = 2
|
indent_size = 2
|
||||||
tab_width = 2
|
tab_width = 2
|
||||||
|
|
||||||
shell_variant = posix # like -ln=posix
|
shell_variant = posix # like -ln=posix
|
||||||
binary_next_line = true # like -bn
|
binary_next_line = true # like -bn
|
||||||
switch_case_indent = true # like -ci
|
switch_case_indent = true # like -ci
|
||||||
space_redirects = true # like -sr
|
space_redirects = true # like -sr
|
||||||
keep_padding = false # like -kp
|
keep_padding = false # like -kp
|
||||||
function_next_line = true # like -fn
|
function_next_line = true # like -fn
|
||||||
never_split = true # like -ns
|
never_split = true # like -ns
|
||||||
|
|
||||||
|
[local/bin/antigen.zsh]
|
||||||
|
ignore = true
|
||||||
|
|||||||
43
.github/workflows/linters.yml
vendored
Normal file
43
.github/workflows/linters.yml
vendored
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
name: reviewdog
|
||||||
|
on: [ push ]
|
||||||
|
jobs:
|
||||||
|
linters:
|
||||||
|
name: Linters
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: GitHub Actions
|
||||||
|
uses: reviewdog/action-actionlint@v1
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
reporter: github-pr-review
|
||||||
|
|
||||||
|
- name: detect-secrets
|
||||||
|
uses: reviewdog/action-detect-secrets@master
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
reporter: github-pr-review
|
||||||
|
|
||||||
|
- name: markdownlint
|
||||||
|
uses: reviewdog/action-markdownlint@v0
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
reporter: github-pr-review
|
||||||
|
|
||||||
|
- name: shfmt
|
||||||
|
uses: reviewdog/action-shfmt@v1
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
shfmt_flags: |
|
||||||
|
--find
|
||||||
|
--list
|
||||||
|
--write
|
||||||
|
--diff
|
||||||
|
--simplify
|
||||||
|
--language-dialect bash
|
||||||
|
--indent 2
|
||||||
|
--binary-next-line
|
||||||
|
--case-indent
|
||||||
|
--space-redirects
|
||||||
|
--func-next-line
|
||||||
@@ -94,6 +94,7 @@ function section_dotfiles
|
|||||||
shfmt)
|
shfmt)
|
||||||
# Format shell scripts according to following rules.
|
# Format shell scripts according to following rules.
|
||||||
shfmt \
|
shfmt \
|
||||||
|
--find \
|
||||||
--list \
|
--list \
|
||||||
--write \
|
--write \
|
||||||
--diff \
|
--diff \
|
||||||
@@ -104,13 +105,7 @@ function section_dotfiles
|
|||||||
--case-indent \
|
--case-indent \
|
||||||
--space-redirects \
|
--space-redirects \
|
||||||
--func-next-line \
|
--func-next-line \
|
||||||
"$DOTFILES" \
|
"$DOTFILES"
|
||||||
"$DOTFILES/local/bin/dfm" \
|
|
||||||
"$DOTFILES/local/bin/x-check-git-attributes" \
|
|
||||||
"$DOTFILES/local/bin/x-open-ports" \
|
|
||||||
"$DOTFILES/config/alias" \
|
|
||||||
"$DOTFILES/config/exports" \
|
|
||||||
"$DOTFILES/config/functions"
|
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "$USAGE_PREFIX [link | update | shfmt]"
|
echo "$USAGE_PREFIX [link | update | shfmt]"
|
||||||
|
|||||||
Reference in New Issue
Block a user