Skip to content

chore: use builtin EmmyLuaCodeStyle for style checking #3084

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Mar 23, 2025

Conversation

alex-courtis
Copy link
Member

@alex-courtis alex-courtis commented Mar 21, 2025

update versions:

  • luacheck 1.1.1 -> 1.2.0
  • luarocks v4 -> v5
  • lua-language-server 3.11.0 -> 3.13.9

Small ci.yml tweaks.

Use the embedded EmmyLuaCodeStyle CodeFormat when checking style. This makes it easier for those who don't have it installed, as well as simlifying CI.

CodeFormat binary is still required for fixing style; doc updated.

Contentious change: style job collapsed into check, as they have all prerequisites in common.

TODO: update required checks following merge

@alex-courtis alex-courtis force-pushed the chore-sync-EmmyLuaCodeStyle branch from 9a6a195 to 3a27e36 Compare March 21, 2025 23:58
@alex-courtis alex-courtis changed the title chore: sync EmmyLuaCodeStyle settings, fix warnings chore: update lua-language-server, use builtin EmmyLuaCodeStyle for style check Mar 22, 2025
@alex-courtis alex-courtis requested a review from gegoune March 22, 2025 02:27
@@ -1,12 +1,23 @@
{
"$schema": "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json",
"runtime.version.luals-check-only": "Lua 5.1",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uses a better jq solution in script.

local stat = vim.loop.fs_lstat(abs)
-- path incorrectly specified as an integer
local stat = vim.loop.fs_lstat(abs) ---@diagnostic disable-line param-type-mismatch

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

result of lua-language-server upgrade

@alex-courtis alex-courtis changed the title chore: update lua-language-server, use builtin EmmyLuaCodeStyle for style check chore: use builtin EmmyLuaCodeStyle for style checking Mar 22, 2025
Copy link
Collaborator

@gegoune gegoune left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alex-courtis alex-courtis merged commit 44d9b58 into master Mar 23, 2025
8 checks passed
@alex-courtis alex-courtis deleted the chore-sync-EmmyLuaCodeStyle branch March 23, 2025 01:46
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.

2 participants