paths/copier.go

Summary

Maintainability
A
1 hr
Test Coverage

Function copyFile has 6 return statements (exceeds 4 allowed).
Open

func copyFile(src, dest string, info os.FileInfo) error {
    srcFile, err := os.Open(src)
    if err != nil {
        return err
    }
Severity: Major
Found in paths/copier.go - About 40 mins to fix

    Method Copier.copy has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        src string,
        dest string,
        blacklist map[string]struct{},
        info os.FileInfo,
        recursive bool,
    Severity: Minor
    Found in paths/copier.go - About 35 mins to fix

      exported method Copier.Copy should have comment or be unexported
      Open

      func (c *Copier) Copy(src, dest string, blacklist map[string]struct{}) error {
      Severity: Minor
      Found in paths/copier.go by golint

      exported type Copier should have comment or be unexported
      Open

      type Copier struct {
      Severity: Minor
      Found in paths/copier.go by golint

      exported function NewCopier should have comment or be unexported
      Open

      func NewCopier(logger logging.Logger, project string) *Copier {
      Severity: Minor
      Found in paths/copier.go by golint

      There are no issues that match your filters.

      Category
      Status