Add lua language server checks

This commit is contained in:
Juraj Vajda 2022-11-03 10:24:57 -04:00
parent 1ae21d79f4
commit 5af836b42a
5 changed files with 529 additions and 457 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@ docs/build
*.blend2
*.old
node_modules
*.log

60
.luarc.json Normal file
View File

@ -0,0 +1,60 @@
{
"$schema": "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json",
"runtime": {
"version": "Lua 5.1",
"path": [
"?.lua",
"?/init.lua"
],
"pathStrict": true
},
"workspace": {
"maxPreload": 1600,
"preloadFileSize": 1000,
"ignoreDir": [
"/locale/",
"/libs/",
"/3rd",
"/.vscode",
"/meta",
"/.git",
"/docs"
],
"checkThirdParty": false
},
"typeFormat": {
"config": {
"format_line": "false"
}
},
"type": {
"castNumberToInteger": false
},
"doc": {
"privateName": [
"_*"
]
},
"diagnostics": {
"disable": [
"close-non-object"
],
"groupFileStatus": {
"ambiguity": "Any",
"await": "Any",
"duplicate": "Any",
"global": "Any",
"luadoc": "Any",
"redefined": "Any",
"strict": "Any",
"type-check": "Any",
"unbalanced": "Any",
"unused": "Any"
},
"ignoredFiles": "Opened",
"libraryFiles": "Opened",
"neededFileStatus": {
"codestyle-check": "Any"
}
}
}

4
package-lock.json generated
View File

@ -11,6 +11,10 @@
"devDependencies": {
"node-fetch": "^3.2.10",
"yargs": "^17.6.1"
},
"engines": {
"node": ">=16.0.0",
"npm": ">=8.0.0"
}
},
"node_modules/ansi-regex": {

7
scripts/lls-check.js Normal file
View File

@ -0,0 +1,7 @@
import * as path from 'node:path';
const logPath = "/Users/juraj/Library/Application Support/minetest/mods/x_bows"
const checkPath = "/Users/juraj/Library/Application Support/minetest/mods/x_bows"
const currentPath = process.cwd()
console.log(currentPath)