Preparing report...

Report for github.com/amitbasuri/go-algorithms

A+    Excellent!    Found 26 issues across 64 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!


golint60%

Golint is a linter for Go source code.

    • go-algorithms/interview/dunzo/palindromicSubstring.go
    • Line 29: warning: exported function ThreePalindromicSubstrings should have comment or be unexported (golint)
    • Line 62: warning: exported function IsPalindromic should have comment or be unexported (golint)
    • Line 73: warning: exported function ThreePalindromicSubstringsWithMemo should have comment or be unexported (golint)
    • Line 106: warning: exported type ThreePalindromicSubstringsMemo should have comment or be unexported (golint)
    • Line 108: warning: exported method ThreePalindromicSubstringsMemo.IsPalindromic should have comment or be unexported (golint)
    • go-algorithms/hackerRank/dynamicProg/zeroOneKnapsack.go
    • Line 1: warning: don't use MixedCaps in package name; dynamicProg should be dynamicprog (golint)
    • Line 3: warning: exported type KnapSack should have comment or be unexported (golint)
    • Line 9: warning: exported method KnapSack.WeightNew should have comment or be unexported (golint)
    • Line 30: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 48: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 56: warning: exported method KnapSack.Weight should have comment or be unexported (golint)
    • Line 77: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 95: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-algorithms/codility/07_StackQueue.go
    • Line 3: warning: comment on exported function FishSolution should be of the form "FishSolution ..." (golint)
    • Line 51: warning: comment on exported function StoneWallSolution should be of the form "StoneWallSolution ..." (golint)
    • go-algorithms/codility/09_MaxSlice.go
    • Line 3: warning: comment on exported function MaxProfitSolution should be of the form "MaxProfitSolution ..." (golint)
    • Line 33: warning: exported function MaxDoubleSliceSumSolution should have comment or be unexported (golint)
    • go-algorithms/codility/zalando.go
    • Line 3: warning: exported function SolutionBulb should have comment or be unexported (golint)
    • Line 21: warning: exported function SolutionPositiveNegative should have comment or be unexported (golint)
    • Line 58: warning: exported function SolutionNumeratorDenominator should have comment or be unexported (golint)
    • go-algorithms/interviewBit/amazon/longestIncreasingSubsequence.go
    • Line 31: warning: exported const MaxInt32 should have comment or be unexported (golint)
    • Line 32: warning: exported const MaxInt64 should have comment or be unexported (golint)
    • Line 33: warning: exported const MaxUint64 should have comment or be unexported (golint)
    • Line 34: warning: exported const MaxInt should have comment or be unexported (golint)
    • Line 35: warning: exported const MinInt should have comment or be unexported (golint)
    • go-algorithms/dynamicprograming/unboundedKnapsack.go
    • Line 16: warning: exported function RodCuttingProblem should have comment or be unexported (golint)
    • Line 35: warning: exported function RodCuttingProblemBU should have comment or be unexported (golint)
    • Line 63: warning: comment on exported function CoinChangeProblem should be of the form "CoinChangeProblem ..." (golint)
    • Line 97: warning: comment on exported function MinNumberOfCoins should be of the form "MinNumberOfCoins ..." (golint)
    • go-algorithms/dynamicprograming/longestCommonSubsequence.go
    • Line 3: warning: exported function LongestCommonSubsequenceTD should have comment or be unexported (golint)
    • Line 24: warning: exported function ShortestCommonSuperSubsequence should have comment or be unexported (golint)
    • Line 28: warning: exported function LongestCommonSubstringLength should have comment or be unexported (golint)
    • Line 39: warning: exported type LongestCommonSubstringLengthBottomUpArr should have comment or be unexported (golint)
    • Line 41: warning: exported method LongestCommonSubstringLengthBottomUpArr.Fill should have comment or be unexported (golint)
    • Line 62: warning: exported function MinNumInsertionDeletionToConvertS1ToS2 should have comment or be unexported (golint)
    • Line 72: warning: exported function LongestPalindromicSubsequenceLength should have comment or be unexported (golint)
    • go-algorithms/arrays/sorting.go
    • Line 3: warning: exported function BubbleSort should have comment or be unexported (golint)
    • Line 21: warning: exported function InsertionSort should have comment or be unexported (golint)
    • Line 31: warning: exported function SelectionSort should have comment or be unexported (golint)
    • go-algorithms/stack/stack.go
    • Line 3: warning: comment on exported function NextGreaterElementNaive should be of the form "NextGreaterElementNaive ..." (golint)
    • Line 28: warning: exported function NextGreaterElement should have comment or be unexported (golint)
    • Line 46: warning: comment on exported function PreviousGreaterElement should be of the form "PreviousGreaterElement ..." (golint)
    • Line 65: warning: comment on exported function PreviousSmallerElement should be of the form "PreviousSmallerElement ..." (golint)
    • Line 84: warning: exported function PreviousSmallerIndex should have comment or be unexported (golint)
    • Line 101: warning: exported function NextSmallerElement should have comment or be unexported (golint)
    • Line 119: warning: exported function NextSmallerIndex should have comment or be unexported (golint)
    • Line 137: warning: comment on exported function StockSpanProblem should be of the form "StockSpanProblem ..." (golint)
    • Line 163: warning: comment on exported function MaximumAreaHistogram should be of the form "MaximumAreaHistogram ..." (golint)
    • go-algorithms/binarysearch/binarySearch.go
    • Line 3: warning: comment on exported function SearchAsc should be of the form "SearchAsc ..." (golint)
    • Line 22: warning: comment on exported function SearchDesc should be of the form "SearchDesc ..." (golint)
    • Line 59: warning: comment on exported function RotationCount should be of the form "RotationCount ..." (golint)
    • Line 94: warning: comment on exported function RotatedArrSearch should be of the form "RotatedArrSearch ..." (golint)
    • Line 118: warning: comment on exported function NearlySortedArrSearch should be of the form "NearlySortedArrSearch ..." (golint)
    • Line 170: warning: comment on exported function FloorInSortedArr should be of the form "FloorInSortedArr ..." (golint)
    • Line 195: warning: comment on exported function NextLetter should be of the form "NextLetter ..." (golint)
    • go-algorithms/codility/05_PrefixSums.go
    • Line 3: warning: comment on exported function NaiveDnaSeqSolution should be of the form "NaiveDnaSeqSolution ..." (golint)
    • Line 49: warning: exported function DnaSeqSolution should have comment or be unexported (golint)
    • Line 101: warning: exported function MinAvgTwoSliceSolution should have comment or be unexported (golint)
    • Line 128: warning: exported function PassingCarsSolution should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!