-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.olint.conf
36 lines (31 loc) · 1.02 KB
/
.olint.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
# This is sourced. Fake bang-path to help editors and linters
# shellcheck disable=SC2034
[[ "$(hostname -s)" = "hetz1" ]] && {
# not sure why, but on this host it quickly runs out of RAM
# for this repo
skip_linters+=(
shellcheck
)
}
# Patterns to exclude from linting, anything starting with this will be excluded
excluded_prefixes+=(
cache/
custom_items/
scripts/dead_code/
)
# Exclude specific files by specifying their entire filename as listed by 'olint'.
excludes+=(
# shellcheck takes all available mem on hetz1 and crashes
# odd but for now skip linting it
# items/currencies.sh
# items/missing_keys.sh
items/external_tools/spotify.sh
# items/hints/choose-client.sh
# items/hints/choose-buffer.sh
# items/hints/choose-tree.sh
# items/hints/customize-mode.sh
)
# Avioid getting codespell error for teh in scripts/utils/tmux.sh
_skip='./.git,./.mypy_cache,./cache,./scripts/dead_code'
override_linter_cmd["codespell"]="codespell -H -S '$_skip' -L teh"