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

golint fixed for parts of routers root, dev, user and org dirs #167

Merged
merged 4 commits into from
Nov 18, 2016

Conversation

lunny
Copy link
Member

@lunny lunny commented Nov 14, 2016

No description provided.

@tboerger
Copy link
Member

LGTM

@appleboy
Copy link
Member

👍

@andreynering
Copy link
Contributor

Travis failed

@bkcsoft bkcsoft added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Nov 14, 2016
@@ -11,6 +11,7 @@ import (
"code.gitea.io/gitea/modules/setting"
)

// TemplatePreview render only on DEV mode for preview the template
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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"
Copy link
Member

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"
Copy link
Member

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"
Copy link
Member

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"
Copy link
Member

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"
Copy link
Member

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
Copy link
Member

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"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exported?

@lunny lunny changed the title golint fixed for parts of routers root, dev and org dirs golint fixed for parts of routers root, dev, user and org dirs Nov 16, 2016
@lunny
Copy link
Member Author

lunny commented Nov 16, 2016

@bkcsoft Please review again.

@codecov-io
Copy link

codecov-io commented Nov 16, 2016

Current coverage is 3.03% (diff: 100%)

Merging #167 into master will not change coverage

@@            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          

Powered by Codecov. Last update 904deb7...e39731b

@lunny lunny added this to the 1.0.0 milestone Nov 18, 2016
@lunny lunny self-assigned this Nov 18, 2016
Copy link
Member

@bkcsoft bkcsoft left a 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
Copy link
Member

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 🙂

@bkcsoft
Copy link
Member

bkcsoft commented Nov 18, 2016

LGTM

@bkcsoft bkcsoft added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Nov 18, 2016
@lunny lunny merged commit cf045b0 into go-gitea:master Nov 18, 2016
@lunny lunny deleted the lunny/golint_routers branch November 28, 2016 15:59
@lunny
Copy link
Member Author

lunny commented Nov 28, 2016

resolved #70

ethantkoenig pushed a commit to ethantkoenig/gitea that referenced this pull request Apr 29, 2017
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. topic/code-linting
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants