Preparing report...

Report for github.com/fossas/fossa-cli

A+    Excellent!    Found 130 issues across 249 files

Tweet

gofmt92%

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


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!


gocyclo93%

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.

    • fossa-cli/api/fossa/tar.go
    • Line 400: warning: cyclomatic complexity 22 of function tarballUpload() is high (> 15) (gocyclo)
    • Line 187: warning: cyclomatic complexity 16 of function CreateTarball() is high (> 15) (gocyclo)
    • fossa-cli/pkg/types.go
    • Line 45: warning: cyclomatic complexity 64 of function ParseType() is high (> 15) (gocyclo)
    • Line 218: warning: cyclomatic complexity 25 of function (Type).String() is high (> 15) (gocyclo)

golint55%

Golint is a linter for Go source code.

    • fossa-cli/analyzers/cocoapods/cocoapods.go
    • Line 23: warning: exported type Analyzer should have comment or be unexported (golint)
    • Line 33: warning: exported type Options should have comment or be unexported (golint)
    • Line 35: warning: exported function New should have comment or be unexported (golint)
    • Line 119: warning: exported method Analyzer.Clean should have comment or be unexported (golint)
    • Line 124: warning: exported method Analyzer.Build should have comment or be unexported (golint)
    • Line 128: warning: exported method Analyzer.Analyze should have comment or be unexported (golint)
    • fossa-cli/analyzers/ruby/ruby2.go
    • Line 16: warning: exported const AnalyzerName should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported var RubyAnalyzer should have comment or be unexported (golint)
    • Line 41: warning: exported function NewDiscover should have comment or be unexported (golint)
    • fossa-cli/buildtools/cocoapods/lockfile.go
    • Line 11: warning: exported type RawLockfile should have comment or be unexported (golint)
    • Line 19: warning: exported type Lockfile should have comment or be unexported (golint)
    • Line 27: warning: exported type Spec should have comment or be unexported (golint)
    • Line 33: warning: exported type Requirement should have comment or be unexported (golint)
    • Line 47: warning: exported type CheckoutOptions should have comment or be unexported (golint)
    • Line 53: warning: exported type ExternalSource should have comment or be unexported (golint)
    • Line 61: warning: exported function FromLockfile should have comment or be unexported (golint)
    • Line 125: warning: exported function ParseRequirement should have comment or be unexported (golint)
    • fossa-cli/pkg/package.go
    • Line 35: warning: exported type Imports should have comment or be unexported (golint)
    • Line 37: warning: exported type Deps should have comment or be unexported (golint)
    • Line 47: warning: exported type Qualifier should have comment or be unexported (golint)
    • Line 50: warning: exported const Production should have comment (or a comment on this block) or be unexported (golint)
    • Line 69: warning: comment on exported type File should be of the form "File ..." (with optional leading article) (golint)
    • fossa-cli/analyzers/rust/rust.go
    • Line 4: warning: package comment is detached; there should be no blank lines between it and the package statement (golint)
    • Line 22: warning: exported type Analyzer should have comment or be unexported (golint)
    • Line 27: warning: exported type Options should have comment or be unexported (golint)
    • Line 31: warning: exported function New should have comment or be unexported (golint)
    • Line 87: warning: exported method Analyzer.Build should have comment or be unexported (golint)
    • Line 91: warning: exported method Analyzer.IsBuilt should have comment or be unexported (golint)
    • Line 95: warning: exported method Analyzer.Analyze should have comment or be unexported (golint)
    • fossa-cli/testing/runfossa/runfossa.go
    • Line 15: warning: exported function LicenseReport should have comment or be unexported (golint)
    • Line 20: warning: exported function DependencyReport should have comment or be unexported (golint)
    • Line 25: warning: exported function AnalyzeOutput should have comment or be unexported (golint)
    • fossa-cli/config/try.go
    • Line 9: warning: exported var ErrFileNotFound should have comment or be unexported (golint)
    • Line 11: warning: exported function TryStrings should have comment or be unexported (golint)
    • Line 20: warning: exported function TryFiles should have comment or be unexported (golint)
    • fossa-cli/analyzers/maven/maven.go
    • Line 24: warning: exported type Analyzer should have comment or be unexported (golint)
    • Line 30: warning: exported type Options should have comment or be unexported (golint)
    • Line 37: warning: exported function New should have comment or be unexported (golint)
    • Line 65: warning: exported function Discover should have comment or be unexported (golint)
    • Line 112: warning: exported method Analyzer.Clean should have comment or be unexported (golint)
    • Line 116: warning: exported method Analyzer.Build should have comment or be unexported (golint)
    • Line 132: warning: exported method Analyzer.Analyze should have comment or be unexported (golint)
    • fossa-cli/vcs/git.go
    • Line 41: warning: exported method GitRepository.Head should have comment or be unexported (golint)
    • Line 43: warning: exported method GitRepository.Project should have comment or be unexported (golint)
    • fossa-cli/analyzers/nodejs/nodejs.go
    • Line 34: warning: exported type Analyzer should have comment or be unexported (golint)
    • Line 185: warning: exported method Analyzer.IsBuilt should have comment or be unexported (golint)
    • Line 189: warning: exported method Analyzer.Analyze should have comment or be unexported (golint)
    • fossa-cli/config/flags.go
    • Line 3: warning: exported function StringFlag should have comment or be unexported (golint)
    • Line 10: warning: exported function BoolFlag should have comment or be unexported (golint)
    • fossa-cli/analyzers/python/python.go
    • Line 23: warning: exported type Analyzer should have comment or be unexported (golint)
    • Line 33: warning: exported type Options should have comment or be unexported (golint)
    • Line 39: warning: exported function New should have comment or be unexported (golint)
    • Line 160: warning: exported method Analyzer.Build should have comment or be unexported (golint)
    • Line 164: warning: exported method Analyzer.IsBuilt should have comment or be unexported (golint)
    • Line 168: warning: exported method Analyzer.Analyze should have comment or be unexported (golint)
    • fossa-cli/buildtools/dotnet/package_reference.go
    • Line 12: warning: exported type Manifest should have comment or be unexported (golint)
    • Line 17: warning: exported type PropertyGroup should have comment or be unexported (golint)
    • Line 22: warning: exported type ItemGroup should have comment or be unexported (golint)
    • Line 28: warning: exported type Reference should have comment or be unexported (golint)
    • Line 33: warning: exported method Manifest.Name should have comment or be unexported (golint)
    • Line 42: warning: exported method Manifest.Version should have comment or be unexported (golint)
    • fossa-cli/buildtools/npm/npm.go
    • Line 12: warning: exported type Options should have comment or be unexported (golint)
    • Line 16: warning: exported type NPM should have comment or be unexported (golint)
    • Line 23: warning: exported type SystemNPM should have comment or be unexported (golint)
    • Line 28: warning: exported type Output should have comment or be unexported (golint)
    • Line 35: warning: exported method SystemNPM.Exists should have comment or be unexported (golint)
    • Line 39: warning: exported method SystemNPM.List should have comment or be unexported (golint)
    • Line 63: warning: exported method SystemNPM.Clean should have comment or be unexported (golint)
    • Line 67: warning: exported method SystemNPM.Install should have comment or be unexported (golint)
    • Line 79: warning: exported function New should have comment or be unexported (golint)
    • fossa-cli/graph/flatten.go
    • Line 5: warning: exported type Node should have comment or be unexported (golint)
    • Line 7: warning: exported type Tree should have comment or be unexported (golint)
    • Line 11: warning: exported type FlattenFunc should have comment or be unexported (golint)
    • Line 13: warning: exported function Flatten should have comment or be unexported (golint)
    • fossa-cli/graph/readtree.go
    • Line 7: warning: exported type Generic should have comment or be unexported (golint)
    • Line 9: warning: comment on exported type LineParser should be of the form "LineParser ..." (with optional leading article) (golint)
    • Line 12: warning: exported function ReadGenericTree should have comment or be unexported (golint)
    • fossa-cli/vcs/svn.go
    • Line 45: warning: exported method SubversionRepository.Project should have comment or be unexported (golint)
    • Line 47: warning: exported method SubversionRepository.Head should have comment or be unexported (golint)
    • fossa-cli/cmd/fossa/cmd/analyze/analyze2.go
    • Line 24: warning: exported const JobsFlag should have comment (or a comment on this block) or be unexported (golint)
    • Line 27: warning: exported var NewCmd should have comment or be unexported (golint)
    • Line 40: warning: exported var Analyzers should have comment or be unexported (golint)
    • Line 45: warning: comment on exported function NewRun should be of the form "NewRun ..." (golint)
    • Line 77: warning: exported function NewDo should have comment or be unexported (golint)
    • fossa-cli/analyzers/rpm/rpm.go
    • Line 11: warning: exported type Analyzer should have comment or be unexported (golint)
    • Line 16: warning: exported type Options should have comment or be unexported (golint)
    • Line 20: warning: exported function Discover should have comment or be unexported (golint)
    • Line 24: warning: exported function New should have comment or be unexported (golint)
    • Line 40: warning: exported method Analyzer.Clean should have comment or be unexported (golint)
    • Line 44: warning: exported method Analyzer.Build should have comment or be unexported (golint)
    • Line 48: warning: exported method Analyzer.IsBuilt should have comment or be unexported (golint)
    • fossa-cli/module/analyzer2.go
    • Line 16: warning: exported type AnalyzerV2 should have comment or be unexported (golint)
    • Line 22: warning: exported type AnalyzerV2Output should have comment or be unexported (golint)
    • Line 24: warning: comment on exported type Analysis should be of the form "Analysis ..." (with optional leading article) (golint)
    • Line 30: warning: comment on exported type DiscoverFuncV2 should be of the form "DiscoverFuncV2 ..." (with optional leading article) (golint)
    • Line 40: warning: exported type Filepath should have comment or be unexported (golint)
    • Line 41: warning: exported type StrategyName should have comment or be unexported (golint)
    • Line 43: warning: comment on exported type Strategy should be of the form "Strategy ..." (with optional leading article) (golint)
    • Line 52: warning: exported type Strategies should have comment or be unexported (golint)
    • Line 62: warning: comment on exported type DiscoveredStrategies should be of the form "DiscoveredStrategies ..." (with optional leading article) (golint)
    • Line 65: warning: exported type TaggedGraph should have comment or be unexported (golint)
    • Line 73: warning: exported method AnalyzerV2.ScanModule should have comment or be unexported (golint)
    • fossa-cli/buildtools/bower/manifest.go
    • Line 10: warning: exported type Manifest should have comment or be unexported (golint)
    • Line 16: warning: exported function ReadManifest should have comment or be unexported (golint)
    • Line 30: warning: exported function FromComponents should have comment or be unexported (golint)
    • fossa-cli/api/fossa/fossa.go
    • Line 17: warning: exported function SetEndpoint should have comment or be unexported (golint)
    • Line 26: warning: exported function SetAPIKey should have comment or be unexported (golint)
    • fossa-cli/buildtools/sbt/sbt.go
    • Line 15: warning: exported type SBT should have comment or be unexported (golint)
    • Line 19: warning: exported method SBT.Clean should have comment or be unexported (golint)
    • Line 28: warning: exported method SBT.Compile should have comment or be unexported (golint)
    • Line 37: warning: exported method SBT.Projects should have comment or be unexported (golint)
    • Line 59: warning: exported type Dependency should have comment or be unexported (golint)
    • Line 64: warning: exported method SBT.DependencyTree should have comment or be unexported (golint)
    • Line 103: warning: exported method SBT.DependencyList should have comment or be unexported (golint)
    • Line 117: warning: exported function FilterLine should have comment or be unexported (golint)
    • Line 145: warning: exported function FilterLines should have comment or be unexported (golint)
    • Line 158: warning: exported function Task should have comment or be unexported (golint)
    • fossa-cli/buildtools/stack/stack.go
    • Line 15: warning: exported function GetDeps should have comment or be unexported (golint)
    • Line 34: warning: exported function GetDepsPure should have comment or be unexported (golint)
    • Line 75: warning: comment on exported type Dep should be of the form "Dep ..." (with optional leading article) (golint)
    • Line 81: warning: exported function DepToPkgId should have comment or be unexported (golint)
    • Line 95: warning: exported function DepToCanonical should have comment or be unexported (golint)
    • Line 99: warning: exported function DepFromCanonical should have comment or be unexported (golint)
    • Line 107: warning: comment on exported type GhcPkgDeps should be of the form "GhcPkgDeps ..." (with optional leading article) (golint)
    • Line 112: warning: exported function ParseStackDependencies should have comment or be unexported (golint)
    • Line 139: warning: exported function ParseGhcPkgDepMap should have comment or be unexported (golint)
    • Line 170: warning: exported function GetStackDependencies should have comment or be unexported (golint)
    • Line 189: warning: exported function GetGhcPkgDepMap should have comment or be unexported (golint)
    • fossa-cli/errors/errors.go
    • Line 11: warning: exported type Type should have comment or be unexported (golint)
    • Line 14: warning: exported const User should have comment (or a comment on this block) or be unexported (golint)
    • Line 29: warning: comment on exported function NotImplementedError should be of the form "NotImplementedError ..." (golint)
    • Line 86: warning: exported function Errorf should have comment or be unexported (golint)
    • Line 90: warning: exported function Wrap should have comment or be unexported (golint)
    • Line 94: warning: exported function Wrapf should have comment or be unexported (golint)
    • Line 98: warning: exported method Error.WrapCause should have comment or be unexported (golint)
    • Line 98: warning: receiver name err should be consistent with previous receiver name e for Error (golint)
    • Line 107: warning: exported function New should have comment or be unexported (golint)
    • fossa-cli/buildtools/bundler/bundler.go
    • Line 15: warning: exported type Bundler should have comment or be unexported (golint)
    • Line 19: warning: exported type Gem should have comment or be unexported (golint)
    • Line 24: warning: exported function New should have comment or be unexported (golint)
    • Line 37: warning: exported method Bundler.ListLockfileGraph should have comment or be unexported (golint)
    • Line 56: warning: exported method Bundler.ListGraph should have comment or be unexported (golint)
    • Line 81: warning: exported method Bundler.List should have comment or be unexported (golint)
    • Line 109: warning: exported method Bundler.Install should have comment or be unexported (golint)
    • fossa-cli/buildtools/ant/ant.go
    • Line 23: warning: exported function Graph should have comment or be unexported (golint)
    • Line 84: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • fossa-cli/vcs/mercurial.go
    • Line 82: warning: exported method MercurialRepository.Project should have comment or be unexported (golint)
    • Line 84: warning: exported method MercurialRepository.Head should have comment or be unexported (golint)
    • fossa-cli/analyzers/scala/scala.go
    • Line 23: warning: exported type Analyzer should have comment or be unexported (golint)
    • Line 35: warning: exported type Options should have comment or be unexported (golint)
    • Line 37: warning: exported function New should have comment or be unexported (golint)
    • Line 79: warning: exported function Discover should have comment or be unexported (golint)
    • Line 143: warning: exported method Analyzer.Clean should have comment or be unexported (golint)
    • Line 148: warning: exported method Analyzer.Build should have comment or be unexported (golint)
    • Line 166: warning: exported method Analyzer.Analyze should have comment or be unexported (golint)
    • Line 181: warning: exported function ParseTarget should have comment or be unexported (golint)
    • fossa-cli/vcs/types.go
    • Line 8: warning: exported const Subversion should have comment (or a comment on this block) or be unexported (golint)
    • Line 38: warning: exported function MetadataFolder should have comment or be unexported (golint)
    • fossa-cli/buildtools/maven/maven.go
    • Line 18: warning: exported type Maven should have comment or be unexported (golint)
    • Line 22: warning: exported method Maven.Clean should have comment or be unexported (golint)
    • Line 31: warning: exported method Maven.Compile should have comment or be unexported (golint)
    • Line 158: warning: exported function ParseDependencyTree should have comment or be unexported (golint)
    • fossa-cli/files/files.go
    • Line 21: warning: exported function Exists should have comment or be unexported (golint)
    • Line 32: warning: exported function ExistsFolder should have comment or be unexported (golint)
    • Line 43: warning: exported function Read should have comment or be unexported (golint)
    • Line 67: warning: exported function Rm should have comment or be unexported (golint)
    • fossa-cli/config/keys.go
    • Line 62: warning: exported const DefaultEndpoint should have comment or be unexported (golint)
    • Line 71: warning: exported function Title should have comment or be unexported (golint)
    • Line 76: warning: exported function Fetcher should have comment or be unexported (golint)
    • Line 80: warning: exported function Project should have comment or be unexported (golint)
    • Line 88: warning: exported function Revision should have comment or be unexported (golint)
    • Line 96: warning: exported function Branch should have comment or be unexported (golint)
    • Line 104: warning: exported function ProjectURL should have comment or be unexported (golint)
    • Line 108: warning: exported function JIRAProjectKey should have comment or be unexported (golint)
    • Line 112: warning: exported function Link should have comment or be unexported (golint)
    • Line 116: warning: exported function Team should have comment or be unexported (golint)
    • Line 120: warning: exported function Policy should have comment or be unexported (golint)
    • Line 124: warning: exported function ReleaseGroup should have comment or be unexported (golint)
    • Line 128: warning: exported function ReleaseGroupVersion should have comment or be unexported (golint)
    • Line 134: warning: exported function Options should have comment or be unexported (golint)
    • Line 167: warning: exported function Modules should have comment or be unexported (golint)
    • fossa-cli/analyzers/haskell/types.go
    • Line 3: warning: exported type Options should have comment or be unexported (golint)
    • Line 7: warning: exported type Strategy should have comment or be unexported (golint)
    • Line 10: warning: exported const CabalInstall should have comment (or a comment on this block) or be unexported (golint)
    • fossa-cli/vcs/none.go
    • Line 32: warning: exported method NoRepository.Project should have comment or be unexported (golint)
    • Line 34: warning: exported method NoRepository.Head should have comment or be unexported (golint)
    • fossa-cli/cmd/fossa/cmd/test/test.go
    • Line 35: warning: exported const Timeout should have comment (or a comment on this block) or be unexported (golint)
    • Line 40: warning: exported var PollRequestDelay should have comment or be unexported (golint)
    • Line 42: warning: exported var Cmd should have comment or be unexported (golint)
    • Line 55: warning: exported function Run should have comment or be unexported (golint)
    • Line 96: warning: exported function Do should have comment or be unexported (golint)
    • fossa-cli/analyzers/ruby/ruby.go
    • Line 24: warning: exported type Analyzer should have comment or be unexported (golint)
    • Line 30: warning: exported type Options should have comment or be unexported (golint)
    • Line 35: warning: exported function New should have comment or be unexported (golint)
    • Line 100: warning: exported method Analyzer.Build should have comment or be unexported (golint)
    • Line 104: warning: exported method Analyzer.IsBuilt should have comment or be unexported (golint)
    • Line 108: warning: exported method Analyzer.Analyze should have comment or be unexported (golint)
    • fossa-cli/buildtools/bundler/lockfile.go
    • Line 15: warning: exported type Lockfile should have comment or be unexported (golint)
    • Line 22: warning: exported type Section should have comment or be unexported (golint)
    • Line 32: warning: exported type Spec should have comment or be unexported (golint)
    • Line 38: warning: exported type Requirement should have comment or be unexported (golint)
    • Line 58: warning: comment on exported type VersionSpecifier should be of the form "VersionSpecifier ..." (with optional leading article) (golint)
    • Line 62: warning: exported function LockfileGraph should have comment or be unexported (golint)
    • Line 76: warning: exported function FromLockfile should have comment or be unexported (golint)
    • Line 110: warning: exported function GraphFromLockfile should have comment or be unexported (golint)
    • Line 177: warning: exported function FilteredLockfile should have comment or be unexported (golint)
    • Line 205: warning: exported function ParseSpecSection should have comment or be unexported (golint)
    • Line 234: warning: exported function ParseSpecs should have comment or be unexported (golint)
    • Line 291: warning: exported function ParseDependenciesSection should have comment or be unexported (golint)
    • fossa-cli/buildtools/npm/lockfile.go
    • Line 12: warning: exported var PossibleLockfileFilenames should have comment or be unexported (golint)
    • Line 14: warning: exported type Lockfile should have comment or be unexported (golint)
    • Line 20: warning: exported type DependencyLockEntry should have comment or be unexported (golint)
    • Line 26: warning: exported type Dependencies should have comment or be unexported (golint)
    • Line 27: warning: exported type DependencyMap should have comment or be unexported (golint)
    • Line 28: warning: exported type DeepDepIdsSet should have comment or be unexported (golint)
    • fossa-cli/analyzers/php/php.go
    • Line 23: warning: exported type Analyzer should have comment or be unexported (golint)
    • Line 36: warning: exported type Options should have comment or be unexported (golint)
    • Line 40: warning: exported function New should have comment or be unexported (golint)
    • Line 109: warning: exported method Analyzer.Clean should have comment or be unexported (golint)
    • Line 113: warning: exported method Analyzer.Build should have comment or be unexported (golint)
    • Line 117: warning: exported method Analyzer.IsBuilt should have comment or be unexported (golint)
    • Line 122: warning: exported method Analyzer.Analyze should have comment or be unexported (golint)
    • fossa-cli/analyzers/carthage/carthage.go
    • Line 1: warning: package comment should be of the form "Package carthage ..." (golint)
    • Line 20: warning: exported type Analyzer should have comment or be unexported (golint)
    • Line 30: warning: exported type Options should have comment or be unexported (golint)
    • Line 32: warning: exported function New should have comment or be unexported (golint)
    • Line 130: warning: exported method Analyzer.Clean should have comment or be unexported (golint)
    • Line 134: warning: exported method Analyzer.Build should have comment or be unexported (golint)
    • Line 138: warning: exported method Analyzer.Analyze should have comment or be unexported (golint)
    • fossa-cli/buildtools/dotnet/dotnet.go
    • Line 14: warning: exported type DotNET should have comment or be unexported (golint)
    • Line 19: warning: exported method DotNET.Build should have comment or be unexported (golint)
    • Line 28: warning: exported function Path should have comment or be unexported (golint)
    • Line 32: warning: exported function ResolveStrategy should have comment or be unexported (golint)
    • fossa-cli/buildtools/sbt/parse.go
    • Line 12: warning: exported type GraphML should have comment or be unexported (golint)
    • Line 16: warning: exported type Graph should have comment or be unexported (golint)
    • Line 21: warning: exported type Node should have comment or be unexported (golint)
    • Line 25: warning: exported type Edge should have comment or be unexported (golint)
    • Line 30: warning: exported function ParseDependencyGraph should have comment or be unexported (golint)
    • Line 81: warning: exported function ParseEvicted should have comment or be unexported (golint)
    • Line 107: warning: exported function ParsePackageID should have comment or be unexported (golint)
    • fossa-cli/buildtools/cabal/cabal.go
    • Line 20: warning: exported function GetDeps should have comment or be unexported (golint)
    • Line 29: warning: exported function GetDepsPure should have comment or be unexported (golint)
    • Line 61: warning: exported type Plan should have comment or be unexported (golint)
    • Line 65: warning: exported type InstallPlan should have comment or be unexported (golint)
    • Line 96: warning: exported type Component should have comment or be unexported (golint)
    • fossa-cli/buildtools/dotnet/nuspec.go
    • Line 9: warning: exported type NuSpec should have comment or be unexported (golint)
    • Line 13: warning: exported type Metadata should have comment or be unexported (golint)
    • Line 19: warning: exported type Dependencies should have comment or be unexported (golint)
    • Line 23: warning: exported type Group should have comment or be unexported (golint)
    • Line 27: warning: exported type Dependency should have comment or be unexported (golint)
    • Line 32: warning: exported function NuspecGraph should have comment or be unexported (golint)
    • fossa-cli/cmd/fossa/cmd/update/update.go
    • Line 20: warning: exported var ErrDevelopmentBuild should have comment or be unexported (golint)
    • Line 24: warning: exported var Cmd should have comment or be unexported (golint)
    • Line 32: warning: exported function Do should have comment or be unexported (golint)
    • Line 52: warning: exported function AvailableUpdate should have comment or be unexported (golint)
    • Line 73: warning: exported function Update should have comment or be unexported (golint)
    • fossa-cli/errors/messages.go
    • Line 10: warning: exported var ReportBugMessage should have comment or be unexported (golint)
    • Line 20: warning: exported var NoAPIKeyMessage should have comment or be unexported (golint)
    • Line 36: warning: exported var NotImplementedMessage should have comment or be unexported (golint)
    • Line 40: warning: exported var ArgumentModuleMessage should have comment or be unexported (golint)
    • fossa-cli/analyzers/haskell/analyzer.go
    • Line 13: warning: exported type Analyzer should have comment or be unexported (golint)
    • Line 18: warning: exported function New should have comment or be unexported (golint)
    • Line 41: warning: exported method Analyzer.Analyze should have comment or be unexported (golint)
    • Line 45: warning: exported method Analyzer.Clean should have comment or be unexported (golint)
    • Line 49: warning: exported method Analyzer.Build should have comment or be unexported (golint)
    • Line 53: warning: exported method Analyzer.IsBuilt should have comment or be unexported (golint)
    • fossa-cli/analyzers/gradle/gradle.go
    • Line 25: warning: exported type Analyzer should have comment or be unexported (golint)
    • Line 31: warning: exported type Options should have comment or be unexported (golint)
    • Line 44: warning: exported function New should have comment or be unexported (golint)
    • Line 80: warning: exported function DiscoverWithCommand should have comment or be unexported (golint)
    • Line 153: warning: exported method Analyzer.Clean should have comment or be unexported (golint)
    • Line 157: warning: exported method Analyzer.Build should have comment or be unexported (golint)
    • Line 161: warning: exported method Analyzer.IsBuilt should have comment or be unexported (golint)
    • Line 165: warning: exported method Analyzer.Analyze should have comment or be unexported (golint)
    • fossa-cli/buildtools/bower/bower.go
    • Line 12: warning: exported type PackageMetadata should have comment or be unexported (golint)
    • Line 20: warning: exported type Endpoint should have comment or be unexported (golint)
    • Line 26: warning: exported type Package should have comment or be unexported (golint)
    • Line 33: warning: exported type Bower should have comment or be unexported (golint)
    • Line 38: warning: exported function New should have comment or be unexported (golint)
    • Line 50: warning: exported method Bower.List should have comment or be unexported (golint)
    • Line 77: warning: exported method Bower.Clean should have comment or be unexported (golint)
    • Line 85: warning: exported method Bower.Install should have comment or be unexported (golint)
    • fossa-cli/analyzers/clojure/clojure.go
    • Line 17: warning: exported type Analyzer should have comment or be unexported (golint)
    • Line 23: warning: exported type Options should have comment or be unexported (golint)
    • Line 28: warning: exported function New should have comment or be unexported (golint)
    • Line 54: warning: exported function Discover should have comment or be unexported (golint)
    • Line 87: warning: exported method Analyzer.Clean should have comment or be unexported (golint)
    • Line 91: warning: exported method Analyzer.Build should have comment or be unexported (golint)
    • Line 95: warning: exported method Analyzer.IsBuilt should have comment or be unexported (golint)
    • Line 99: warning: exported method Analyzer.Analyze should have comment or be unexported (golint)
    • fossa-cli/buildtools/composer/manifest.go
    • Line 3: warning: exported type Manifest should have comment or be unexported (golint)
    • Line 7: warning: exported function FromLockfile should have comment or be unexported (golint)
    • Line 9: warning: exported function FromManifest should have comment or be unexported (golint)
    • fossa-cli/cmd/fossa/flags/flags.go
    • Line 10: warning: exported function Combine should have comment or be unexported (golint)
    • Line 35: warning: exported function Short should have comment or be unexported (golint)
    • Line 39: warning: exported function ShortUpper should have comment or be unexported (golint)
    • Line 43: warning: exported function WithAPIFlags should have comment or be unexported (golint)
    • Line 48: warning: exported var API should have comment or be unexported (golint)
    • Line 77: warning: exported function WithGlobalFlags should have comment or be unexported (golint)
    • Line 82: warning: exported var Global should have comment or be unexported (golint)
    • Line 93: warning: exported function WithOptions should have comment or be unexported (golint)
    • Line 98: warning: exported var Options should have comment or be unexported (golint)
    • Line 103: warning: exported function WithReportTemplateFlags should have comment or be unexported (golint)
    • Line 108: warning: exported var ReportCmd should have comment or be unexported (golint)
    • fossa-cli/analyzers/nuget/nuget.go
    • Line 21: warning: exported type Analyzer should have comment or be unexported (golint)
    • Line 26: warning: exported type Options should have comment or be unexported (golint)
    • Line 30: warning: exported function New should have comment or be unexported (golint)
    • Line 49: warning: exported function Discover should have comment or be unexported (golint)
    • Line 119: warning: exported method Analyzer.Clean should have comment or be unexported (golint)
    • Line 124: warning: exported method Analyzer.Build should have comment or be unexported (golint)
    • Line 128: warning: exported method Analyzer.IsBuilt should have comment or be unexported (golint)
    • fossa-cli/api/fossa/issues.go
    • Line 11: warning: exported const IssuesAPI should have comment or be unexported (golint)
    • Line 13: warning: comment on exported type Issues should be of the form "Issues ..." (with optional leading article) (golint)
    • fossa-cli/api/fossa/tar.go
    • Line 24: warning: exported var SignedURLAPI should have comment or be unexported (golint)
    • Line 28: warning: exported type ComponentSpec should have comment or be unexported (golint)
    • Line 32: warning: exported type Component should have comment or be unexported (golint)
    • Line 37: warning: exported type SignedURL should have comment or be unexported (golint)
    • Line 40: warning: exported type UploadTarballOptions should have comment or be unexported (golint)
    • Line 120: warning: comment on exported function CreateTarballFromString should be of the form "CreateTarballFromString ..." (golint)
    • fossa-cli/analyzers/bower/bower.go
    • Line 23: warning: exported type Analyzer should have comment or be unexported (golint)
    • Line 38: warning: exported type Options should have comment or be unexported (golint)
    • Line 43: warning: exported function New should have comment or be unexported (golint)
    • Line 122: warning: exported method Analyzer.Clean should have comment or be unexported (golint)
    • Line 152: warning: exported method Analyzer.Analyze should have comment or be unexported (golint)
    • fossa-cli/cmd/fossa/cmd/build/build.go
    • Line 19: warning: exported var Clean should have comment or be unexported (golint)
    • Line 23: warning: exported var Cmd should have comment or be unexported (golint)
    • Line 36: warning: exported function Run should have comment or be unexported (golint)
    • Line 62: warning: exported function Do should have comment or be unexported (golint)
    • fossa-cli/config/file.go
    • Line 43: warning: exported type NoFile should have comment or be unexported (golint)
    • Line 45: warning: exported method NoFile.GetVersion should have comment or be unexported (golint)
    • Line 45: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 49: warning: exported method NoFile.APIKey should have comment or be unexported (golint)
    • Line 49: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 53: warning: exported method NoFile.Server should have comment or be unexported (golint)
    • Line 53: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 57: warning: exported method NoFile.Title should have comment or be unexported (golint)
    • Line 57: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 61: warning: exported method NoFile.Fetcher should have comment or be unexported (golint)
    • Line 61: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 65: warning: exported method NoFile.Project should have comment or be unexported (golint)
    • Line 65: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 69: warning: exported method NoFile.Branch should have comment or be unexported (golint)
    • Line 69: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 73: warning: exported method NoFile.ProjectURL should have comment or be unexported (golint)
    • Line 73: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 77: warning: exported method NoFile.JIRAProjectKey should have comment or be unexported (golint)
    • Line 77: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 81: warning: exported method NoFile.Link should have comment or be unexported (golint)
    • Line 81: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 85: warning: exported method NoFile.Team should have comment or be unexported (golint)
    • Line 85: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 89: warning: exported method NoFile.Policy should have comment or be unexported (golint)
    • Line 89: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 93: warning: exported method NoFile.ReleaseGroup should have comment or be unexported (golint)
    • Line 93: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 97: warning: exported method NoFile.ReleaseGroupVersion should have comment or be unexported (golint)
    • Line 97: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 101: warning: exported method NoFile.Revision should have comment or be unexported (golint)
    • Line 101: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 105: warning: exported method NoFile.Modules should have comment or be unexported (golint)
    • Line 105: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 164: warning: exported function WriteFile should have comment or be unexported (golint)
    • Line 182: warning: exported function UpdateFile should have comment or be unexported (golint)
    • Line 186: warning: exported function ExistsFile should have comment or be unexported (golint)
    • fossa-cli/analyzers/python/python2.go
    • Line 17: warning: exported const AnalyzerName should have comment (or a comment on this block) or be unexported (golint)
    • Line 26: warning: exported var PythonAnalyzer should have comment or be unexported (golint)
    • Line 42: warning: exported function NewDiscover should have comment or be unexported (golint)
    • Line 86: warning: exported function AnalyzeSetupPy should have comment or be unexported (golint)
    • Line 94: warning: exported function AnalyzePip should have comment or be unexported (golint)
    • Line 107: warning: exported function AnalyzePipenv should have comment or be unexported (golint)
    • Line 113: warning: exported function AnalyzePipDepTree should have comment or be unexported (golint)
    • Line 126: warning: exported function AnalyzeRequirementsTxt should have comment or be unexported (golint)
    • fossa-cli/cmd/fossa/cmd/analyze/analyze.go
    • Line 30: warning: exported var ShowOutput should have comment or be unexported (golint)
    • Line 31: warning: exported var ServerScan should have comment or be unexported (golint)
    • Line 32: warning: exported var DevDependencies should have comment or be unexported (golint)
    • Line 34: warning: exported var Cmd should have comment or be unexported (golint)
    • Line 168: warning: exported function Run should have comment or be unexported (golint)
    • fossa-cli/api/fossa/users.go
    • Line 9: warning: exported const OrganizationAPI should have comment or be unexported (golint)
    • Line 13: warning: exported var MockOrgID should have comment or be unexported (golint)
    • Line 17: warning: exported type Organization should have comment or be unexported (golint)
    • Line 30: warning: exported function GetOrganizationID should have comment or be unexported (golint)
    • Line 38: warning: exported function GetOrganization should have comment or be unexported (golint)
    • fossa-cli/analyzers/debian/debian.go
    • Line 9: warning: exported type Analyzer should have comment or be unexported (golint)
    • Line 14: warning: exported function Discover should have comment or be unexported (golint)
    • Line 18: warning: exported function New should have comment or be unexported (golint)
    • Line 26: warning: exported method Analyzer.Clean should have comment or be unexported (golint)
    • Line 30: warning: exported method Analyzer.Build should have comment or be unexported (golint)
    • Line 34: warning: exported method Analyzer.IsBuilt should have comment or be unexported (golint)
    • fossa-cli/api/fossa/normalize2.go
    • Line 9: warning: exported type ApiModule should have comment or be unexported (golint)
    • Line 14: warning: exported type ApiAnalysis should have comment or be unexported (golint)
    • Line 19: warning: exported type ApiTaggedGraph should have comment or be unexported (golint)
    • Line 25: warning: exported type ApiDep should have comment or be unexported (golint)
    • Line 38: warning: exported function ApiFormatModules should have comment or be unexported (golint)
    • Line 51: warning: exported function ApiFormatAnalyses should have comment or be unexported (golint)
    • Line 64: warning: exported function ApiFormatGraphs should have comment or be unexported (golint)
    • Line 78: warning: exported function ApiFormatDeps should have comment or be unexported (golint)
    • Line 88: warning: exported function ApiFormatPackage should have comment or be unexported (golint)
    • fossa-cli/buildtools/yarn/yarn.go
    • Line 15: warning: exported type YarnTool should have comment or be unexported (golint)
    • Line 25: warning: exported type SystemYarn should have comment or be unexported (golint)
    • Line 29: warning: exported function New should have comment or be unexported (golint)
    • Line 41: warning: exported method SystemYarn.Exists should have comment or be unexported (golint)
    • Line 45: warning: exported method SystemYarn.Install should have comment or be unexported (golint)
    • Line 55: warning: exported type Output should have comment or be unexported (golint)
    • Line 58: warning: exported type Data should have comment or be unexported (golint)
    • Line 61: warning: exported type Child should have comment or be unexported (golint)
    • Line 67: warning: exported method SystemYarn.List should have comment or be unexported (golint)
    • fossa-cli/buildtools/carthage/cartfile.go
    • Line 16: warning: exported type Package should have comment or be unexported (golint)
    • Line 23: warning: exported type Requirement should have comment or be unexported (golint)
    • Line 30: warning: comment on exported method Requirement.Package should be of the form "Package ..." (golint)
    • Line 72: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 77: warning: comment on exported function FromResolvedCartfile should be of the form "FromResolvedCartfile ..." (golint)
    • Line 158: warning: exported function RecurseDeps should have comment or be unexported (golint)
    • fossa-cli/config/file.v1/file.go
    • Line 12: warning: exported type File should have comment or be unexported (golint)
    • Line 22: warning: exported type CLIProperties should have comment or be unexported (golint)
    • Line 40: warning: exported type AnalyzeProperties should have comment or be unexported (golint)
    • Line 44: warning: exported type ModuleProperties should have comment or be unexported (golint)
    • Line 53: warning: exported function New should have comment or be unexported (golint)
    • Line 105: warning: exported method File.GetVersion should have comment or be unexported (golint)
    • Line 109: warning: exported method File.APIKey should have comment or be unexported (golint)
    • Line 113: warning: exported method File.Server should have comment or be unexported (golint)
    • Line 117: warning: exported method File.Title should have comment or be unexported (golint)
    • Line 121: warning: exported method File.Fetcher should have comment or be unexported (golint)
    • Line 125: warning: exported method File.Project should have comment or be unexported (golint)
    • Line 129: warning: exported method File.Branch should have comment or be unexported (golint)
    • Line 133: warning: exported method File.ProjectURL should have comment or be unexported (golint)
    • Line 137: warning: exported method File.JIRAProjectKey should have comment or be unexported (golint)
    • Line 141: warning: exported method File.Link should have comment or be unexported (golint)
    • Line 145: warning: exported method File.Team should have comment or be unexported (golint)
    • Line 149: warning: exported method File.Policy should have comment or be unexported (golint)
    • Line 153: warning: exported method File.ReleaseGroup should have comment or be unexported (golint)
    • Line 157: warning: exported method File.ReleaseGroupVersion should have comment or be unexported (golint)
    • Line 161: warning: exported method File.Revision should have comment or be unexported (golint)
    • Line 165: warning: exported method File.Modules should have comment or be unexported (golint)
    • fossa-cli/buildtools/pip/pip.go
    • Line 17: warning: exported type Pip should have comment or be unexported (golint)
    • Line 22: warning: exported function New should have comment or be unexported (golint)
    • Line 45: warning: exported type Requirement should have comment or be unexported (golint)
    • Line 50: warning: exported type Constraint should have comment or be unexported (golint)
    • Line 67: warning: exported method Pip.Install should have comment or be unexported (golint)
    • Line 81: warning: exported method Pip.List should have comment or be unexported (golint)
    • Line 118: warning: exported function FromSetupPy should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell99%

Misspell Finds commonly misspelled English words