Skip to content

Commit a69f405

Browse files
committed
Ignore test related files in external dependency queries
1 parent 4faa4f2 commit a69f405

8 files changed

+9
-1
lines changed

cypher/External_Dependencies/External_module_usage_overall_for_Typescript.cypher

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// External Typescript module usage overall
22

33
MATCH (internalModule:TS:Module)-[:EXPORTS]->(internalElement:TS)
4+
WHERE NOT internalModule:TestRelated
45
WITH count(DISTINCT internalElement.globalFqn) AS allInternalElements
56
,count(DISTINCT internalModule.globalFqn) AS allModules
67
,collect(DISTINCT internalElement) AS internalElementList

cypher/External_Dependencies/External_module_usage_per_internal_module_aggregated_for_Typescript.cypher

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
// External Typescript module usage per interal module aggregated
1+
// External Typescript module usage per internal module aggregated
22

33
// Get the overall internal module statistics first
44
MATCH (internalModule:TS:Module)-[:EXPORTS]->(internalElement:TS)
5+
WHERE NOT internalModule:TestRelated
56
WITH internalModule.name AS internalModuleName
67
,internalModule.communityLeidenId AS leidenCommunityId
78
,count(DISTINCT internalElement.globalFqn) AS internalModuleElementsCount

cypher/External_Dependencies/External_module_usage_per_internal_module_distribution_for_Typescript.cypher

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// External Typescript module usage distribution for internal modules
22

33
MATCH (internalModule:TS:Module)-[:EXPORTS]->(internalElement:TS)
4+
WHERE NOT internalModule:TestRelated
45
WITH internalModule.name AS internalModuleName
56
,count(DISTINCT internalElement.globalFqn) AS numberOfAllInternalElements
67
,collect(DISTINCT internalElement) AS internalElementList

cypher/External_Dependencies/External_module_usage_per_internal_module_sorted_for_Typescript.cypher

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// External Typescript module usage per internal module sorted by external usage descending
22

33
MATCH (internalModule:TS:Module)-[:EXPORTS]->(internalElement:TS)
4+
WHERE NOT internalModule:TestRelated
45
OPTIONAL MATCH (internalElement)-[:DEPENDS_ON]->(externalDeclaration:ExternalDeclaration)
56
WHERE externalDeclaration.isExternalImport = true
67
OPTIONAL MATCH (externalModule:ExternalModule)-[:EXPORTS]->(externalDeclaration)

cypher/External_Dependencies/External_module_usage_spread_for_Typescript.cypher

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
// Get the overall internal modules statistics first
44
MATCH (internalModule:TS:Module)-[:EXPORTS]->(internalElement:TS)
5+
WHERE NOT internalModule:TestRelated
56
WITH count(DISTINCT internalModule.globalFqn) AS internalModulesCountOverall
67
,count(DISTINCT internalElement.globalFqn) AS internalElementsCountOverall
78
,collect(DISTINCT internalElement) AS internalElementList

cypher/External_Dependencies/External_namespace_usage_overall_for_Typescript.cypher

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// External Typescript namespace usage overall
22

33
MATCH (internalModule:TS:Module)-[:EXPORTS]->(internalElement:TS)
4+
WHERE NOT internalModule:TestRelated
45
WITH count(DISTINCT internalElement.globalFqn) AS allInternalElements
56
,count(DISTINCT internalModule.globalFqn) AS allModules
67
,collect(DISTINCT internalElement) AS internalElementList

cypher/External_Dependencies/External_namespace_usage_per_internal_module_sorted_for_Typescript.cypher

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// External Typescript module usage per internal module sorted by external usage descending
22

33
MATCH (internalModule:TS:Module)-[:EXPORTS]->(internalElement:TS)
4+
WHERE NOT internalModule:TestRelated
45
OPTIONAL MATCH (internalElement)-[:DEPENDS_ON]->(externalDeclaration:ExternalDeclaration)
56
WHERE externalDeclaration.isExternalImport = true
67
OPTIONAL MATCH (externalModule:ExternalModule)-[:EXPORTS]->(externalDeclaration)

cypher/External_Dependencies/External_namespace_usage_spread_for_Typescript.cypher

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
// Get the overall internal modules statistics first
44
MATCH (internalModule:TS:Module)-[:EXPORTS]->(internalElement:TS)
5+
WHERE NOT internalModule:TestRelated
56
WITH count(DISTINCT internalModule.globalFqn) AS internalModulesCountOverall
67
,count(DISTINCT internalElement.globalFqn) AS internalElementsCountOverall
78
,collect(DISTINCT internalElement) AS internalElementList

0 commit comments

Comments
 (0)