GithubHelp home page GithubHelp logo

goatg33k / fivem-lua-lint-action Goto Github PK

View Code? Open in Web Editor NEW
21.0 21.0 21.0 70 KB

A GitHub action for linting FiveM / Cfx Lua scripts

License: MIT License

Shell 12.29% Dockerfile 5.29% TypeScript 57.66% Lua 24.76%

fivem-lua-lint-action's People

Contributors

goatg33k avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fivem-lua-lint-action's Issues

Overwrite template with local .luacheckrc

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]/",
}

Try to rebuild for gitlab: error TS2403

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; }'.

Support for FiveM ` syntax

Currently luacheck does not support the FiveM backtick (`) syntax. This issue is to track adding this feature.

StateBags support

Hey there, first of all : awesome piece of tool ๐Ÿ‘ !

Could you add support for StateBags ?

It seems you added some but not all of them

  • Entity
  • LocalPlayer
  • Player
  • GlobalState

Also what is "Vehicle" ?

Cheers

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.