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

ruff: force exclude honoring in check mode too (#172)

Fixes #170

bb21dd2514c93876baec441cc47a48dbaacac6bf authored 9 months ago by Alex Eagle <[email protected]>
Revert "Use multirun (#160)" (#171)

* Revert "Use multirun (#160)"

This reverts commit 6df95c60bac5057e0ef0fc2eabcf33e46b5b3e06.
...

1fbcfee669b0b546071a85fb48e927dc3fe33662 authored 9 months ago by Alex Eagle <[email protected]>
fix: guard lookups into DEFAULT_TOOL_LABELS (#168)

d77295ef8ee731dad6f1b8b7121be7a4c4578edd authored 9 months ago by Alex Eagle <[email protected]>
Lint prefix (#158)

* refactor: prefix public API symbols with lint_

* chore: docgen

452edf8511576077d7a5e7dcb0e8799a108b47d5 authored 10 months ago by Alex Eagle <[email protected]>
chore: mirror external releases (#166)

d3678a668d2f5d2a0b9c1787e9203a478b9753a3 authored 10 months ago by github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
refactor: use an explicit flag rather than attr_attribute (#164)

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]>
Use multirun (#160)

* refactor: use rules_multirun rather than implement our own

* Update .gitignore

* fix: sy...

6df95c60bac5057e0ef0fc2eabcf33e46b5b3e06 authored 10 months ago by Alex Eagle <[email protected]>
feat: use rules_multitool (#161)

* 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]>
chore: mirror external releases (#163)

Co-authored-by: alexeagle <[email protected]>

114cf0ff757c70b1565ee0baf755b952da7a64ac authored 10 months ago by github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
chore: mirror external releases (#162)

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 (#159)

* 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]>
refactor: remove Vale workaround for StylesPath (#148)

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 (#153)

* feat: add yamlfmt for YAML

Fixes #152

* chore: green up

f1254ed588ffdfe23cc299ca9a02e84dd01caa0d authored 10 months ago by Alex Eagle <[email protected]>
chore: cleanup maybe patterns (#139)

a9d300ff881c5274319720a46917459e012c321a authored 10 months ago by Greg Magolan <[email protected]>
chore: mirror external releases (#147)

Co-authored-by: alexeagle <[email protected]>

e2fecbbbb0e5293e4826c709cc6e454909f0481c authored 10 months ago by github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
fix: pass flag to shfmt to ignore passed files (#146)

Fixes #80

3557a7007f9818eb6f4aa3f725e28851d29728c7 authored 10 months ago by Alex Eagle <[email protected]>
collapse common logic into run-format formula (#119)

step on the road to parallelizing the formatters

e9b90bd33140191a63b93e401fbb614d65ca767b authored 10 months ago by peter woodman <[email protected]>
docs(golangci-lint): fix the target name (#144)

This is what the example setup uses, and it's what I had to use to
get this to work in our work...

b64ba770e2bbd23098e7fc59be619d54a89ff888 authored 11 months ago by Sean R. Abraham <[email protected]>
Vale (#103)

* chore: add vale binary

* chore: start the vale aspect

* chore: workaround how vale locat...

0de7861f4975366dfc0014ba24f15f3c5e057efe authored 11 months ago by Alex Eagle <[email protected]>
fix(eslint): switch to compact report (#140)

The 'stylish' report is kinda hard to maintain a fork of it.
I broke the errorformat parser by ...

ebe8678587abb1f9104abbfc6ca2ee1a8579b4aa authored 11 months ago by Alex Eagle <[email protected]>
fix(HCL): back out from formatting all HCL files (#143)

* 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]>
format: fix exit code of check when using clang-format (#133)

clang-format violations are treated as warnings, so the exit code is 0
unless Werror is specified.

ee4a30d870bd4606ad015572c83601b39f77da12 authored 11 months ago by Thomas Gibson-Robinson <[email protected]>
chore: mirror external releases (#135)

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 (#138)

* 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]>
chore: remove Go

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]>
chore: mirror external releases

d3b8dcf51ff9fd31757ea9d609a1bd0d761c1c33 authored 11 months ago by alexeagle <[email protected]>
golangci-lint: Handle the case when there are no direct sources for e.g. a go_binary

e62a8c18dce9df6c6a0257ec6e3765f84c3d7bbd authored 11 months ago by Jelmer Vernooij <[email protected]>
chore: BCR testing on Bazel 6 and 7 (#125)

Merge https://github.com/bazel-contrib/rules-template/pull/105

80ca8a8a077e212edac471747e45f17f5f5af41f authored 11 months ago by Alex Eagle <[email protected]>
Update README.md

Hint that only one formatter can be chosen per language

ab4bbe09289b2fab8f2ea993d61ba733d024d414 authored 11 months ago by Alex Eagle <[email protected]>
Add gofumpt as an alternative go formatter

gofumpt is a popular alternative formatter for Go that is compatible
with gofmt but stricter.

b2b8c34aba3e690d341157a5901a7f0518ced608 authored 11 months ago by Jelmer Vernooij <[email protected]>
chore: update test now that #122 is fixed

e1d6a2d68e8f9d052aabcc9d2ebbe49ebfaa73b8 authored 11 months ago by Alex Eagle <[email protected]>
fix filename pattern matching

git ls-files seems to match against filename strings exactly, and
doesn't use the same logic as ...

00890aa427f5fd692fc92b1cc8c8109506913b9d authored 11 months ago by peter woodman <[email protected]>
ci: add test coverage for format binary (#126)

* 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]>
golangci-lint: Capture results from stdout rather than stderr (#116)

Without this, errors don't end up in the report file and are thus only
displayed on the first run.

5760fcb651dbee5f5cfe3cabdda98c6530c2c538 authored 11 months ago by Jelmer Vernooij <[email protected]>
Update README.md (#115)

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]>
fix: escape hatch from is_source filtering (#110)

e8b525e3b3622c6cff8ebe4385e7e7c80752ac83 authored 11 months ago by Alex Eagle <[email protected]>
Update README.md (#111)

List supported tools earlier

a1ade5b224cfa48bda5e7237140e66fa0a73de57 authored 11 months ago by Alex Eagle <[email protected]>
Update formatting.md (#109)

01e45d4b1c5e88ac75d0a62e92f712ff2fe48828 authored 11 months ago by Alex Eagle <[email protected]>
chore: mirror external releases (#108)

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 (#105)

* 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]>
chore: pre-commit run --all-files (#106)

d7d73048e4eca8d91d1d42fc85bb8498d9898a9f authored 11 months ago by Alex Eagle <[email protected]>
feat: show screenie of lint on Aspect Workflows (#104)

1752900bc093fa7d37bb602fce5e6f3ce8a5dd8c authored 11 months ago by Alex Eagle <[email protected]>
Fix macos (#102)

* 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++ (#101)

* 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]>
chore: mirror external releases (#100)

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 (#95)

* 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 (#98)

* 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 (#99)

* 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]>
fix: filter out generated files from linting (#96)

Fixes #90

da334e4ee17415137ada7b8973b1d0d35c9bca23 authored 12 months ago by Alex Eagle <[email protected]>
fix: increase lower-bound of rules_js (#94)

This release stops using symbols that were removed in bazel-lib 2.0

7f3da2ddd809213ebed6f667111e18fd1b54a3ba authored 12 months ago by Alex Eagle <[email protected]>
Add windows support for ruff (#91)

ddd884ba54878928bb1db93b7485feef496b3fdc authored 12 months ago by Laurence Tews <[email protected]>
chore: mirror external releases (#92)

Co-authored-by: alexeagle <[email protected]>

501e4c5a1e61a1af586ef76f77430556ca2bbf2d authored 12 months ago by github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Add ruff aspect to py_test (#93)

Test files aren't being linted with the previous approach.

f241516fe8decbce76c3a55f242fd4c9ad94e4de authored 12 months ago by Paul Salaberria <[email protected]>
feat: generate a patch file with linter fixes (#62)

* Patch stuff

* chore: reduce delta

* refactor: separate action factory for --fix

* tem...

31abe826d0a5c2d1c2f68e145103a8e18480b505 authored 12 months ago by David Zbarsky <[email protected]>
fix: make Markdown a separate 'language'

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 and include untracked ones from format (#89)

* 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]>
chore: mirror external releases (#87)

Co-authored-by: alexeagle <[email protected]>

16aebff3d4580134e915e6ea65609d0e50248b25 authored 12 months ago by github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
chore: explain why we don't add mypy here (#85)

944f143fd1dd247ad2e11d3942b969b9b9b6208b authored about 1 year ago by Alex Eagle <[email protected]>
Fix ruff (#84)

* 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]>
chore: mirror external releases (#83)

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 (#76)

* 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]>
fix: declare copy_to_bin toolchains for bazel-lib 2.0 compat (#75)

94acce455d3b49ec998f37917af3785bab6e87a8 authored about 1 year ago by Alex Eagle <[email protected]>
Give up on upstream (#73)

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 (#72)

* 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]>
chore: change maintainer to individual rather than team. (#71)

I saw us making this change in other repos so it should be consistent.
Maybe it also explains w...

478476017a468aa9e8c34600587899c3a007595e authored about 1 year ago by Alex Eagle <[email protected]>
refactor: reduce duplication in formatter lang:tool mapping (#68)

* 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 (#70)

* 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 eslint on js_binary, it has no srcs (#65)

* fix: don't error for js_binary w no srcs

* Update eslint.bzl

6fb7745461a2f037b288208c074daada2b1b2ab6 authored about 1 year ago by Alex Eagle <[email protected]>
chore: mirror external releases (#69)

Co-authored-by: alexeagle <[email protected]>

d50518fb5d772adb87f7088bb179ed1f61d47b95 authored about 1 year ago by github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
chore: workaround Bazel extract bug (#66)

Fixes #42

564abfec7e76e44019ddd664a1f2869ca7cb92fb authored about 1 year ago by Alex Eagle <[email protected]>
chore: wire up protobuf formatter (#67)

Fixes #17

9e193982f209eff2ae2234a0528ed953a08117f5 authored about 1 year ago by Alex Eagle <[email protected]>
feat: no longer experimental

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]>
ci: add integration testing (#64)

d4f456e5bf67a569e55f648d8c1c6b0c071a85b0 authored about 1 year ago by Alex Eagle <[email protected]>
fix: in use_exit_code mode, print reports to stdio (#63)

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 (#61)

* 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 (#60)

* 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]>
feat: split javascript and sql formatter options (#59)

a38ec1d38aa1405c244b3588189d4ee76ea5d9be authored about 1 year ago by Eric Hauser <[email protected]>
chore: mirror external releases (#56)

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 (#51)

* 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]>
chore: mirror external releases (#50)

Co-authored-by: alexeagle <[email protected]>

09cf5b5970efaf2fd8700e5f01cc2858119317eb authored about 1 year ago by github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
fix: add missing buildifier step

51ba3231ff62a5580147564a336b2c1fc68988cf authored about 1 year ago by Alex Eagle <[email protected]>
fix: let create-pull-request determine the branch name

399337cb6476e646f3e68e09aee3d110c5c30b9b authored about 1 year ago by Alex Eagle <[email protected]>
fix: use create-pull-request action

It knows to create a commit first, which the gh CLI doesn't

96cf325792f5ae5fdd3766140c207a35404ab0a2 authored about 1 year ago by Alex Eagle <[email protected]>
chore: add scalafmt back again (#47)

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 (#49)

* 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]>
fix: template the fix target string in failure error message (#48)

3fc81447e7754e53688e63d2d28114323b3f1af0 authored about 1 year ago by Matt Mackay <[email protected]>
fix: allow multiple lint_test targets in the same package (#44)

a4b85d7677adec43461a2460ca1c17ebcdf24da7 authored about 1 year ago by Alex Eagle <[email protected]>
chore: fix bcr publishing (#43)

We can't exclude examples because that's the bcr test module.

6d9e10b8a6b6858f3079af637bce1a2ae0af9d7a authored about 1 year ago by Alex Eagle <[email protected]>
feat: check srcs of *_binary targets in lint aspect walks (#41)

These commonly contain an entry point or "main" which should be linted,
but not contained in an...

29b7213e3506711bce97628f50cd84744e48cdd4 authored about 1 year ago by Alex Eagle <[email protected]>
docs: recommend check-mode for fallback pre-commit hook (#39)

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]>
Reference latest aspect CLI version from .bazeliskrc (#36)

`aspect/5.7.2` didn't include the `lint` command and `bazel lint src:all` fails with

```
Err...

96c158cafa440f9265b1099c93b3c81d4924f8e0 authored about 1 year ago by Peter Lobsinger <[email protected]>
[fix] make lint tools visible to all subpackages of example repo (#38)

If the linter binaries aren't visible to targets under `src/`, linting fails with

```
❯ baze...

66159a07b25afb34c50fd7adf6ee07726fee29fb authored about 1 year ago by Peter Lobsinger <[email protected]>
[fix] allow ruff binary to be a source file (#37)

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 (#34)

* Replace prettier-plugin-sh with shfmt

* Update BUILD

---------

Co-authored-by: Alex E...

699cd2c9719bfb3bfc3a9f8c6a7006f0a058c067 authored about 1 year ago by Morten Mjelva <[email protected]>
fix: include tool mnemonic in report filenames (#35)

Allows running multiple linters on the same target.

d230f1ebbee34212ce6d5576f0a16e2194c3c4f2 authored about 1 year ago by Alex Eagle <[email protected]>
Replace Black with Ruff as the Python formatter (#33)

e4cfbf4f8c8a3800aa01a84f277fda52b0cde9f7 authored about 1 year ago by Morten Mjelva <[email protected]>
feat: add shellcheck (#32)

ddf1bcc71d691e1d34c44fcb218aa68e723ce3d1 authored about 1 year ago by Alex Eagle <[email protected]>
Add lint aspect for Ruff (#16)

964d0e2d825c73b2b042e28420b7288e97925305 authored about 1 year ago by Tobias Kongsvik <[email protected]>
chore: fix eslint absolute paths (#31)

baf6ce38a0247814413d23745390d109ffcdd40c authored about 1 year ago by Alex Eagle <[email protected]>
chore: exclude example from release artifact (#30)

60d712b0d5d87199a361c8ca48fa3463582a952b authored about 1 year ago by Alex Eagle <[email protected]>