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.
@@ -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 globsToExclude = [...(configInfo.config.ignorePaths || []), ...excludeGlobs];
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
@@ -1,6 +1,6 @@
1
1
  export { pkgDir } from './dirname.js';
2
2
  export declare const name = "cspell";
3
- export declare const version = "8.15.3";
3
+ export declare const version = "8.15.4";
4
4
  export declare const engines: {
5
5
  node: string;
6
6
  };
@@ -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.3';
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",
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.3",
85
- "@cspell/cspell-pipe": "8.15.3",
86
- "@cspell/cspell-types": "8.15.3",
87
- "@cspell/dynamic-import": "8.15.3",
88
- "@cspell/url": "8.15.3",
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.3",
93
- "cspell-gitignore": "8.15.3",
94
- "cspell-glob": "8.15.3",
95
- "cspell-io": "8.15.3",
96
- "cspell-lib": "8.15.3",
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": "2c24d62985bd3cf7835d7cfd05204113967b8d89"
114
+ "gitHead": "27882ec49769126e3725b2cf180fee137c9a6ebe"
115
115
  }