Showing 57 of 89 total issues
Function newApp
has 55 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func newApp() *cli.App {
app := cli.NewApp()
app.Name = "smartling"
app.Version = strings.TrimPrefix(Version, "v")
Avoid deeply nested control flow statements. Open
Open
if resp, err = req.Post(_url); err == nil {
err = rest.Result(resp, &stats)
}
Avoid deeply nested control flow statements. Open
Open
} else if i < p-1 {
files = allFiles[low:high]
} else {
files = allFiles[low:]
}
exported function Info should have comment or be unexported Open
Open
func Info(v ...interface{}) {
- Exclude checks
exported var BaseURL should have comment or be unexported Open
Open
var BaseURL = "https://api.smartling.com"
- Exclude checks
exported function Errorf should have comment or be unexported Open
Open
func Errorf(format string, v ...interface{}) {
- Exclude checks
exported method ProjectResource.Files should have comment or be unexported Open
Open
func (r *ProjectResource) Files() []string {
- Exclude checks
exported type AuthService should have comment or be unexported Open
Open
type AuthService interface {
- Exclude checks
exported type File should have comment or be unexported Open
Open
type File struct {
- Exclude checks
exported method Model.IsOK should have comment or be unexported Open
Open
func (m *Model) IsOK() bool {
- Exclude checks
exported method DefaultAuthService.Authenticate should have comment or be unexported Open
Open
func (s *DefaultAuthService) Authenticate(userToken *model.UserToken) (*model.AuthToken, error) {
- Exclude checks
exported method ProjectConfig.Locale should have comment or be unexported Open
Open
func (c *ProjectConfig) Locale(localeID string) string {
- Exclude checks
exported method ProjectConfig.FilePath should have comment or be unexported Open
Open
func (c *ProjectConfig) FilePath(filename string) string {
- Exclude checks
exported type ProjectConfigRepository should have comment or be unexported Open
Open
type ProjectConfigRepository interface {
- Exclude checks
exported function Setup should have comment or be unexported Open
Open
func Setup(opts *Options) (*Container, error) {
- Exclude checks
exported function Error should have comment or be unexported Open
Open
func Error(v ...interface{}) {
- Exclude checks
exported method ProjectResource.BatchFiles should have comment or be unexported Open
Open
func (r *ProjectResource) BatchFiles(size int) [][]string {
- Exclude checks
exported method Model.Data should have comment or be unexported Open
Open
func (m *Model) Data(data interface{}) (err error) {
- Exclude checks
exported type DefaultAuthService should have comment or be unexported Open
Open
type DefaultAuthService struct {
- Exclude checks
8: cannot find package "gopkg.in/urfave/cli.v1" in any of: Open
Open
import "gopkg.in/urfave/cli.v1"
- Exclude checks