test: run lint-check during CI, add forbidigo, cleanup linter exclusions #1181
No reviewers
Labels
No labels
FreeBSD
Kind/Breaking
Kind/Bug
Kind/Chore
Kind/DependencyUpdate
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
Windows
linux-powerpc64le
linux-riscv64
linux-s390x
run-end-to-end-tests
run-forgejo-tests
run-multi-platform-tests
No milestone
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
forgejo/runner!1181
Loading…
Reference in a new issue
No description provided.
Delete branch "mfenniak/forgejo-runner:test-linter-cleanup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
v12.0.0 had a
printlnstatement from debugging left in the release. Whoops.forbidigowasn't in enabled in golangci and golangci wasn't running in CI. Made a couple other cleanups at the same time.lint-checkduring CI, add forbidigo, cleanup linter exclusions58c3ba094b61d4c0a717mfenniak referenced this pull request2025-11-23 02:35:00 +00:00
--platformin container options #1182@ -72,85 +73,10 @@ linters:rules:- linters:- dupl- errcheckshould those be added again in a future pr? I'm not familiar with golint rules
those rules were copy/pasted from forgejo, it is a good cleanup 👍
This is an exclusion rule -- the more things removed here, the more are actually enabled. So, nope, not to be added again. 🙂
@mfenniak wrote in #1181 (comment):
It was, indirectly:
- run: make FORGEJO_URL=http://$FORGEJO_HOST_PORT testtest: lint-check fmt-checkI prefer lint-check to be called explicitly and early. 👍