Skip to content

Commit

Permalink
as XmlScope
Browse files Browse the repository at this point in the history
  • Loading branch information
iObject committed Aug 21, 2024
1 parent 69b49b4 commit 7ef4fd2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/findNodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function getFilteredScopes(program: Program) {

for (const filteredScope of program.getScopes().filter((scope) => isXmlScope(scope))) {
if (!hasExclusions) {
scopes.push(filteredScope);
scopes.push(filteredScope as XmlScope);
continue; // Skip further checks since it's explicitly included
}

Expand All @@ -39,15 +39,15 @@ function getFilteredScopes(program: Program) {
);

if (isIncluded) {
scopes.push(filteredScope);
scopes.push(filteredScope as XmlScope);
continue; // Skip further checks since it's explicitly included
}

let isExcluded = excludePatterns.some((pattern: string) =>
minimatch.match([filteredScope.name], pattern).length > 0
);
if (!isExcluded) {
scopes.push(filteredScope);
scopes.push(filteredScope as XmlScope);
}
}

Expand Down

0 comments on commit 7ef4fd2

Please sign in to comment.