Skip to content

ci(lua): add Luacheck for Neovim Lua sources#51

Closed
coil398 wants to merge 15 commits intomasterfrom
fix/41-nvim-init-brackets
Closed

ci(lua): add Luacheck for Neovim Lua sources#51
coil398 wants to merge 15 commits intomasterfrom
fix/41-nvim-init-brackets

Conversation

@coil398
Copy link
Copy Markdown
Owner

@coil398 coil398 commented Aug 9, 2025

Fixes #41

概要

  • init.lua のプラグイン配列について、構文上の不整合(余計な },)が疑われていましたが、現状のファイルは配列が正しく閉じられており、構文上の不整合は再現しませんでした。
  • 将来的に同種の不整合を検知できるよう、Luacheck を CI に追加しました。

変更点

  • .github/workflows/luacheck.yml: Ubuntu ランナーで luacheck をインストールし、.config/nvim/**/*.lua に対してチェックを実行。
  • .luacheckrc: std = lua54、Neovim の vim グローバルを許可。行長の警告(631)を無視。unused は CI 実行時に --no-unused で無効化。

検証方法

  1. この PR の CI を確認し、Luacheck が正常に完走すること。
  2. 手元で luacheck --no-color --config .luacheckrc --no-unused .config/nvim/**/*.lua を実行してもエラーが出ないこと。

備考

  • もし特定箇所で配列不整合エラーが再現するケース(別ブランチ/特定コミット)があれば、該当差分をご提示ください。個別に修正 PR を追加します。

coil398 added 15 commits August 9, 2025 23:04
…nt-formats (plural) for yamllint\n- neoterm: correct key name to position\n- load.sh: rename duplicate log_fail to log_warn\n\nFixes #19
…tus-interval: 1s -> 5s to reduce CPU wakeups\n- add '|| echo -' fallbacks to #() commands\n\nFixes #22
…ate packages\n\n- Linux: avoid linuxbrew-wrapper; prefer apt and base build tools\n- macOS: use official Homebrew install script\n- Packages: add ripgrep; remove deprecated options; mac-only tools guarded\n\nFixes #17
…列不整合を確認 (CIで検知可能に)
@coil398 coil398 closed this Aug 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Neovim: init.lua のプラグイン配列の括弧不整合を修正

1 participant