mirror of
https://github.com/tw93/Mole.git
synced 2026-02-09 06:09:21 +00:00
Grammar check and optimization
This commit is contained in:
BIN
bin/analyze-go
Executable file
BIN
bin/analyze-go
Executable file
Binary file not shown.
@@ -43,8 +43,10 @@ WHITELIST_WARNINGS=()
|
||||
if [[ -f "$HOME/.config/mole/whitelist" ]]; then
|
||||
while IFS= read -r line; do
|
||||
# Trim whitespace
|
||||
line="${line#${line%%[![:space:]]*}}"
|
||||
line="${line%${line##*[![:space:]]}}"
|
||||
# shellcheck disable=SC2295
|
||||
line="${line#"${line%%[![:space:]]*}"}"
|
||||
# shellcheck disable=SC2295
|
||||
line="${line%"${line##*[![:space:]]}"}"
|
||||
|
||||
# Skip empty lines and comments
|
||||
[[ -z "$line" || "$line" =~ ^# ]] && continue
|
||||
|
||||
BIN
bin/status-go
Executable file
BIN
bin/status-go
Executable file
Binary file not shown.
Reference in New Issue
Block a user