Using a folder as a path is a very common scenario in various linters (as this avoids having to manually input multiple files). I noticed that in the current cmd/main.go file, there is no support for using a folder as a parameter. Although it is possible to check multiple files by running thriftchecker a.thrift b.thrift, this can still be cumbersome, especially when there are many Thrift files to check.
Perhaps adding a recursive traversal method could be a good way to solve this issue.
Since I am not sure about the various use cases for this project, I open an issue to discuss this further with the author.
Using a folder as a path is a very common scenario in various linters (as this avoids having to manually input multiple files). I noticed that in the current
cmd/main.go
file, there is no support for using a folder as a parameter. Although it is possible to check multiple files by runningthriftchecker a.thrift b.thrift
, this can still be cumbersome, especially when there are many Thrift files to check.Perhaps adding a recursive traversal method could be a good way to solve this issue.
Since I am not sure about the various use cases for this project, I open an issue to discuss this further with the author.