Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor the lint action into a build script, temporarily update .cla…
…ng-format (openxla#183) Two changes in this PR: 1) Refactor the lint action to be a locally runnable bash script. This should give _more_ predictable results in terms of addressing CI failures. 2) Update `.clang-format` to use Google style in the short term. More on this rationale below. Background on all this is that my editor formatted a large chunk of a file which caused the lint action to fail remotely, and took me quite some time to roll back the individual formatting changes, since google styling appears to prefer the most common spacing of `Type* var` vs `Type *var` in a file as the proper formatting. This change will allow local qualification / fixing, as well as provide a stop-gap on editor formatting issues while #15 is discussed. While I agree that we should resolve #15, I think more discussion is required, and there is unnecessary friction in the current setup/CI of clang-format in the current repo that should be addressed. Happy to drive the formatting conversation in the near future, but think this should be in place in the short term. GH Actions run testing that it errors properly in CI: https://github.com/GleasonK/stablehlo/actions/runs/3106772722/jobs/5034066123 Closes openxla#75
- Loading branch information