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

Configure exhauststruct linter #92

Open
diyor28 opened this issue Jan 15, 2025 · 1 comment
Open

Configure exhauststruct linter #92

diyor28 opened this issue Jan 15, 2025 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@diyor28
Copy link
Contributor

diyor28 commented Jan 15, 2025

golangci-lint is a pile of shit, no other words. It's incredibly hard to configure really simple rules.

I basically need exhauststruct linter to run on:

  • modules/*/domain/entities
  • modules/*/domain/aggregates

And in modules/files where any sort of mapping from domain to other structs happens. For ex.:

  • modules/*/infrastracture/persistence/*_mappers.go
  • modules/*/presentation/mappers/*.go
@diyor28 diyor28 added enhancement New feature or request help wanted Extra attention is needed labels Jan 15, 2025
@diyor28 diyor28 added this to SDK core Jan 15, 2025
@diyor28
Copy link
Contributor Author

diyor28 commented Jan 15, 2025

Anyone who knows the quirks of golangci-lint better than I do, please help! And some time in the future we might just write our own linter.

@diyor28 diyor28 changed the title Properly configure exhauststruct exclude/include rules Configure exhauststruct linter Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
Status: No status
Development

No branches or pull requests

1 participant