Fitbit/smartling

View on GitHub

Showing 57 of 89 total issues

Function newApp has 55 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func newApp() *cli.App {
    app := cli.NewApp()

    app.Name = "smartling"
    app.Version = strings.TrimPrefix(Version, "v")
Severity: Minor
Found in cli/app.go - About 1 hr to fix

    Avoid deeply nested control flow statements.
    Open

                        if resp, err = req.Post(_url); err == nil {
                            err = rest.Result(resp, &stats)
                        }
    Severity: Major
    Found in service/default_file_service.go - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                  } else if i < p-1 {
                      files = allFiles[low:high]
                  } else {
                      files = allFiles[low:]
                  }
      Severity: Major
      Found in model/project_resource.go - About 45 mins to fix

        exported function Info should have comment or be unexported
        Open

        func Info(v ...interface{}) {
        Severity: Minor
        Found in logger/logger.go by golint

        exported var BaseURL should have comment or be unexported
        Open

        var BaseURL = "https://api.smartling.com"
        Severity: Minor
        Found in rest/base_url.go by golint

        exported function Errorf should have comment or be unexported
        Open

        func Errorf(format string, v ...interface{}) {
        Severity: Minor
        Found in logger/logger.go by golint

        exported method ProjectResource.Files should have comment or be unexported
        Open

        func (r *ProjectResource) Files() []string {
        Severity: Minor
        Found in model/project_resource.go by golint

        exported type AuthService should have comment or be unexported
        Open

        type AuthService interface {
        Severity: Minor
        Found in service/auth_service.go by golint

        exported type File should have comment or be unexported
        Open

        type File struct {
        Severity: Minor
        Found in model/file.go by golint

        exported method Model.IsOK should have comment or be unexported
        Open

        func (m *Model) IsOK() bool {
        Severity: Minor
        Found in rest/model.go by golint

        exported method DefaultAuthService.Authenticate should have comment or be unexported
        Open

        func (s *DefaultAuthService) Authenticate(userToken *model.UserToken) (*model.AuthToken, error) {
        Severity: Minor
        Found in service/default_auth_service.go by golint

        exported method ProjectConfig.Locale should have comment or be unexported
        Open

        func (c *ProjectConfig) Locale(localeID string) string {
        Severity: Minor
        Found in model/project_config.go by golint

        exported method ProjectConfig.FilePath should have comment or be unexported
        Open

        func (c *ProjectConfig) FilePath(filename string) string {
        Severity: Minor
        Found in model/project_config.go by golint

        exported type ProjectConfigRepository should have comment or be unexported
        Open

        type ProjectConfigRepository interface {

        exported function Setup should have comment or be unexported
        Open

        func Setup(opts *Options) (*Container, error) {
        Severity: Minor
        Found in di/setup.go by golint

        exported function Error should have comment or be unexported
        Open

        func Error(v ...interface{}) {
        Severity: Minor
        Found in logger/logger.go by golint

        exported method ProjectResource.BatchFiles should have comment or be unexported
        Open

        func (r *ProjectResource) BatchFiles(size int) [][]string {
        Severity: Minor
        Found in model/project_resource.go by golint

        exported method Model.Data should have comment or be unexported
        Open

        func (m *Model) Data(data interface{}) (err error) {
        Severity: Minor
        Found in rest/model.go by golint

        exported type DefaultAuthService should have comment or be unexported
        Open

        type DefaultAuthService struct {
        Severity: Minor
        Found in service/default_auth_service.go by golint

        8: cannot find package "gopkg.in/urfave/cli.v1" in any of:
        Open

        import "gopkg.in/urfave/cli.v1"
        Severity: Minor
        Found in cli/action.go by govet
        Severity
        Category
        Status
        Source
        Language