diff --git a/.cspell.json b/.cspell.json index 86b2c10..1fe24fe 100755 --- a/.cspell.json +++ b/.cspell.json @@ -1,183 +1,183 @@ { - "ignorePaths": [ - "**/node_modules/**", - "**/vscode-extension/**", - "**/.git/**", - ".vscode" - ], - "language": "en", - "version": "0.2", - "words": [ - "Affero", - "Bizzarri", - "COPYPASTE", - "DEVSKIM", - "Davide", - "ECONNREFUSED", - "ETIMEOUT", - "Grovvy", - "Jenkinsfile", - "KICS", - "Microbundle", - "Misordered", - "Nashorn", - "Nuxt", - "OPENVSX", - "PROSELINT", - "QUICKFIX", - "Rulesets", - "Serv", - "Sublicensing", - "TRUFFLEHOG", - "Vuillamy", - "WIPO", - "activedocument", - "anymatch", - "applescript", - "archy", - "argparse", - "arity", - "asynckit", - "atomtest", - "backticks", - "callsites", - "camelcase", - "caseless", - "chardet", - "chownr", - "circleci", - "clientrc", - "cliui", - "codecoverage", - "codenarc", - "commondir", - "dashdash", - "decamelize", - "destructured", - "dotenv", - "editorconfig", - "embertest", - "eqeqeq", - "eslintcache", - "eslintignore", - "espree", - "esquery", - "esrecurse", - "estraverse", - "estree", - "esutils", - "extglob", - "extsprintf", - "failon", - "favicon", - "fixrules", - "flattendeep", - "fontawesome", - "fromentries", - "fsevents", - "fullwidth", - "gensync", - "getownpropertydescriptors", - "getpass", - "gitmodules", - "greasemonkey", - "groovylint", - "groovylintlsp", - "groovylintrc", - "hasha", - "imurmurhash", - "isexe", - "isstream", - "javaexecutable", - "javaoptions", - "javascripts", - "jdeploy", - "jenkinsfile", - "jsbn", - "jscoverage", - "jsesc", - "jsonify", - "jspm", - "jsprim", - "killserver", - "lannonbr", - "lcov", - "lerna", - "levn", - "linebreak", - "loglevel", - "lycheeignore", - "markdownlint", - "markstale", - "materialx", - "megalinter", - "minipass", - "minizlib", - "mkdocs", - "multiline", - "nashorn", - "njre", - "nolintafter", - "nonblock", - "notif", - "npmignore", - "nuxt", - "nvuillam", - "optionator", - "optns", - "ovsx", - "oxsecurity", - "paren", - "parens", - "picomatch", - "pids", - "plusplus", - "postcompile", - "precompile", - "preload", - "processinfo", - "promisified", - "prototypejs", - "pymdownx", - "querystringify", - "quickstart", - "qunit", - "readdirp", - "readonly", - "regexpp", - "returnrules", - "rulesets", - "rulesetsoverridetype", - "serviceworker", - "sourcefilepath", - "sprintf", - "sshpk", - "stefanzweifel", - "stevenh", - "stylelint", - "tootallnate", - "trimend", - "trimstart", - "tsbuildinfo", - "tsutils", - "tweetnacl", - "twemoji", - "typedarray", - "universalify", - "unparser", - "unstale", - "updateable", - "vscodeignore", - "vsix", - "vstest", - "vuepress", - "webextensions", - "webidl", - "wrappy", - "wscript", - "xvfb", - "yallist", - "yuvmel", - "zalgo" - ] -} \ No newline at end of file + "ignorePaths": [ + "**/node_modules/**", + "**/vscode-extension/**", + "**/.git/**", + ".vscode" + ], + "language": "en", + "version": "0.2", + "words": [ + "Affero", + "Bizzarri", + "COPYPASTE", + "DEVSKIM", + "Davide", + "ECONNREFUSED", + "ETIMEOUT", + "Grovvy", + "Jenkinsfile", + "KICS", + "Microbundle", + "Misordered", + "Nashorn", + "Nuxt", + "OPENVSX", + "PROSELINT", + "QUICKFIX", + "Rulesets", + "Serv", + "Sublicensing", + "TRUFFLEHOG", + "Vuillamy", + "WIPO", + "activedocument", + "anymatch", + "applescript", + "archy", + "argparse", + "arity", + "asynckit", + "atomtest", + "backticks", + "callsites", + "camelcase", + "caseless", + "chardet", + "chownr", + "circleci", + "clientrc", + "cliui", + "codecoverage", + "codenarc", + "commondir", + "dashdash", + "decamelize", + "destructured", + "dotenv", + "editorconfig", + "embertest", + "eqeqeq", + "eslintcache", + "eslintignore", + "espree", + "esquery", + "esrecurse", + "estraverse", + "estree", + "esutils", + "extglob", + "extsprintf", + "failon", + "favicon", + "fixrules", + "flattendeep", + "fontawesome", + "fromentries", + "fsevents", + "fullwidth", + "gensync", + "getownpropertydescriptors", + "getpass", + "gitmodules", + "greasemonkey", + "groovylint", + "groovylintlsp", + "groovylintrc", + "hasha", + "imurmurhash", + "isexe", + "isstream", + "javaexecutable", + "javaoptions", + "javascripts", + "jdeploy", + "jenkinsfile", + "jsbn", + "jscoverage", + "jsesc", + "jsonify", + "jspm", + "jsprim", + "killserver", + "lannonbr", + "lcov", + "lerna", + "levn", + "linebreak", + "loglevel", + "lycheeignore", + "markdownlint", + "markstale", + "materialx", + "megalinter", + "minipass", + "minizlib", + "mkdocs", + "multiline", + "nashorn", + "njre", + "nolintafter", + "nonblock", + "notif", + "npmignore", + "nuxt", + "nvuillam", + "optionator", + "optns", + "ovsx", + "oxsecurity", + "paren", + "parens", + "picomatch", + "pids", + "plusplus", + "postcompile", + "precompile", + "preload", + "processinfo", + "promisified", + "prototypejs", + "pymdownx", + "querystringify", + "quickstart", + "qunit", + "readdirp", + "readonly", + "regexpp", + "returnrules", + "rulesets", + "rulesetsoverridetype", + "serviceworker", + "sourcefilepath", + "sprintf", + "sshpk", + "stefanzweifel", + "stevenh", + "stylelint", + "tootallnate", + "trimend", + "trimstart", + "tsbuildinfo", + "tsutils", + "tweetnacl", + "twemoji", + "typedarray", + "universalify", + "unparser", + "unstale", + "updateable", + "vscodeignore", + "vsix", + "vstest", + "vuepress", + "webextensions", + "webidl", + "wrappy", + "wscript", + "xvfb", + "yallist", + "yuvmel", + "zalgo" + ] +} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2b31f84..49d9767 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ jobs: test: strategy: matrix: - node_version: ['18'] + node_version: ["18"] os: [ubuntu-latest, macos-latest, windows-latest] name: Test runs-on: ${{ matrix.os }} diff --git a/.vscode/launch.json b/.vscode/launch.json index 1878f7f..a6f1af7 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -43,7 +43,7 @@ "args": [ "--disable-extensions", "--extensionDevelopmentPath=${workspaceFolder}", - "--extensionTestsPath=${workspaceFolder}/client/out/test/suite/index", + "--extensionTestsPath=${workspaceFolder}/client/out/test/suite/index" ], "outFiles": ["${workspaceFolder}/client/out/test/**/*.js"], "preLaunchTask": "npm: watch", @@ -58,7 +58,7 @@ "args": [ "--disable-extensions", "--extensionDevelopmentPath=${workspaceFolder}", - "--extensionTestsPath=${workspaceFolder}/client/out/test/suite/index", + "--extensionTestsPath=${workspaceFolder}/client/out/test/suite/index" ], "env": { "NPM_DEBUG": "vscode-groovy-lint,npm-groovy-lint", @@ -87,6 +87,6 @@ { "name": "Run Extension Tests + Server", "configurations": ["Run Extension Tests", "Attach to Server"] - }, + } ] } diff --git a/.vscode/settings.json b/.vscode/settings.json index 9f81390..c4f1520 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -10,7 +10,7 @@ "VSCODE_VERSION": "stable", "ELECTRON_RUN_AS_NODE": null }, - "mochaExplorer.ui":"tdd", + "mochaExplorer.ui": "tdd", "mochaExplorer.files": "client/src/test/**/*.test.ts", "mochaExplorer.require": "ts-node/register", "mochaExplorer.logpanel": true, diff --git a/README.md b/README.md index a8b144d..367f97e 100644 --- a/README.md +++ b/README.md @@ -20,16 +20,16 @@ ## Features -| Command | Description | Access | -| -------------------------------------- | ------------------------------------------------------------------------------------------------ | -------------------------------------------------------- | -| **Analyze code** | Lint the code of the current file | Ctrl+Shift+F9
Contextual
Status bar
Commands | -| **Format** | Format the code of the current file | Shift+Alt+F
Contextual
Commands | -| **Fix all auto-fixable problems** | Fix the code of the current file | Contextual
Commands | -| **Lint folder** | Lint all applicable files of a folder | Contextual | -| Fix single error | Apply quick fix for a single problem | Quick Fix
Diagnostic | -| Fix _rule_ in entire file | Apply quick fix for all problems related to the same rule in the current file | Quick Fix
Diagnostic | -| Disable _rule_ for this line | Disable rule only for current line | Quick Fix
Diagnostic | -| Disable _rule_ for this entire file | Disable rule in the entire file | Quick Fix
Diagnostic | +| Command | Description | Access | +|----------------------------------------|-------------------------------------------------------------------------------------------------|----------------------------------------------------------| +| **Analyze code** | Lint the code of the current file | Ctrl+Shift+F9
Contextual
Status bar
Commands | +| **Format** | Format the code of the current file | Shift+Alt+F
Contextual
Commands | +| **Fix all auto-fixable problems** | Fix the code of the current file | Contextual
Commands | +| **Lint folder** | Lint all applicable files of a folder | Contextual | +| Fix single error | Apply quick fix for a single problem | Quick Fix
Diagnostic | +| Fix _rule_ in entire file | Apply quick fix for all problems related to the same rule in the current file | Quick Fix
Diagnostic | +| Disable _rule_ for this line | Disable rule only for current line | Quick Fix
Diagnostic | +| Disable _rule_ for this entire file | Disable rule in the entire file | Quick Fix
Diagnostic | | Disable _rule_ for this entire project | Updates configuration file
(usually `.groovylintrc.js` in root folder) to disable this rule | Quick Fix
Diagnostic | - _**Contextual**_: *right click in source code or on folder_ @@ -41,7 +41,7 @@ ## Extension Settings | Parameter | Description | Default | -| ----------------------------- | --------------------------------------------------------------------------------------------------------------- | -------------------- | +|-------------------------------|-----------------------------------------------------------------------------------------------------------------|----------------------| | `groovyLint.enable` | Controls whether GroovyLint is enabled or not | true | | `groovyLint.lint.trigger` | Run the linter on save (onSave), on type (onType) , or on user request | onSave | | `groovyLint.format.enable` | Controls whether the groovy formatter is enabled or not | true | diff --git a/client/.vscode/settings.json b/client/.vscode/settings.json index bb2f678..155e8d2 100644 --- a/client/.vscode/settings.json +++ b/client/.vscode/settings.json @@ -1,8 +1,8 @@ { - "editor.insertSpaces": false, - "tslint.enable": true, - "typescript.tsc.autoDetect": "off", - "typescript.preferences.quoteStyle": "single", - "mochaExplorer.files": "src/test/**/*.ts", - "mochaExplorer.require": "ts-node/register" - } + "editor.insertSpaces": false, + "tslint.enable": true, + "typescript.tsc.autoDetect": "off", + "typescript.preferences.quoteStyle": "single", + "mochaExplorer.files": "src/test/**/*.ts", + "mochaExplorer.require": "ts-node/register" +} diff --git a/docs/index.md b/docs/index.md index a8b144d..367f97e 100644 --- a/docs/index.md +++ b/docs/index.md @@ -20,16 +20,16 @@ ## Features -| Command | Description | Access | -| -------------------------------------- | ------------------------------------------------------------------------------------------------ | -------------------------------------------------------- | -| **Analyze code** | Lint the code of the current file | Ctrl+Shift+F9
Contextual
Status bar
Commands | -| **Format** | Format the code of the current file | Shift+Alt+F
Contextual
Commands | -| **Fix all auto-fixable problems** | Fix the code of the current file | Contextual
Commands | -| **Lint folder** | Lint all applicable files of a folder | Contextual | -| Fix single error | Apply quick fix for a single problem | Quick Fix
Diagnostic | -| Fix _rule_ in entire file | Apply quick fix for all problems related to the same rule in the current file | Quick Fix
Diagnostic | -| Disable _rule_ for this line | Disable rule only for current line | Quick Fix
Diagnostic | -| Disable _rule_ for this entire file | Disable rule in the entire file | Quick Fix
Diagnostic | +| Command | Description | Access | +|----------------------------------------|-------------------------------------------------------------------------------------------------|----------------------------------------------------------| +| **Analyze code** | Lint the code of the current file | Ctrl+Shift+F9
Contextual
Status bar
Commands | +| **Format** | Format the code of the current file | Shift+Alt+F
Contextual
Commands | +| **Fix all auto-fixable problems** | Fix the code of the current file | Contextual
Commands | +| **Lint folder** | Lint all applicable files of a folder | Contextual | +| Fix single error | Apply quick fix for a single problem | Quick Fix
Diagnostic | +| Fix _rule_ in entire file | Apply quick fix for all problems related to the same rule in the current file | Quick Fix
Diagnostic | +| Disable _rule_ for this line | Disable rule only for current line | Quick Fix
Diagnostic | +| Disable _rule_ for this entire file | Disable rule in the entire file | Quick Fix
Diagnostic | | Disable _rule_ for this entire project | Updates configuration file
(usually `.groovylintrc.js` in root folder) to disable this rule | Quick Fix
Diagnostic | - _**Contextual**_: *right click in source code or on folder_ @@ -41,7 +41,7 @@ ## Extension Settings | Parameter | Description | Default | -| ----------------------------- | --------------------------------------------------------------------------------------------------------------- | -------------------- | +|-------------------------------|-----------------------------------------------------------------------------------------------------------------|----------------------| | `groovyLint.enable` | Controls whether GroovyLint is enabled or not | true | | `groovyLint.lint.trigger` | Run the linter on save (onSave), on type (onType) , or on user request | onSave | | `groovyLint.format.enable` | Controls whether the groovy formatter is enabled or not | true | diff --git a/package-lock.json b/package-lock.json index 47ce145..4064ad9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -232,9 +232,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "20.10.4", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.10.4.tgz", - "integrity": "sha512-D08YG6rr8X90YB56tSIuBaddy/UXAA9RKJoFvrsnogAum/0pmjkgi4+2nx96A330FmioegBWmEYQ+syqCFaveg==", + "version": "20.10.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.10.5.tgz", + "integrity": "sha512-nNPsNE65wjMxEKI93yOP+NPGGBJz/PoN3kZsVLee0XMiJolxSekEVD8wRwBUBqkwc7UWop0edW50yrCQW4CyRw==", "dev": true, "dependencies": { "undici-types": "~5.26.4"