@atlisp/lint 0.2.19 → 0.2.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/locale.js CHANGED
@@ -295,7 +295,13 @@ Options:
295
295
  };
296
296
  let currentLocale = 'zh';
297
297
  function setLocale(locale) {
298
- currentLocale = locale;
298
+ const normalized = locale.split(/[-_]/)[0].toLowerCase();
299
+ if (normalized === 'zh') {
300
+ currentLocale = 'zh';
301
+ }
302
+ else {
303
+ currentLocale = 'en';
304
+ }
299
305
  }
300
306
  function getLocale() {
301
307
  return currentLocale;
package/dist/runner.js CHANGED
@@ -94,6 +94,7 @@ const disable_1 = require("./disable");
94
94
  const parser_1 = require("@atlisp/parser");
95
95
  const visitor_runner_1 = require("./visitor-runner");
96
96
  function runChecks(content, file, config) {
97
+ (0, locale_1.setLocale)(config.locale || 'zh');
97
98
  const issues = [];
98
99
  const disableMap = (0, disable_1.parseDisableComments)(content);
99
100
  const checks = config.checks;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlisp/lint",
3
- "version": "0.2.19",
3
+ "version": "0.2.20",
4
4
  "description": "AutoLISP static analysis tool — parens, security, conventions, SBCL syntax validation",
5
5
  "keywords": [
6
6
  "CAD",