Skip to content

Commit

Permalink
BL-1142
Browse files Browse the repository at this point in the history
  • Loading branch information
bdw429s committed Feb 28, 2025
1 parent 66fb410 commit e36e6ea
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/main/java/ortus/boxlang/compiler/FeatureAudit.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@
package ortus.boxlang.compiler;

import java.io.IOException;
import java.nio.file.FileVisitOption;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

import ortus.boxlang.compiler.ast.visitor.FeatureAuditVisitor;
import ortus.boxlang.compiler.parser.Parser;
Expand All @@ -41,10 +43,10 @@ public static void main( String[] args ) {
BoxRuntime runtime = BoxRuntime.getInstance();
// This must be run after the runtime is loaded, but before we parse any files.
FeatureAuditVisitor.setupRuntimeStubs();
Map<String, List<FeatureAuditVisitor.FeatureUsed>> results = new HashMap<>();
Map<String, List<FeatureAuditVisitor.AggregateFeatureUsed>> aggregateResults = new HashMap<>();
Map<String, List<FeatureAuditVisitor.FeatureUsed>> results = new ConcurrentHashMap<>();
Map<String, List<FeatureAuditVisitor.AggregateFeatureUsed>> aggregateResults = new ConcurrentHashMap<>();
StringBuffer reportText = new StringBuffer();
Map<String, Integer> filesProcessed = new HashMap<>();
Map<String, Integer> filesProcessed = new ConcurrentHashMap<>();

try {
String source = ".";
Expand Down Expand Up @@ -128,7 +130,7 @@ public static void main( String[] args ) {
System.out.println();
try {
final Path finalSourcePath = sourcePath;
Files.walk( finalSourcePath )
Files.walk( finalSourcePath, FileVisitOption.FOLLOW_LINKS )
.parallel()
.filter( Files::isRegularFile )
.forEach( path -> {
Expand Down

0 comments on commit e36e6ea

Please # to comment.