Test linter

This commit is contained in:
ZioPao
2024-08-11 13:32:28 +02:00
parent 940f5486aa
commit 69c6177be5
2 changed files with 11 additions and 5 deletions

11
.github/workflows/lint.yml vendored Normal file
View File

@@ -0,0 +1,11 @@
name: CI
on: [push, pull_request]
jobs:
lint:
name: Lint Lua Scripts
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Lint
uses: GoatG33k/fivem-lua-lint-action@v1

View File

@@ -3,14 +3,9 @@ local StaticData = require("TOC/StaticData")
local CommandsData = require("TOC/CommandsData") local CommandsData = require("TOC/CommandsData")
------------------------ ------------------------
local ServerDataHandler = {} local ServerDataHandler = {}
ServerDataHandler.modData = {} ServerDataHandler.modData = {}
---Get the server mod data table containing that player TOC data ---Get the server mod data table containing that player TOC data
---@param key string ---@param key string
---@return tocModDataType ---@return tocModDataType