Skip to content

Commit 03ebcf0

Browse files
committed
style: rename variable for clarity in glob filtering logic
1 parent 4f0ada4 commit 03ebcf0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/steiger/src/shared/globs/create-filter-according-to-globs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ export function createFilterAccordingToGlobs({ inclusions, exclusions }: ApplyGl
1919

2020
const positiveExclusionPatterns =
2121
(thereAreExclusions && exclusions.filter((pattern) => !isNegatedGlob(pattern))) || []
22-
const negativeExclusionPatterns =
22+
const reInclusionPatterns =
2323
(thereAreExclusions && exclusions.filter((pattern) => isNegatedGlob(pattern)).map((pattern) => pattern.slice(1))) ||
2424
[]
2525

2626
const isPositivelyExcluded = picomatch(positiveExclusionPatterns, picomatchOptions)
27-
const isReIncluded = picomatch(negativeExclusionPatterns, picomatchOptions)
27+
const isReIncluded = picomatch(reInclusionPatterns, picomatchOptions)
2828

2929
function filterAccordingToGlobs(path: string) {
3030
if (inclusionsEmpty) {

0 commit comments

Comments
 (0)