-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
golint fixed for parts of routers root, dev, user and org dirs #167
Conversation
LGTM |
👍 |
Travis failed |
@@ -11,6 +11,7 @@ import ( | |||
"code.gitea.io/gitea/modules/setting" | |||
) | |||
|
|||
// TemplatePreview render only on DEV mode for preview the template |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function always renders if asked, RUN_MODE
is checked elsewhere
} | ||
|
||
// RepoSearchOptions options when calling search repositories |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe drop the additional options
as it's redundant?
@@ -125,6 +134,7 @@ type UserSearchOptions struct { | |||
TplName base.TplName | |||
} | |||
|
|||
// RenderUserSearch render user search page |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could just be RenderUserSearch page
:)
EXPLORE_USERS base.TplName = "explore/users" | ||
EXPLORE_ORGANIZATIONS base.TplName = "explore/organizations" | ||
// TplHome home page template | ||
TplHome base.TplName = "home" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should these really be exported? 😕
@@ -34,7 +34,8 @@ import ( | |||
) | |||
|
|||
const ( | |||
INSTALL base.TplName = "install" | |||
// TplInstall template for installation page | |||
TplInstall base.TplName = "install" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exported?
MEMBERS base.TplName = "org/member/members" | ||
MEMBER_INVITE base.TplName = "org/member/invite" | ||
// TplMembers template for organization members page | ||
TplMembers base.TplName = "org/member/members" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exported?
@@ -14,19 +14,22 @@ import ( | |||
) | |||
|
|||
const ( | |||
CREATE base.TplName = "org/create" | |||
// TplCreateOrg template path for create organization | |||
TplCreateOrg base.TplName = "org/create" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exported?
SETTINGS_DELETE base.TplName = "org/settings/delete" | ||
SETTINGS_HOOKS base.TplName = "org/settings/hooks" | ||
// TplSettingsOptions template path for render settings | ||
TplSettingsOptions base.TplName = "org/settings/options" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exported?
) | ||
|
||
// Settings render the main settings page |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
organization main settings page
?
TEAM_MEMBERS base.TplName = "org/team/members" | ||
TEAM_REPOSITORIES base.TplName = "org/team/repositories" | ||
// TplTeams template path for teams list page | ||
TplTeams base.TplName = "org/team/teams" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exported?
@bkcsoft Please review again. |
Current coverage is 3.03% (diff: 100%)@@ master #167 diff @@
========================================
Files 33 33
Lines 8096 8096
Methods 0 0
Messages 0 0
Branches 0 0
========================================
Hits 246 246
Misses 7830 7830
Partials 20 20
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't really care, but worth mentioning
@@ -34,7 +34,8 @@ import ( | |||
) | |||
|
|||
const ( | |||
INSTALL base.TplName = "install" | |||
// tplInstall template for installation page |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need for a comment here since it isn't exported 🙂
LGTM |
resolved #70 |
No description provided.