goatg33k / fivem-lua-lint-action Goto Github PK
View Code? Open in Web Editor NEWA GitHub action for linting FiveM / Cfx Lua scripts
License: MIT License
A GitHub action for linting FiveM / Cfx Lua scripts
License: MIT License
Could it be possible to overwrite some components of the .luacheckrc.template
with a local .luacheckrc
?
Doesn't seem to work with that :
max_line_length = 200
exclude_files = {
"[cfx-server-data]/",
}
Running with gitlab-runner 15.8.0 (12335144)
on runner1 Nv4XYxct, system ID: r_A6woA5FUkvYB
Resolving secrets
00:00
Preparing the "docker" executor
00:03
Using Docker executor with image docker:[2](https://gitlab.lifepeak.de/lifepeak/fivem/skripts/fivem_lua_linter/-/jobs/721#L2)0-dind ...
Pulling docker image docker:20-dind ...
Using docker image sha256:70ae571e74c1d711d[3](https://gitlab.lifepeak.de/lifepeak/fivem/skripts/fivem_lua_linter/-/jobs/721#L3)d[5](https://gitlab.lifepeak.de/lifepeak/fivem/skripts/fivem_lua_linter/-/jobs/721#L5)bf[6](https://gitlab.lifepeak.de/lifepeak/fivem/skripts/fivem_lua_linter/-/jobs/721#L6)f4[7](https://gitlab.lifepeak.de/lifepeak/fivem/skripts/fivem_lua_linter/-/jobs/721#L7)eaaf6a51dd260fe0036c7d6[8](https://gitlab.lifepeak.de/lifepeak/fivem/skripts/fivem_lua_linter/-/jobs/721#L8)94c008e7d24297 for docker:20-dind with digest docker@sha256:85a1b877d0f59fd6c7eebaff67436e26f460347a79229cf054dbbe8d5ae9f936 ...
Preparing environment
00:01
Running on runner-nv4xyxct-project-5-concurrent-0 via eb67cc2c6b5b...
Getting source from Git repository
00:01
Fetching changes with git depth set to 20...
Reinitialized existing Git repository in /builds/lifepeak/fivem/skripts/fivem_lua_linter/.git/
Checking out 1465411c as main...
Removing node_modules/
Removing yarn.lock
Skipping Git submodules setup
Executing "step_script" stage of the job script
00:09
Using docker image sha256:70ae571e74c1d711d3d5bf6f47eaaf6a51dd260fe0036c7d6894c008e7d24297 for docker:20-dind with digest docker@sha256:85a1b877d0f59fd6c7eebaff67436e26f460347a79229cf054dbbe8d5ae9f936 ...
$ apk add nodejs yarn && yarn
fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz
(1/9) Installing brotli-libs (1.0.9-r9)
(2/9) Installing c-ares (1.18.1-r1)
(3/9) Installing libgcc (12.2.1_git20220924-r4)
(4/9) Installing icu-data-en (72.1-r1)
Executing icu-data-en-72.1-r1.post-install
*
* If you need ICU with non-English locales and legacy charset support, install
* package icu-data-full.
*
(5/9) Installing libstdc++ (12.2.1_git20220924-r4)
(6/9) Installing icu-libs (72.1-r1)
(7/9) Installing nghttp2-libs (1.51.0-r0)
(8/9) Installing nodejs (18.12.1-r0)
(9/9) Installing yarn (1.22.19-r0)
Executing busybox-1.35.0-r29.trigger
OK: 82 MiB in 65 packages
yarn install v1.22.19
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
$ tsc -b
node_modules/@types/node/globals.d.ts(347,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'AbortSignal' must be of type '{ new (): AbortSignal; prototype: AbortSignal; abort(reason?: any): AbortSignal; timeout(milliseconds: number): AbortSignal; }', but here has type '{ new (): AbortSignal; prototype: AbortSignal; }'.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
error Command failed with exit code 1.
Cleaning up project directory and file based variables
00:01
ERROR: Job failed: exit code 1
Can you help wie with the error ?
I try to rebuild your project for gitlab.
If you need further logs just ask.
node_modules/@types/node/globals.d.ts(347,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'AbortSignal' must be of type '{ new (): AbortSignal; prototype: AbortSignal; abort(reason?: any): AbortSignal; timeout(milliseconds: number): AbortSignal; }', but here has type '{ new (): AbortSignal; prototype: AbortSignal; }'.
Currently, warnings are suppressed as a failure exit code, this should really be an option if you want a perfectly clean repo.
Currently luacheck does not support the FiveM backtick (`) syntax. This issue is to track adding this feature.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.