Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lint.sh: read config for formatters; include gofmt #2056

Merged
merged 1 commit into from
Dec 30, 2024

Conversation

denik
Copy link
Contributor

@denik denik commented Dec 30, 2024

As suggested here: #2051 (comment)

@denik denik temporarily deployed to test-trigger-is December 30, 2024 17:40 — with GitHub Actions Inactive
Copy link

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/cli

Inputs:

  • PR number: 2056
  • Commit SHA: 204dee75e68d4a46572c68c2cd6b7ea2faf38832

Checks will be approved automatically on success.

Merged via the queue into main with commit 1ce20a2 Dec 30, 2024
9 checks passed
@denik denik deleted the denik/formatter-read-config branch December 30, 2024 18:45
denik added a commit that referenced this pull request Jan 2, 2025
Follow up to #2051 and #2056.

Running golangci-lint twice always is measurably slower (1.5s vs 2.5s).
denik added a commit that referenced this pull request Jan 2, 2025
Follow up to #2051 and #2056.

Running golangci-lint twice always is measurably slower (1.5s vs 2.5s),
so only run it twice in case it is necessary.
denik added a commit that referenced this pull request Jan 10, 2025
See Makefile for explanation on difference between 'make fmt' and 'make
lint'.

I also removed lint.sh. Original motivation was to use it in aider, but
it's not a good fit there, because aider passes filenames and it does
not work well with most golang linters which requires whole packages to
work.

Follow up to #2062, #2056, #2051.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants