Skip to content

Commit 0fdb78f

Browse files
committed
fix(tools/shellfmt): include .eos and .wip board configs in formatting scope
config/boards/ holds five board status extensions per CLAUDE.md (.conf/.wip/.csc/.tvb/.eos), but the wrapper's find glob only listed three (.conf/.csc/.tvb), so 32 .eos and 2 .wip board files were never fed to shfmt. They're shell config files like any other board entry — no apparent reason for them to be exempt from formatting. Mirror the same allowlist in scoped-mode's extension regex so the two modes stay in sync.
1 parent 68270a4 commit 0fdb78f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/tools/shellfmt.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ cd "${SRC}"
8383

8484
# Allowed file extensions for both full-tree and scoped modes; keep
8585
# in sync with the find globs below.
86-
ALLOWED_EXT_RE='\.(sh|conf|inc|csc|tvb)$'
86+
ALLOWED_EXT_RE='\.(sh|conf|inc|csc|tvb|eos|wip)$'
8787

8888
declare -a ALL_BASH_FILES=()
8989

@@ -109,7 +109,7 @@ if ((${#SCOPED_ARGS[@]} > 0)); then
109109
fi
110110
else
111111
# Full-tree mode: aggregate every file the framework cares about.
112-
board_config_files=$(find config/boards -type f \( -name "*.conf" -o -name "*.csc" -o -name "*.tvb" \)) # All board config files
112+
board_config_files=$(find config/boards -type f \( -name "*.conf" -o -name "*.csc" -o -name "*.tvb" -o -name "*.eos" -o -name "*.wip" \)) # All board config files
113113
family_config_files=$(find config/sources -type f \( -name "*.conf" -o -name "*.inc" -o -name "*.sh" \)) # All family config files
114114
lib_files=$(find lib -type f -name "*.sh") # All build framework shell files
115115
extensions_files=$(find extensions -type f -name "*.sh") # All extension shell files

0 commit comments

Comments
 (0)