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

Refactor/revive linter #594

Merged
merged 18 commits into from
Oct 30, 2024
Merged

Refactor/revive linter #594

merged 18 commits into from
Oct 30, 2024

Conversation

boecklim
Copy link
Collaborator

@boecklim boecklim commented Sep 19, 2024

Description of Changes

  • Added revive linter
  • Fixed issues highlighted by linter

Testing Procedure

  • I have added new unit tests
  • All tests pass locally
  • I have tested manually in my local environment

Checklist:

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have updated CHANGELOG.md with my changes

cmd/arc/services/api.go Outdated Show resolved Hide resolved
internal/blocktx/health_check_test.go Show resolved Hide resolved
internal/blocktx/processor_test.go Outdated Show resolved Hide resolved
internal/callbacker/callbacker.go Outdated Show resolved Hide resolved
internal/metamorph/store/store.go Show resolved Hide resolved
internal/validator/beef/beef_validator.go Show resolved Hide resolved
@kuba-4chain
Copy link
Collaborator

Overall, this linter seems very helpful, but I think we could configure it a bit, so it's more helpful than harmful for the development process in Arc codebase.

These are my suggestions of rules to disable:

  • unused-parameter
  • var-name
  • var-declaration
  • exported (this one can stay if we decide we want it)

.golangci.yml Outdated Show resolved Hide resolved
cmd/arc/services/blocktx.go Outdated Show resolved Hide resolved
examples/simple/main.go Outdated Show resolved Hide resolved
internal/blocktx/server.go Outdated Show resolved Hide resolved
pkg/keyset/key_set.go Outdated Show resolved Hide resolved
pkg/metamorph/client.go Outdated Show resolved Hide resolved
pkg/blocktx/client.go Outdated Show resolved Hide resolved
Copy link

sonarcloud bot commented Oct 30, 2024

@boecklim boecklim merged commit 0a54194 into main Oct 30, 2024
6 checks passed
@boecklim boecklim deleted the refactor/revive-linter branch October 30, 2024 16:41
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.

4 participants