cspell 8.15.3 → 8.15.4
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/esm/lint/lint.js +10 -1
- package/dist/esm/pkgInfo.d.ts +1 -1
- package/dist/esm/pkgInfo.js +1 -1
- package/package.json +12 -12
package/dist/esm/lint/lint.js
CHANGED
|
@@ -373,7 +373,13 @@ async function determineFilesToCheck(configInfo, cfg, reporter, globInfo) {
|
|
|
373
373
|
const { allGlobs, gitIgnore, fileGlobs, excludeGlobs, normalizedExcludes } = globInfo;
|
|
374
374
|
// Get Exclusions from the config files.
|
|
375
375
|
const { root } = cfg;
|
|
376
|
-
const
|
|
376
|
+
const globsToExcludeRaw = [...(configInfo.config.ignorePaths || []), ...excludeGlobs];
|
|
377
|
+
const globsToExclude = globsToExcludeRaw.filter((g) => !globPattern(g).startsWith('!'));
|
|
378
|
+
if (globsToExclude.length !== globsToExcludeRaw.length) {
|
|
379
|
+
const globs = globsToExcludeRaw.map((g) => globPattern(g)).filter((g) => g.startsWith('!'));
|
|
380
|
+
const msg = `Negative glob exclusions are not supported: ${globs.join(', ')}`;
|
|
381
|
+
reporter.info(msg, MessageTypes.Warning);
|
|
382
|
+
}
|
|
377
383
|
const globMatcher = buildGlobMatcher(globsToExclude, root, true);
|
|
378
384
|
const ignoreGlobs = extractGlobsFromMatcher(globMatcher);
|
|
379
385
|
// cspell:word nodir
|
|
@@ -532,4 +538,7 @@ async function writeDictionaryLog() {
|
|
|
532
538
|
const filename = getEnvironmentVariable('CSPELL_ENABLE_DICTIONARY_LOG_FILE') || 'cspell-dictionary-log.csv';
|
|
533
539
|
await writeFileOrStream(filename, data);
|
|
534
540
|
}
|
|
541
|
+
function globPattern(g) {
|
|
542
|
+
return typeof g === 'string' ? g : g.glob;
|
|
543
|
+
}
|
|
535
544
|
//# sourceMappingURL=lint.js.map
|
package/dist/esm/pkgInfo.d.ts
CHANGED
package/dist/esm/pkgInfo.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// This file is generated by tools/patch-version.mjs
|
|
2
2
|
export { pkgDir } from './dirname.js';
|
|
3
3
|
export const name = 'cspell';
|
|
4
|
-
export const version = '8.15.
|
|
4
|
+
export const version = '8.15.4';
|
|
5
5
|
export const engines = { node: '>=18' };
|
|
6
6
|
export const npmPackage = { name, version, engines };
|
|
7
7
|
//# sourceMappingURL=pkgInfo.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cspell",
|
|
3
|
-
"version": "8.15.
|
|
3
|
+
"version": "8.15.4",
|
|
4
4
|
"description": "A Spelling Checker for Code!",
|
|
5
5
|
"funding": "https://github.com/streetsidesoftware/cspell?sponsor=1",
|
|
6
6
|
"bin": {
|
|
@@ -81,19 +81,19 @@
|
|
|
81
81
|
},
|
|
82
82
|
"homepage": "https://cspell.org/",
|
|
83
83
|
"dependencies": {
|
|
84
|
-
"@cspell/cspell-json-reporter": "8.15.
|
|
85
|
-
"@cspell/cspell-pipe": "8.15.
|
|
86
|
-
"@cspell/cspell-types": "8.15.
|
|
87
|
-
"@cspell/dynamic-import": "8.15.
|
|
88
|
-
"@cspell/url": "8.15.
|
|
84
|
+
"@cspell/cspell-json-reporter": "8.15.4",
|
|
85
|
+
"@cspell/cspell-pipe": "8.15.4",
|
|
86
|
+
"@cspell/cspell-types": "8.15.4",
|
|
87
|
+
"@cspell/dynamic-import": "8.15.4",
|
|
88
|
+
"@cspell/url": "8.15.4",
|
|
89
89
|
"chalk": "^5.3.0",
|
|
90
90
|
"chalk-template": "^1.1.0",
|
|
91
91
|
"commander": "^12.1.0",
|
|
92
|
-
"cspell-dictionary": "8.15.
|
|
93
|
-
"cspell-gitignore": "8.15.
|
|
94
|
-
"cspell-glob": "8.15.
|
|
95
|
-
"cspell-io": "8.15.
|
|
96
|
-
"cspell-lib": "8.15.
|
|
92
|
+
"cspell-dictionary": "8.15.4",
|
|
93
|
+
"cspell-gitignore": "8.15.4",
|
|
94
|
+
"cspell-glob": "8.15.4",
|
|
95
|
+
"cspell-io": "8.15.4",
|
|
96
|
+
"cspell-lib": "8.15.4",
|
|
97
97
|
"fast-json-stable-stringify": "^2.1.0",
|
|
98
98
|
"file-entry-cache": "^9.1.0",
|
|
99
99
|
"get-stdin": "^9.0.0",
|
|
@@ -111,5 +111,5 @@
|
|
|
111
111
|
"micromatch": "^4.0.8",
|
|
112
112
|
"minimatch": "^9.0.5"
|
|
113
113
|
},
|
|
114
|
-
"gitHead": "
|
|
114
|
+
"gitHead": "27882ec49769126e3725b2cf180fee137c9a6ebe"
|
|
115
115
|
}
|