Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/aspect-build/rules_lint
Run static analysis tools with Bazel
https://github.com/aspect-build/rules_lint
Fixes #170
bb21dd2514c93876baec441cc47a48dbaacac6bf authored 9 months ago by Alex Eagle <[email protected]>* Revert "Use multirun (#160)"
This reverts commit 6df95c60bac5057e0ef0fc2eabcf33e46b5b3e06.
...
d77295ef8ee731dad6f1b8b7121be7a4c4578edd authored 10 months ago by Alex Eagle <[email protected]>
* refactor: prefix public API symbols with lint_
* chore: docgen
452edf8511576077d7a5e7dcb0e8799a108b47d5 authored 10 months ago by Alex Eagle <[email protected]>d3678a668d2f5d2a0b9c1787e9203a478b9753a3 authored 10 months ago by github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
The latter is a global namespace, and also leaked into a test where it shouldn't have been needed
3b9b294a8f0595357c2b1fa3cf656c786a54c4b6 authored 10 months ago by Alex Eagle <[email protected]>* refactor: use rules_multirun rather than implement our own
* Update .gitignore
* fix: sy...
6df95c60bac5057e0ef0fc2eabcf33e46b5b3e06 authored 10 months ago by Alex Eagle <[email protected]>* refactor: use rules_multitool to give defaults for formatter tools
So far this just replace...
90a71ad9336195fd944e0103fb051308f1a1e030 authored 10 months ago by Alex Eagle <[email protected]>Co-authored-by: alexeagle <[email protected]>
114cf0ff757c70b1565ee0baf755b952da7a64ac authored 10 months ago by github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>Co-authored-by: alexeagle <[email protected]>
c22174195342e4d4f87b258edb4b22a2574a6427 authored 10 months ago by github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>* refactor: break up tools/ into tools/format and tools/lint
Suggested during API review, as ...
a9def3378c8ddefe46eba660734b6eb3037e8eb9 authored 10 months ago by Alex Eagle <[email protected]>Thanks @jdkato for the fix in https://github.com/errata-ai/vale/commit/2139c4176a4d2e62d7dfb95dc...
52f1f5159f6bdc5721c8d631c1e192f3aa7c49a6 authored 10 months ago by Alex Eagle <[email protected]>* feat: add yamlfmt for YAML
Fixes #152
* chore: green up
f1254ed588ffdfe23cc299ca9a02e84dd01caa0d authored 10 months ago by Alex Eagle <[email protected]>a9d300ff881c5274319720a46917459e012c321a authored 10 months ago by Greg Magolan <[email protected]>
Co-authored-by: alexeagle <[email protected]>
e2fecbbbb0e5293e4826c709cc6e454909f0481c authored 10 months ago by github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>Fixes #80
3557a7007f9818eb6f4aa3f725e28851d29728c7 authored 10 months ago by Alex Eagle <[email protected]>step on the road to parallelizing the formatters
e9b90bd33140191a63b93e401fbb614d65ca767b authored 10 months ago by peter woodman <[email protected]>
This is what the example setup uses, and it's what I had to use to
get this to work in our work...
* chore: add vale binary
* chore: start the vale aspect
* chore: workaround how vale locat...
0de7861f4975366dfc0014ba24f15f3c5e057efe authored 11 months ago by Alex Eagle <[email protected]>
The 'stylish' report is kinda hard to maintain a fork of it.
I broke the errorformat parser by ...
* fix(HCL): back out from formatting all HCL files
The tool we are using (terraform fmt) does...
d34b229307d23ebc93b8008eed0e0c1cd974d487 authored 11 months ago by Alex Eagle <[email protected]>
clang-format violations are treated as warnings, so the exit code is 0
unless Werror is specified.
Co-authored-by: alexeagle <[email protected]>
a18c57d70ff0f30d03695ef67ca51038e6cd5c12 authored 11 months ago by github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>* fix undocumented dependency on aspect_bazel_lib for WORKSPACE users
I noticed that the inst...
e46cddf569848f588a7af0dee72fb6a8195c11b7 authored 11 months ago by Matt Brown <[email protected]>We don't have any Go sources in rules_lint so there's no reason we should install a Go toolchain...
c58b3a13077edd271841541d2b99b82e7bfc1753 authored 11 months ago by Alex Eagle <[email protected]>d3b8dcf51ff9fd31757ea9d609a1bd0d761c1c33 authored 11 months ago by alexeagle <[email protected]>
e62a8c18dce9df6c6a0257ec6e3765f84c3d7bbd authored 11 months ago by Jelmer Vernooij <[email protected]>
Merge https://github.com/bazel-contrib/rules-template/pull/105
80ca8a8a077e212edac471747e45f17f5f5af41f authored 11 months ago by Alex Eagle <[email protected]>Hint that only one formatter can be chosen per language
ab4bbe09289b2fab8f2ea993d61ba733d024d414 authored 11 months ago by Alex Eagle <[email protected]>
gofumpt is a popular alternative formatter for Go that is compatible
with gofmt but stricter.
e1d6a2d68e8f9d052aabcc9d2ebbe49ebfaa73b8 authored 11 months ago by Alex Eagle <[email protected]>
git ls-files seems to match against filename strings exactly, and
doesn't use the same logic as ...
* ci: add test coverage for format binary
This is a beginning, if the pattern works I'll appl...
15fcab98e1fef4eb2c227df759e4848e06d412a2 authored 11 months ago by Alex Eagle <[email protected]>
Without this, errors don't end up in the report file and are thus only
displayed on the first run.
These "example commits" aren't up-to-date with what's in the repo, and it's not feasible to keep...
6a32c67a54e900f2fa6fcb45b7e702142e062c4a authored 11 months ago by Alex Eagle <[email protected]>e8b525e3b3622c6cff8ebe4385e7e7c80752ac83 authored 11 months ago by Alex Eagle <[email protected]>
List supported tools earlier
a1ade5b224cfa48bda5e7237140e66fa0a73de57 authored 11 months ago by Alex Eagle <[email protected]>01e45d4b1c5e88ac75d0a62e92f712ff2fe48828 authored 11 months ago by Alex Eagle <[email protected]>
Co-authored-by: alexeagle <[email protected]>
e56c0d81dddfea23e4ea619eb1b9cd4d4997bde1 authored 11 months ago by github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>* refactor: overhaul of format.sh
Use GitHub Linguist to define the file extensions for each ...
175da17bd060a23aa96f4e0a1da0a13af6e1b84f authored 11 months ago by Alex Eagle <[email protected]>d7d73048e4eca8d91d1d42fc85bb8498d9898a9f authored 11 months ago by Alex Eagle <[email protected]>
1752900bc093fa7d37bb602fce5e6f3ce8a5dd8c authored 11 months ago by Alex Eagle <[email protected]>
* chore: upgrade to Bazel 7
* chore: choose earlier llvm
The latest doesn't appear to be s...
bfd534408f2e78197af9252634b03028a44809c7 authored 11 months ago by Alex Eagle <[email protected]>* feat: Add clang-format for formatting C/C++
* Update docs
* Add llvm_toolchain to WORKSP...
09efa00b61cfd4abd8457add747ad43efa8bd862 authored 11 months ago by James Sharpe <[email protected]>Co-authored-by: alexeagle <[email protected]>
a8666d5608e22689dc323c2ff1c8f9856951f2a2 authored 11 months ago by github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>* Add golangci-lint as an aspect
* Update .golangci.yaml
Paste documentation about the "do...
260ee0f27ad2533ff7d7be43463799f381729104 authored 12 months ago by Paul Salaberria <[email protected]>* Enable shellcheck aspect for sh_binary
* Update shellcheck.bzl
* Update shellcheck.bzl
2b7f46f99d1881c64db7c727af6734856394f9b2 authored 12 months ago by Paul Salaberria <[email protected]>* fix(formatter): markdown needs a distinct tool entry
Otherwise it overloads the one for Jav...
18ca19086309ef587ab22dde09db3135cb79f7d0 authored 12 months ago by Alex Eagle <[email protected]>Fixes #90
da334e4ee17415137ada7b8973b1d0d35c9bca23 authored 12 months ago by Alex Eagle <[email protected]>This release stops using symbols that were removed in bazel-lib 2.0
7f3da2ddd809213ebed6f667111e18fd1b54a3ba authored 12 months ago by Alex Eagle <[email protected]>ddd884ba54878928bb1db93b7485feef496b3fdc authored 12 months ago by Laurence Tews <[email protected]>
Co-authored-by: alexeagle <[email protected]>
501e4c5a1e61a1af586ef76f77430556ca2bbf2d authored 12 months ago by github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>Test files aren't being linted with the previous approach.
f241516fe8decbce76c3a55f242fd4c9ad94e4de authored 12 months ago by Paul Salaberria <[email protected]>* Patch stuff
* chore: reduce delta
* refactor: separate action factory for --fix
* tem...
31abe826d0a5c2d1c2f68e145103a8e18480b505 authored 12 months ago by David Zbarsky <[email protected]>It's pretty confusing that it's lumped under 'JavaScript' currently.
Fixes #81
6ea66fb4c7b653f8e061d0997bfb74f965609835 authored 12 months ago by Alex Eagle <[email protected]>* Exclude deleted files from format
Fixes https://github.com/aspect-build/rules_lint/issues/8...
e405518c6fcdbdea8974c198d9064fbe169156ab authored 12 months ago by Paul Salaberria <[email protected]>Co-authored-by: alexeagle <[email protected]>
16aebff3d4580134e915e6ea65609d0e50248b25 authored 12 months ago by github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>944f143fd1dd247ad2e11d3942b969b9b9b6208b authored about 1 year ago by Alex Eagle <[email protected]>
* fix: main is red because ruff was mirrored incorrectly
* fix: account for ruff assets namin...
e047f6af11773662518d10b1df58feee0039cead authored about 1 year ago by Alex Eagle <[email protected]>Co-authored-by: alexeagle <[email protected]>
75a21a4b723fc189d612fba9efc83fac24341f3b authored about 1 year ago by github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>* docs: explain which production of ts_project to lint
Fixes #74
* fix: typings not typech...
b877bab7388a906769dbb64e85f3e77aa7588a5e authored about 1 year ago by Alex Eagle <[email protected]>94acce455d3b49ec998f37917af3785bab6e87a8 authored about 1 year ago by Alex Eagle <[email protected]>
I don't have time to change rules_swift and plan to close this issue upstream.
09a3c9531bf0abd2a27977d70c66a48a01db7a9c authored about 1 year ago by Alex Eagle <[email protected]>* feat: allow multiple eslint configs in one aspect definition
Equivalent of #60 which did th...
270a3ea55ba4ee75f8fe15636c053c1cc7941e41 authored about 1 year ago by Alex Eagle <[email protected]>
I saw us making this change in other repos so it should be consistent.
Maybe it also explains w...
* refactor: reduce duplication in formatter lang:tool mapping
* chore: docgen
0f7a52e53cc9caea63e1c63d94b68ba7368ba8a2 authored about 1 year ago by Alex Eagle <[email protected]>* fix: Respect exclude when formatting with ruff
As per discussion here: https://github.com/a...
f7cbe4d8e5d58e6b1038b12d27fd150f6dfc9fc9 authored about 1 year ago by James Sharpe <[email protected]>* fix: don't error for js_binary w no srcs
* Update eslint.bzl
6fb7745461a2f037b288208c074daada2b1b2ab6 authored about 1 year ago by Alex Eagle <[email protected]>Co-authored-by: alexeagle <[email protected]>
d50518fb5d772adb87f7088bb179ed1f61d47b95 authored about 1 year ago by github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>Fixes #42
564abfec7e76e44019ddd664a1f2869ca7cb92fb authored about 1 year ago by Alex Eagle <[email protected]>Fixes #17
9e193982f209eff2ae2234a0528ed953a08117f5 authored about 1 year ago by Alex Eagle <[email protected]>We're using this as part of Aspect Workflows so we plan to stick with it.
214c8e8ace4be59906f42eb5f44700cd00d35f45 authored about 1 year ago by Alex Eagle <[email protected]>d4f456e5bf67a569e55f648d8c1c6b0c071a85b0 authored about 1 year ago by Alex Eagle <[email protected]>
Previously we always directed the tools output into a report file, but when you ask for the exit...
918fab8a89f0a211470f21972cf5e5bc35321263 authored about 1 year ago by Alex Eagle <[email protected]>* fix: only present reports from the current bazel run
Thanks to @mortenmj for providing the ...
8ef674a1251b11a402728bdace2f6e109493d9c0 authored about 1 year ago by Alex Eagle <[email protected]>* feat: allow multiple ruff config files
As documented at https://docs.astral.sh/ruff/configu...
e822681b9a6b8ce8e9cc8d0cd844cc73860b583c authored about 1 year ago by Alex Eagle <[email protected]>a38ec1d38aa1405c244b3588189d4ee76ea5d9be authored about 1 year ago by Eric Hauser <[email protected]>
68232392b69f9911863fc041ce8b9756770e6555 authored about 1 year ago by github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* style: recommend format as an alias in root BUILD
* docs: code review comment
* docs: co...
07d83f656942d49364d463a2a675dcbd40a5ea77 authored about 1 year ago by Alex Eagle <[email protected]>Co-authored-by: alexeagle <[email protected]>
09cf5b5970efaf2fd8700e5f01cc2858119317eb authored about 1 year ago by github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>51ba3231ff62a5580147564a336b2c1fc68988cf authored about 1 year ago by Alex Eagle <[email protected]>
399337cb6476e646f3e68e09aee3d110c5c30b9b authored about 1 year ago by Alex Eagle <[email protected]>
It knows to create a commit first, which the gh CLI doesn't
96cf325792f5ae5fdd3766140c207a35404ab0a2 authored about 1 year ago by Alex Eagle <[email protected]>Similar to https://github.com/aspect-build/bazel-super-formatter/pull/47/commits/a416c6b3744ce9f...
3867241494434f68498e7075cd93007043766325 authored about 1 year ago by Alex Eagle <[email protected]>* feat: auto-mirror ruff releases
If this pattern works well, I'll roll out to all our rulese...
1c3a823dc14c24a24c4c873dcbed9827b1419e4c authored about 1 year ago by Alex Eagle <[email protected]>3fc81447e7754e53688e63d2d28114323b3f1af0 authored about 1 year ago by Matt Mackay <[email protected]>
a4b85d7677adec43461a2460ca1c17ebcdf24da7 authored about 1 year ago by Alex Eagle <[email protected]>
We can't exclude examples because that's the bcr test module.
6d9e10b8a6b6858f3079af637bce1a2ae0af9d7a authored about 1 year ago by Alex Eagle <[email protected]>
These commonly contain an entry point or "main" which should be linted,
but not contained in an...
As fix-mode does not return a non-zero status, it will not block submission when it detects form...
dee0dd00f86c283450bb8b58020b8b8646014d2a authored about 1 year ago by Peter Lobsinger <[email protected]>`aspect/5.7.2` didn't include the `lint` command and `bazel lint src:all` fails with
```
Err...
If the linter binaries aren't visible to targets under `src/`, linting fails with
```
❯ baze...
The `example/` repo fails to lint because the `ruff` binary it provides is a source file.
``...
f8f316910af28bd6400235541a4c9801f8983060 authored about 1 year ago by Peter Lobsinger <[email protected]>* Replace prettier-plugin-sh with shfmt
* Update BUILD
---------
Co-authored-by: Alex E...
699cd2c9719bfb3bfc3a9f8c6a7006f0a058c067 authored about 1 year ago by Morten Mjelva <[email protected]>Allows running multiple linters on the same target.
d230f1ebbee34212ce6d5576f0a16e2194c3c4f2 authored about 1 year ago by Alex Eagle <[email protected]>e4cfbf4f8c8a3800aa01a84f277fda52b0cde9f7 authored about 1 year ago by Morten Mjelva <[email protected]>
ddf1bcc71d691e1d34c44fcb218aa68e723ce3d1 authored about 1 year ago by Alex Eagle <[email protected]>
964d0e2d825c73b2b042e28420b7288e97925305 authored about 1 year ago by Tobias Kongsvik <[email protected]>
baf6ce38a0247814413d23745390d109ffcdd40c authored about 1 year ago by Alex Eagle <[email protected]>
60d712b0d5d87199a361c8ca48fa3463582a952b authored about 1 year ago by Alex Eagle <[email protected]>