🎨 Style!: Update CSRF and Limiter to remove repetitive names #2846
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The
exported
rule of revive warns to not repeat the package name in method names. For example, prefercsrf.FromCookie
overcsrf.CsrfFromCookie
.It appears that these issues will not be caught by the linter until the
exported
rule is reenabled. This requires comments on all exported symbols, which is a much broader effort.BREAKING CHANGE: This is a breaking change for v3.
Related to #2817
Changes Introduced
List the new features or adjustments introduced in this pull request. Provide details on benchmarks, documentation updates, changelog entries, and if applicable, the migration guide.
Users will be required to change to the new function and type names when upgrading to v3. This change is beneficial to API longevity by being more in line with Go style standards.
Type of Change
Please delete options that are not relevant.
Checklist
Before you submit your pull request, please make sure you meet these requirements:
/docs/
directory for Fiber's documentation.