Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

refactor: move functions and vars out from rule/utils.go #1139

Merged
merged 1 commit into from
Nov 19, 2024

Conversation

alexandear
Copy link
Contributor

This PR moves unexported functions and variable declarations from utils.go to rule files, where these functions are used. This increases cohesion, readability and rules maintainability.

Now, in the utils.go only functions that are common for a few rules.

@alexandear alexandear changed the title refactor: move functions out from utils.go refactor: move functions and vars out from utils.go Nov 19, 2024
@alexandear alexandear changed the title refactor: move functions and vars out from utils.go refactor: move functions and vars out from rule/utils.go Nov 19, 2024
@denisvmedia denisvmedia merged commit 0e8acea into mgechev:master Nov 19, 2024
15 checks passed
@denisvmedia
Copy link
Collaborator

I checked, these functions are not used outside of the given rules, thus it makes sense to move them close to the rules. Thanks!

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

Successfully merging this pull request may close these issues.

3 participants