reliqarts/go-docweaver

View on GitHub

Showing 2 of 2 total issues

Method productRepository.GetPage has 5 return statements (exceeds 4 allowed).
Open

func (pr *productRepository) GetPage(productKey, version, pagePath string) (*Page, error) {
    if productKey == "" {
        err := simpleError{err: "No product key provided."}
        log(lError, err.Error())
        return nil, err
Severity: Major
Found in product_repository.go - About 35 mins to fix

    Method publisher.publishProductVersion has 5 return statements (exceeds 4 allowed).
    Open

    func (p *publisher) publishProductVersion(pr productRoot, version string, update bool) error {
        prFullPath := pr.filePath()
        versionTemp := versionTempName(version)
        verPath := pr.versionFilePath(version)
        verPathTemp := pr.versionFilePath(versionTemp)
    Severity: Major
    Found in publisher.go - About 35 mins to fix
      Severity
      Category
      Status
      Source
      Language