Skip to content

Commit 04628ec

Browse files
committed
Support .tofu files in HcpParser
1 parent 21eeb7a commit 04628ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rewrite-hcl/src/main/java/org/openrewrite/hcl/HclParser.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ public Stream<SourceFile> parseInputs(Iterable<Input> sourceFiles, @Nullable Pat
8383
public boolean accept(Path path) {
8484
return path.toString().endsWith(".hcl") ||
8585
path.toString().endsWith(".tf") ||
86-
path.toString().endsWith(".tfvars");
86+
path.toString().endsWith(".tfvars") ||
87+
path.toString().endsWith(".tofu");
8788
}
8889

8990
@Override

0 commit comments

Comments
 (0)