diff --git a/.cspell.json b/.cspell.json index 5f66b4c6..de5bbd1b 100644 --- a/.cspell.json +++ b/.cspell.json @@ -5,7 +5,7 @@ "dictionaryDefinitions": [ { "name": "organization-dictionary", - "path": "./.github/.cspell/organization-dictionary.txt", + "path": "https://raw.githubusercontent.com/taiki-e/github-actions/HEAD/.github/.cspell/organization-dictionary.txt", "addWords": true }, { diff --git a/.github/.cspell/organization-dictionary.txt b/.github/.cspell/organization-dictionary.txt deleted file mode 100644 index 4a7d4792..00000000 --- a/.github/.cspell/organization-dictionary.txt +++ /dev/null @@ -1,182 +0,0 @@ -// This is a dictionary shared by projects under https://github.com/taiki-e. -// It is not intended for manual editing. - -endo -taiki - -// tool name and its configs or options -asan -cdylib -cflags -clippy -codegen -cranelift -cxxflags -dylib -exitcode -miri -miriflags -msan -rlib -rustc -rustdoc -rustdocflags -rustflags -rustfmt -rustsec -rustup -staticlib -tsan -valgrind -xcompile -Zmiri - -// Rust target triple/spec -aarch -amdgpu -androideabi -armeb -armebv -armv -atmega -bpfeb -bpfel -csky -cuda -eabi -eabihf -emscripten -espidf -fortanix -gnuabi -gnuabiv -gnueabi -gnueabihf -gnullvm -gnuspe -gnux -illumos -imac -libnx -loongarch -macabi -mipsel -mipsisa -msvc -muslabi -musleabi -musleabihf -newlib -newlibeabihf -nvptx -ohos -openwrt -relibc -riscv -softfloat -sparcv -spirv -teeos -thumbeb -thumbebv -thumbv -tvos -uclibc -uclibceabi -uclibceabihf -uefi -vxworks -wasi -watchos -xous -xtensa - -// Rust other -aclass -acqrel -alloc -builtins -bytecount -canonicalize -cfgs -concat -ctypes -dealloc -deque -doctest -doctests -hasher -idents -impls -inlateout -intrinsics -lateout -libdir -mclass -memcpy -msrv -nand -nanos -nomem -nonoverlapping -noreturn -nostack -peekable -powf -punct -rclass -repr -rfind -rfold -rposition -rsplit -rustlib -seqcst -simd -splitn -structs -subsec -supertrait -supertraits -sysroot -toolchains -turbofish -uninit -unsized -upcastable - -// Other -armel -armhf -binutils -connrefused -cygwin -dpkg -elif -endianness -esac -euxo -gsub -libc -markdownlint -moreutils -msys -noninteractive -noprofile -norc -nproc -objcopy -objdump -pacman -pipefail -powerset -proto -ranlib -readelf -shellcheckrc -SIGABRT -SIGILL -subcmd -tempdir -tlsv -tmpdir diff --git a/tools/tidy.sh b/tools/tidy.sh index dda6c975..ae213f6d 100755 --- a/tools/tidy.sh +++ b/tools/tidy.sh @@ -350,7 +350,7 @@ if [[ -f .cspell.json ]]; then dependencies=$(sed <<<"${dependencies}" 's/[0-9_-]/\n/g' | LC_ALL=C sort -f -u) fi config_old=$(<.cspell.json) - config_new=$(grep <<<"${config_old}" -v ' *//' | jq 'del(.dictionaries[] | select(index("organization-dictionary") | not))' | jq 'del(.dictionaryDefinitions[] | select(.name == "organization-dictionary" | not))') + config_new=$(grep <<<"${config_old}" -v '^ *//' | jq 'del(.dictionaries[] | select(index("organization-dictionary") | not))' | jq 'del(.dictionaryDefinitions[] | select(.name == "organization-dictionary" | not))') trap -- 'echo "${config_old}" >.cspell.json; echo >&2 "$0: trapped SIGINT"; exit 1' SIGINT echo "${config_new}" >.cspell.json if [[ -n "${has_rust}" ]]; then