Preparing report...

Report for github.com/JGrotex/tci-wi-smalltools-extension

A    Great!    Found 11 issues across 11 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo100%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.

No problems detected. Good job!


golint18%

Golint is a linter for Go source code.

    • tci-wi-smalltools-extension/smalltools/activity/emailvalidation/activity.go
    • Line 26: warning: exported type EmailValidationActivity should have comment or be unexported (golint)
    • Line 30: warning: exported function NewActivity should have comment or be unexported (golint)
    • Line 34: warning: exported method EmailValidationActivity.Metadata should have comment or be unexported (golint)
    • Line 37: warning: exported method EmailValidationActivity.Eval should have comment or be unexported (golint)
    • Line 60: warning: exported function ValidateFormat should have comment or be unexported (golint)
    • tci-wi-smalltools-extension/smalltools/activity/createHTML/activity.go
    • Line 1: warning: don't use MixedCaps in package name; createHTML should be createhtml (golint)
    • Line 26: warning: exported type EmailValidationActivity should have comment or be unexported (golint)
    • Line 30: warning: exported function NewActivity should have comment or be unexported (golint)
    • Line 34: warning: exported method EmailValidationActivity.Metadata should have comment or be unexported (golint)
    • Line 37: warning: exported method EmailValidationActivity.Eval should have comment or be unexported (golint)
    • tci-wi-smalltools-extension/smalltools/activity/sendHTMLEmail/activity.go
    • Line 1: warning: package comment should be of the form "Package sendHTMLEmail ..." (golint)
    • Line 4: warning: don't use MixedCaps in package name; sendHTMLEmail should be sendhtmlemail (golint)
    • Line 38: warning: exported type Message should have comment or be unexported (golint)
    • Line 57: warning: exported var ErrMissingRecipient should have comment or be unexported (golint)
    • Line 61: warning: exported type EmailValidationActivity should have comment or be unexported (golint)
    • Line 65: warning: exported function NewActivity should have comment or be unexported (golint)
    • Line 69: warning: exported method EmailValidationActivity.Metadata should have comment or be unexported (golint)
    • Line 72: warning: exported method EmailValidationActivity.Eval should have comment or be unexported (golint)
    • Line 237: warning: exported method Message.SetFrom should have comment or be unexported (golint)
    • Line 240: warning: exported method Message.SetReplyTo should have comment or be unexported (golint)
    • Line 243: warning: exported method Message.AddTo should have comment or be unexported (golint)
    • Line 246: warning: exported method Message.Bytes should have comment or be unexported (golint)
    • Line 426: warning: exported function NewBase64MimeEncoder should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign9%

IneffAssign detects ineffectual assignments in Go code.

    • tci-wi-smalltools-extension/smalltools/activity/shortenURL/activity.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/TIBCOSoftware/flogo-lib/core/activity (invalid package name: "") (ineffassign)
    • Line 5: warning: could not import github.com/TIBCOSoftware/flogo-lib/logger (invalid package name: "") (ineffassign)
    • Line 4: warning: could not import github.com/TIBCOSoftware/flogo-lib/core/activity (invalid package name: "") (ineffassign)
    • Line 5: warning: could not import github.com/TIBCOSoftware/flogo-lib/logger (invalid package name: "") (ineffassign)
    • tci-wi-smalltools-extension/smalltools/activity/concat/activity.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/TIBCOSoftware/flogo-lib/core/activity (invalid package name: "") (ineffassign)
    • Line 5: warning: could not import github.com/TIBCOSoftware/flogo-lib/logger (invalid package name: "") (ineffassign)
    • Line 4: warning: could not import github.com/TIBCOSoftware/flogo-lib/core/activity (invalid package name: "") (ineffassign)
    • Line 5: warning: could not import github.com/TIBCOSoftware/flogo-lib/logger (invalid package name: "") (ineffassign)
    • tci-wi-smalltools-extension/smalltools/activity/emailvalidation/activity.go
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: could not import github.com/TIBCOSoftware/flogo-lib/core/activity (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/TIBCOSoftware/flogo-lib/logger (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/TIBCOSoftware/flogo-lib/core/activity (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/TIBCOSoftware/flogo-lib/logger (invalid package name: "") (ineffassign)
    • tci-wi-smalltools-extension/smalltools/activity/createHTML/activity.go
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: could not import github.com/TIBCOSoftware/flogo-lib/core/activity (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/TIBCOSoftware/flogo-lib/logger (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/TIBCOSoftware/flogo-lib/core/activity (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/TIBCOSoftware/flogo-lib/logger (invalid package name: "") (ineffassign)
    • tci-wi-smalltools-extension/smalltools/activity/sendHTMLEmail/activity.go
    • Line 20: warning: cannot find package "." in: (ineffassign)
    • Line 21: warning: cannot find package "." in: (ineffassign)
    • Line 20: warning: could not import github.com/TIBCOSoftware/flogo-lib/core/activity (invalid package name: "") (ineffassign)
    • Line 21: warning: could not import github.com/TIBCOSoftware/flogo-lib/logger (invalid package name: "") (ineffassign)
    • Line 20: warning: could not import github.com/TIBCOSoftware/flogo-lib/core/activity (invalid package name: "") (ineffassign)
    • Line 21: warning: could not import github.com/TIBCOSoftware/flogo-lib/logger (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!