Showing 3 of 134 total issues
Function GenerateChangelog
has 59 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func GenerateChangelog(r *Release) {
// load all unreleased Files
err := GetEntries(r)
if err != nil {
log.Fatal(err)
Function findTopDir
has 8 return statements (exceeds 4 allowed). Open
Open
func findTopDir(cwd string) (string, error) {
var err error
var fs os.FileInfo
var c bool
var prevPath string // prevPath contains the previous path to prevent an infinite loop
Function GetCurrentBranchFromRepository
has 6 return statements (exceeds 4 allowed). Open
Open
func GetCurrentBranchFromRepository(repository *git.Repository) (string, error) {
branchRefs, err := repository.Branches()
if err != nil {
return "", err
}