bazel-linting-system
bazel-linting-system copied to clipboard
Add "no-remote" annotations to avoid putting lint results in the remote-cache.
I don't think it'd cause any bugs, but I'm not sure remote-caching these linter actions is that useful.
Some formatters are fast (gofmt, clang); others are slow (scalafmt, prettier).
I've definitely seen <1000KLOC codebases that take multiple minutes to format.
Hey Paul, in the context of this "no-remote" issue, are you saying that for slow formatters it would be useful to remote-cache?
@thundergolfer I am.
In https://github.com/higherkindness/rules_scala we had a target that created formatted versions of source. Then a test target that compared there two, and a runnable target that applied it.
Fetching a something from cache can be faster than formatting it locally, depending on network/compute resources.
I think you're right. Thanks for adding this pushback.