Skip to content

Support linting/errorchecking lua code in zig build system #93

@VisenDev

Description

@VisenDev

It would be very nice if we could configure ziglua to lint our lua code when we are running zig build. We would then report any errors like we would report zig compile errors.

This would turn runtime errors into compile time errors which is always nicer.

Example

build.zig

try ziglua.lintLuaFile(b.path("data/lua/init.lua"), .{.luadoc = true, .emit_compile_errors = true});
try ziglua.lintLuaFile(b.path("data/lua/main.lua"), .{.luadoc = true, .emit_compile_errors = true});
try ziglua.lintLuaFile(b.path("data/lua/other.lua"), .{.luadoc = true, .emit_compile_errors = true});

To do this we would probably want to look into embedding LDoc into ziglua.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions