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

feat: enable more lint rules #1376

Merged
merged 7 commits into from
Mar 18, 2024
Merged

feat: enable more lint rules #1376

merged 7 commits into from
Mar 18, 2024

Conversation

MuZhou233
Copy link
Contributor

@MuZhou233 MuZhou233 commented Mar 18, 2024

Part of #1373

This PR changes few code logic. But no changes on functions' signature.

  • Enable stylecheck revive cyclop funlen gocyclo nestif lint rules
  • Apply lint fixes
  • The function enforce has a high complexity and need to be fixed in the future

@casbin-bot
Copy link
Member

@tangyang9464 @JalinWang please review

enforcer.go Outdated Show resolved Hide resolved
enforcer.go Outdated Show resolved Hide resolved
enforcer_synced.go Outdated Show resolved Hide resolved
errors/errors.go Outdated Show resolved Hide resolved
persist/file-adapter/adapter.go Outdated Show resolved Hide resolved
@hsluoyz hsluoyz merged commit c929fd5 into casbin:master Mar 18, 2024
10 of 11 checks passed
Copy link

🎉 This PR is included in version 2.85.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants