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 all Go modules #1554

Merged
merged 1 commit into from
Feb 15, 2024
Merged

Lint all Go modules #1554

merged 1 commit into from
Feb 15, 2024

Conversation

skitt
Copy link
Member

@skitt skitt commented Feb 9, 2024

In projects with multiple modules, Shipyard's linting rule ends up ignoring all but the main module. To find all modules which need to be analysed, this looks for directories containing a file named go.mod and *.go files declaring functions.

Depends on submariner-io/lighthouse#1505

@skitt skitt added the lint-projects Lint consuming projects label Feb 9, 2024
@submariner-bot
Copy link

🤖 Created branch: z_pr1554/skitt/lint-submodules

In projects with multiple modules, Shipyard's linting rule ends up
ignoring all but the main module. To find all modules which need to be
analysed, this looks for directories containing a file named go.mod
and *.go files declaring functions. Running golangci-lint on multiple
modules now requires a workspace covering the modules, so this is set
up before the linter invocation.

Signed-off-by: Stephen Kitt <[email protected]>
Copy link

This PR/issue depends on:

@skitt skitt merged commit 5d4565c into submariner-io:devel Feb 15, 2024
50 checks passed
@submariner-bot
Copy link

🤖 Closed branches: [z_pr1554/skitt/lint-submodules]

@skitt skitt deleted the lint-submodules branch February 15, 2024 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lint-projects Lint consuming projects
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants