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

fix(lint): golangci-lint to test multiple modules #596

Merged
merged 1 commit into from
Aug 28, 2023

Conversation

chrisgacsal
Copy link
Contributor

Description

The golangci-lint does not support monorepo type of projects with multiple Go packages which means that currently only the root package is tested.
This change finds all the Golang packages in the repository and runs golangci-lint for each of them.

Type of Change

[ ] Bug Fix
[ ] New Feature
[ ] Breaking Change
[ ] Refactor
[ ] Documentation
[x] Other (please describe)

Checklist

  • I have read the contributing guidelines
  • Existing issues have been referenced (where applicable)
  • I have verified this change is not present in other open pull requests
  • Functionality is documented
  • All code style checks pass
  • New code contribution is covered by automated tests
  • All new and existing tests pass

Makefile Outdated Show resolved Hide resolved
Makefile Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
@chrisgacsal chrisgacsal force-pushed the fix-golangci-for-multi-modules branch 3 times, most recently from b8ebdcf to 18ef8e1 Compare August 24, 2023 09:40
@adamtagscherer adamtagscherer self-requested a review August 25, 2023 09:53
@chrisgacsal chrisgacsal force-pushed the fix-golangci-for-multi-modules branch from 18ef8e1 to a006e44 Compare August 25, 2023 10:01
@chrisgacsal chrisgacsal requested review from Tehsmash and removed request for Tehsmash August 25, 2023 14:32
The `golangci-lint` does not support monorepo type of projects which
means only the root package is tested.
This change finds all the Golang packages in the repository and runs
`golangci-lint` for each of them.
@chrisgacsal chrisgacsal force-pushed the fix-golangci-for-multi-modules branch from a006e44 to d12e065 Compare August 28, 2023 12:53
@chrisgacsal chrisgacsal added this pull request to the merge queue Aug 28, 2023
Merged via the queue into main with commit dedd316 Aug 28, 2023
8 checks passed
@chrisgacsal chrisgacsal deleted the fix-golangci-for-multi-modules branch August 28, 2023 15:20
@chrisgacsal chrisgacsal mentioned this pull request Nov 6, 2023
7 tasks
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.

None yet

3 participants