-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
modules/setting probably needs refactoring #3917
Comments
@devil418 Please try that. |
Please feel free to work on that. Also it is better to submit multiple small PR than single large as that helps to get it merged faster as it is easier to review. |
I would start by breaking out all Kind of like this: // ssh.go
func (s *SSH) Parse(section *ini.Section) error { ... }
// setting.go
// func NewContext...
ssh := SSH{}
if err := ssh.Parse(); err != nil { ... } |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions. |
Like @bkcsoft 's idea, don't close. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions. |
How up to date is this issue? |
Gitea version (or commit ref): 0b718e0
Description
The setting module has the following problems and bad code smells:
I'm willing to work on this in the next few weeks if the maintainers are ok with that. I'd like to get feedback on which points to fix and which ones to leave as they are.
The text was updated successfully, but these errors were encountered: