Preparing report...

Report for github.com/hscells/groove

A    Great!    Found 64 issues across 106 files

Tweet

gofmt96%

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!


gocyclo81%

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.

    • groove/analysis/reachability.go
    • Line 120: warning: cyclomatic complexity 34 of function ConceptMatchReachability() is high (> 15) (gocyclo)
    • Line 34: warning: cyclomatic complexity 19 of function StringMatchReachability() is high (> 15) (gocyclo)
    • Line 274: warning: cyclomatic complexity 16 of function MetaMapScoreDistributions() is high (> 15) (gocyclo)
    • groove/scripts/objective_qf/main.go
    • Line 772: warning: cyclomatic complexity 33 of function FilterQueryTerms() is high (> 15) (gocyclo)
    • Line 973: warning: cyclomatic complexity 20 of function AddMeSHTerms() is high (> 15) (gocyclo)
    • Line 932: warning: cyclomatic complexity 19 of function maximumCoverage() is high (> 15) (gocyclo)
    • groove/formulation/objective.go
    • Line 530: warning: cyclomatic complexity 37 of function FilterQueryTerms() is high (> 15) (gocyclo)
    • Line 765: warning: cyclomatic complexity 24 of function addMeSHTerms() is high (> 15) (gocyclo)
    • Line 704: warning: cyclomatic complexity 19 of function maximumCoverage() is high (> 15) (gocyclo)
    • Line 1022: warning: cyclomatic complexity 19 of function (ObjectiveFormulator).derive() is high (> 15) (gocyclo)
    • groove/rank/clf.go
    • Line 44: warning: cyclomatic complexity 35 of function clf() is high (> 15) (gocyclo)
    • Line 483: warning: cyclomatic complexity 25 of function clfVariations() is high (> 15) (gocyclo)
    • Line 701: warning: cyclomatic complexity 20 of function CLF() is high (> 15) (gocyclo)
    • Line 257: warning: cyclomatic complexity 18 of function clm() is high (> 15) (gocyclo)
    • Line 349: warning: cyclomatic complexity 18 of function scoreWithPubMed() is high (> 15) (gocyclo)

golint46%

Golint is a linter for Go source code.

    • groove/analysis/mesh.go
    • Line 11: warning: exported var MeSHTree should have comment or be unexported (golint)
    • Line 14: warning: exported var MeshKeywordCount should have comment or be unexported (golint)
    • groove/rank/score.go
    • Line 13: warning: exported type Scorer should have comment or be unexported (golint)
    • Line 19: warning: exported type TitleAbstractScorer should have comment or be unexported (golint)
    • Line 24: warning: exported type TFIDFScorer should have comment or be unexported (golint)
    • Line 29: warning: exported type IDFScorer should have comment or be unexported (golint)
    • Line 34: warning: exported type BM25Scorer should have comment or be unexported (golint)
    • Line 41: warning: exported type DocLenScorer should have comment or be unexported (golint)
    • Line 46: warning: exported type PubDateScorer should have comment or be unexported (golint)
    • Line 51: warning: exported type VectorSpaceScorer should have comment or be unexported (golint)
    • Line 56: warning: exported type PosScorer should have comment or be unexported (golint)
    • Line 61: warning: exported type SumIDFScorer should have comment or be unexported (golint)
    • Line 66: warning: exported type LnL2Scorer should have comment or be unexported (golint)
    • Line 71: warning: exported type DirichletTermProbScorer should have comment or be unexported (golint)
    • Line 77: warning: exported type SumTFScorer should have comment or be unexported (golint)
    • Line 82: warning: exported method SumTFScorer.Score should have comment or be unexported (golint)
    • Line 107: warning: exported method LnL2Scorer.Score should have comment or be unexported (golint)
    • Line 149: warning: exported method SumIDFScorer.Score should have comment or be unexported (golint)
    • Line 178: warning: exported method PubDateScorer.Score should have comment or be unexported (golint)
    • Line 206: warning: exported method PosScorer.Score should have comment or be unexported (golint)
    • Line 231: warning: exported method VectorSpaceScorer.Score should have comment or be unexported (golint)
    • Line 275: warning: exported method TitleAbstractScorer.Score should have comment or be unexported (golint)
    • Line 322: warning: exported method DocLenScorer.Score should have comment or be unexported (golint)
    • Line 355: warning: exported method DirichletTermProbScorer.Score should have comment or be unexported (golint)
    • Line 377: warning: exported method TFIDFScorer.Score should have comment or be unexported (golint)
    • Line 412: warning: exported method IDFScorer.Score should have comment or be unexported (golint)
    • Line 438: warning: exported method BM25Scorer.Score should have comment or be unexported (golint)
    • Line 502: warning: exported var MESH should have comment or be unexported (golint)
    • groove/learning/chaingeneration.go
    • Line 11: warning: exported type GenerationResult should have comment or be unexported (golint)
    • Line 33: warning: exported function NewBreadthFirstExplorer should have comment or be unexported (golint)
    • Line 63: warning: exported method BreadthFirstExplorer.Traverse should have comment or be unexported (golint)
    • Line 122: warning: exported function NewDepthFirstExplorer should have comment or be unexported (golint)
    • Line 134: warning: comment on exported type DepthFirstSamplingCriteria should be of the form "DepthFirstSamplingCriteria ..." (with optional leading article) (golint)
    • Line 184: warning: comment on exported function BalancedEvaluationSamplingCriteria should be of the form "BalancedEvaluationSamplingCriteria ..." (golint)
    • Line 229: warning: exported method DepthFirstExplorer.Traverse should have comment or be unexported (golint)
    • groove/formulation/objective.go
    • Line 42: warning: exported type BackgroundCollection should have comment or be unexported (golint)
    • Line 49: warning: exported type TermStatistics should have comment or be unexported (golint)
    • Line 51: warning: exported type PopulationSet should have comment or be unexported (golint)
    • Line 53: warning: exported method PopulationSet.Statistic should have comment or be unexported (golint)
    • Line 57: warning: exported method PopulationSet.Size should have comment or be unexported (golint)
    • Line 61: warning: exported type PubMedSet should have comment or be unexported (golint)
    • Line 65: warning: exported method PubMedSet.Statistic should have comment or be unexported (golint)
    • Line 74: warning: exported method PubMedSet.Size should have comment or be unexported (golint)
    • Line 78: warning: exported function NewPubMedSet should have comment or be unexported (golint)
    • Line 94: warning: exported type QueryCategory should have comment or be unexported (golint)
    • Line 203: warning: exported type RandomSplitter should have comment or be unexported (golint)
    • Line 205: warning: comment on exported method RandomSplitter.Split should be of the form "Split ..." (golint)
    • Line 254: warning: exported function RAKEAnalyser should have comment or be unexported (golint)
    • groove/analysis/preqpp/tf.go
    • Line 12: warning: exported type TF should have comment or be unexported (golint)
    • Line 14: warning: exported method TF.Name should have comment or be unexported (golint)
    • Line 18: warning: exported method TF.Execute should have comment or be unexported (golint)
    • groove/rank/runner.go
    • Line 18: warning: exported type Runner should have comment or be unexported (golint)
    • Line 230: warning: exported method Runner.Run should have comment or be unexported (golint)
    • Line 257: warning: exported function NewRunner should have comment or be unexported (golint)
    • groove/learning/transformations.go
    • Line 21: warning: exported const LogicalOperatorTransformation should have comment (or a comment on this block) or be unexported (golint)
    • Line 39: warning: exported type BooleanTransformer should have comment or be unexported (golint)
    • Line 111: warning: comment on exported function Newcui2vecExpansionTransformer should be of the form "Newcui2vecExpansionTransformer ..." (golint)
    • Line 128: warning: exported function NewMeshParentTransformer should have comment or be unexported (golint)
    • Line 132: warning: exported var ComputeFeatures should have comment or be unexported (golint)
    • groove/formulation/formulator.go
    • Line 56: warning: exported type ObjectiveOption should have comment or be unexported (golint)
    • Line 58: warning: exported function ObjectiveGrid should have comment or be unexported (golint)
    • Line 66: warning: exported function ObjectiveSplitter should have comment or be unexported (golint)
    • Line 72: warning: exported function ObjectiveAnalyser should have comment or be unexported (golint)
    • Line 79: warning: exported function ObjectivePostProcessing should have comment or be unexported (golint)
    • Line 85: warning: exported function ObjectiveMinDocs should have comment or be unexported (golint)
    • Line 91: warning: exported function ObjectiveOptimisation should have comment or be unexported (golint)
    • Line 96: warning: exported function ObjectiveQrels should have comment or be unexported (golint)
    • Line 101: warning: exported function ObjectivePopulation should have comment or be unexported (golint)
    • Line 107: warning: exported function ObjectiveQuery should have comment or be unexported (golint)
    • Line 113: warning: exported function ObjectiveSeed should have comment or be unexported (golint)
    • Line 119: warning: exported function NewObjectiveFormulator should have comment or be unexported (golint)
    • Line 155: warning: exported method ObjectiveFormulator.Derive should have comment or be unexported (golint)
    • Line 261: warning: exported method ObjectiveFormulator.Method should have comment or be unexported (golint)
    • Line 265: warning: exported method ObjectiveFormulator.Topic should have comment or be unexported (golint)
    • Line 269: warning: exported function NewConceptualFormulator should have comment or be unexported (golint)
    • Line 281: warning: exported method ConceptualFormulator.Formulate should have comment or be unexported (golint)
    • Line 334: warning: exported method ConceptualFormulator.Method should have comment or be unexported (golint)
    • groove/eval/rank.go
    • Line 10: warning: exported type DCG should have comment or be unexported (golint)
    • Line 11: warning: exported type NDCG should have comment or be unexported (golint)
    • Line 14: warning: exported var AP should have comment or be unexported (golint)
    • Line 43: warning: exported method DCG.Score should have comment or be unexported (golint)
    • Line 57: warning: exported method DCG.Name should have comment or be unexported (golint)
    • Line 61: warning: exported method NDCG.Score should have comment or be unexported (golint)
    • Line 82: warning: exported method NDCG.Name should have comment or be unexported (golint)
    • groove/rank/clf.go
    • Line 666: warning: exported type CLFOptions should have comment or be unexported (golint)
    • Line 692: warning: exported method CLFOptions.SetVariationOptions should have comment or be unexported (golint)
    • Line 790: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • groove/formulation/entityextraction.go
    • Line 8: warning: exported const Entity should have comment or be unexported (golint)
    • Line 21: warning: exported method MetaMapEntityExtractor.Extract should have comment or be unexported (golint)
    • Line 54: warning: exported function NewMetaMapEntityExtractor should have comment or be unexported (golint)
    • groove/eval/mle.go
    • Line 35: warning: exported method MaximumLikelihoodEvaluator.Residual should have comment or be unexported (golint)
    • Line 67: warning: exported method MaximumLikelihoodEvaluator.Name should have comment or be unexported (golint)
    • Line 71: warning: exported method MaximumLikelihoodEvaluator.Score should have comment or be unexported (golint)
    • groove/cmd/reverb/main.go
    • Line 53: warning: exported type Reverb should have comment or be unexported (golint)
    • Line 55: warning: exported method Reverb.Execute should have comment or be unexported (golint)
    • groove/formulation/logiccomposition.go
    • Line 25: warning: exported type LogicComposer should have comment or be unexported (golint)
    • Line 34: warning: exported function NewNLPLogicComposer should have comment or be unexported (golint)
    • Line 47: warning: exported type RAKELogicComposer should have comment or be unexported (golint)
    • Line 57: warning: exported function NewRAKELogicComposer should have comment or be unexported (golint)
    • Line 216: warning: exported method NLPLogicComposer.Compose should have comment or be unexported (golint)
    • Line 340: warning: exported method RAKELogicComposer.Compose should have comment or be unexported (golint)
    • groove/rank/index.go
    • Line 14: warning: exported type Statistics should have comment or be unexported (golint)
    • Line 19: warning: exported type Posting should have comment or be unexported (golint)
    • Line 32: warning: exported var H should have comment or be unexported (golint)
    • Line 52: warning: exported function Index should have comment or be unexported (golint)
    • Line 198: warning: exported method Posting.DocumentVector should have comment or be unexported (golint)
    • Line 235: warning: exported method Posting.Tf should have comment or be unexported (golint)
    • Line 283: warning: exported method Posting.Pos should have comment or be unexported (golint)
    • Line 319: warning: exported method Posting.DocLen should have comment or be unexported (golint)
    • Line 323: warning: exported method Posting.AvgDocLen should have comment or be unexported (golint)
    • Line 331: warning: exported method Posting.TTf should have comment or be unexported (golint)
    • Line 347: warning: exported method Posting.VocabSize should have comment or be unexported (golint)
    • Line 360: warning: exported method Posting.DocumentTermProbability should have comment or be unexported (golint)
    • Line 372: warning: exported method Posting.CollectionTermProbability should have comment or be unexported (golint)
    • Line 384: warning: exported method Posting.DirichlectTermProbability should have comment or be unexported (golint)
    • groove/eval/residual.go
    • Line 37: warning: exported method ResidualEvaluator.Name should have comment or be unexported (golint)
    • Line 41: warning: exported method ResidualEvaluator.Score should have comment or be unexported (golint)
    • groove/analysis/reachability.go
    • Line 18: warning: exported type KeywordReachability should have comment or be unexported (golint)
    • Line 24: warning: exported type ConceptReachability should have comment or be unexported (golint)
    • Line 34: warning: exported function StringMatchReachability should have comment or be unexported (golint)
    • Line 120: warning: exported function ConceptMatchReachability should have comment or be unexported (golint)
    • Line 274: warning: exported function MetaMapScoreDistributions should have comment or be unexported (golint)
    • groove/learning/oracle.go
    • Line 33: warning: exported method OracleQueryChainCandidateSelector.Train should have comment or be unexported (golint)
    • Line 37: warning: exported method OracleQueryChainCandidateSelector.Output should have comment or be unexported (golint)
    • groove/learning/sampler.go
    • Line 17: warning: exported type Sampler should have comment or be unexported (golint)
    • Line 33: warning: exported function BalancedTransformationStrategy should have comment or be unexported (golint)
    • Line 67: warning: exported function StratifiedTransformationStrategy should have comment or be unexported (golint)
    • Line 122: warning: exported method TransformationSampler.Sample should have comment or be unexported (golint)
    • Line 137: warning: exported function NewTransformationSampler should have comment or be unexported (golint)
    • Line 152: warning: exported method RandomSampler.Sample should have comment or be unexported (golint)
    • Line 183: warning: exported function NewRandomSampler should have comment or be unexported (golint)
    • Line 211: warning: exported function BalancedScoredStrategy should have comment or be unexported (golint)
    • Line 237: warning: exported function StratifiedScoredStrategy should have comment or be unexported (golint)
    • Line 378: warning: exported method EvaluationSampler.Sample should have comment or be unexported (golint)
    • Line 444: warning: exported function NewEvaluationSampler should have comment or be unexported (golint)
    • Line 466: warning: exported type GreedyStrategy should have comment or be unexported (golint)
    • Line 468: warning: comment on exported type GreedyCandidateQuery should be of the form "GreedyCandidateQuery ..." (with optional leading article) (golint)
    • Line 475: warning: exported function RankedGreedyStrategy should have comment or be unexported (golint)
    • Line 496: warning: exported function MaximalMarginalRelevanceGreedyStrategy should have comment or be unexported (golint)
    • Line 507: warning: exported method GreedySampler.Sample should have comment or be unexported (golint)
    • Line 573: warning: exported function NewGreedySampler should have comment or be unexported (golint)
    • Line 583: warning: exported type ClusterSampler should have comment or be unexported (golint)
    • Line 589: warning: exported method ClusterSampler.Sample should have comment or be unexported (golint)
    • Line 635: warning: exported function NewClusterSampler should have comment or be unexported (golint)
    • groove/query/protocol.go
    • Line 63: warning: exported method ProtocolQuerySource.Load should have comment or be unexported (golint)
    • Line 95: warning: exported function NewProtocolQuerySource should have comment or be unexported (golint)
    • Line 99: warning: exported method QuickUMLSProtocolQuerySource.Load should have comment or be unexported (golint)
    • Line 131: warning: exported function NewQuickUMLSProtocolQuerySource should have comment or be unexported (golint)
    • groove/learning/ltr_random.go
    • Line 8: warning: exported type RandomCandidateSelector should have comment or be unexported (golint)
    • Line 12: warning: exported method RandomCandidateSelector.Select should have comment or be unexported (golint)
    • Line 23: warning: exported method RandomCandidateSelector.Train should have comment or be unexported (golint)
    • Line 27: warning: exported method RandomCandidateSelector.Output should have comment or be unexported (golint)
    • Line 32: warning: exported method RandomCandidateSelector.StoppingCriteria should have comment or be unexported (golint)
    • Line 39: warning: exported function NewRandomCandidateSelector should have comment or be unexported (golint)
    • groove/learning/nearestneighbour.go
    • Line 16: warning: exported var NNFeaturesN should have comment or be unexported (golint)
    • Line 19: warning: exported type NearestNeighbourQueryCandidateSelector should have comment or be unexported (golint)
    • Line 48: warning: exported method NearestNeighbourQueryCandidateSelector.Predict should have comment or be unexported (golint)
    • Line 80: warning: exported method NearestNeighbourQueryCandidateSelector.Select should have comment or be unexported (golint)
    • Line 182: warning: exported method NearestNeighbourQueryCandidateSelector.Train should have comment or be unexported (golint)
    • Line 233: warning: exported method NearestNeighbourQueryCandidateSelector.Output should have comment or be unexported (golint)
    • Line 237: warning: exported method NearestNeighbourQueryCandidateSelector.StoppingCriteria should have comment or be unexported (golint)
    • Line 241: warning: exported function NearestNeighbourLoadModel should have comment or be unexported (golint)
    • Line 257: warning: exported function NearestNeighbourModelName should have comment or be unexported (golint)
    • Line 263: warning: exported function NearestNeighbourDepth should have comment or be unexported (golint)
    • Line 269: warning: exported function NearestNeighbourStatisticsSource should have comment or be unexported (golint)
    • Line 275: warning: exported function NewNearestNeighbourCandidateSelector should have comment or be unexported (golint)
    • groove/learning/ltr_quickrank.go
    • Line 15: warning: exported type QuickRankQueryCandidateSelector should have comment or be unexported (golint)
    • Line 39: warning: exported method QuickRankQueryCandidateSelector.Select should have comment or be unexported (golint)
    • Line 134: warning: exported method QuickRankQueryCandidateSelector.Train should have comment or be unexported (golint)
    • Line 182: warning: exported method QuickRankQueryCandidateSelector.Output should have comment or be unexported (golint)
    • Line 187: warning: exported method QuickRankQueryCandidateSelector.StoppingCriteria should have comment or be unexported (golint)
    • Line 191: warning: exported function QuickRankCandidateSelectorMaxDepth should have comment or be unexported (golint)
    • Line 197: warning: exported function QuickRankCandidateSelectorStatisticsSource should have comment or be unexported (golint)
    • Line 203: warning: exported function NewQuickRankQueryCandidateSelector should have comment or be unexported (golint)
    • groove/learning/chain.go
    • Line 1: warning: package comment should be of the form "Package learning ..." (golint)
    • Line 142: warning: exported method QueryChain.Test should have comment or be unexported (golint)
    • Line 187: warning: exported method QueryChain.Validate should have comment or be unexported (golint)
    • Line 301: warning: exported function NewNearestNeighbourQueryChain should have comment or be unexported (golint)
    • Line 307: warning: exported function NewQuickRankQueryChain should have comment or be unexported (golint)
    • Line 313: warning: exported function NewReinforcementQueryChain should have comment or be unexported (golint)
    • groove/formulation/decisiontree.go
    • Line 20: warning: exported type DecisionTreeFormulator should have comment or be unexported (golint)
    • Line 36: warning: exported const NA should have comment (or a comment on this block) or be unexported (golint)
    • Line 79: warning: exported function Entropy should have comment or be unexported (golint)
    • Line 87: warning: exported function InformationGain should have comment or be unexported (golint)
    • Line 161: warning: exported function ID3 should have comment or be unexported (golint)
    • Line 353: warning: exported method DecisionTreeFormulator.Formulate should have comment or be unexported (golint)
    • Line 381: warning: exported method DecisionTreeFormulator.Method should have comment or be unexported (golint)
    • Line 385: warning: exported function NewDecisionTreeFormulator should have comment or be unexported (golint)
    • groove/scripts/objective_qf/main.go
    • Line 32: warning: exported type Terms should have comment or be unexported (golint)
    • Line 34: warning: exported type MappingPair should have comment or be unexported (golint)
    • Line 39: warning: exported type Mapping should have comment or be unexported (golint)
    • Line 44: warning: exported type QueryCategory should have comment or be unexported (golint)
    • Line 46: warning: exported type Evaluation should have comment or be unexported (golint)
    • Line 53: warning: exported const None should have comment (or a comment on this block) or be unexported (golint)
    • Line 191: warning: exported function DeriveAndEvaluateQueries should have comment or be unexported (golint)
    • Line 244: warning: exported function DeriveQueries should have comment or be unexported (golint)
    • Line 362: warning: exported function Evaluate should have comment or be unexported (golint)
    • Line 956: warning: exported function MakeKeywords should have comment or be unexported (golint)
    • Line 973: warning: exported function AddMeSHTerms should have comment or be unexported (golint)
    • groove/learning/reinforcement.go
    • Line 10: warning: exported type ReinforcementQueryCandidateSelector should have comment or be unexported (golint)
    • Line 15: warning: exported method ReinforcementQueryCandidateSelector.Select should have comment or be unexported (golint)
    • Line 19: warning: exported method ReinforcementQueryCandidateSelector.Train should have comment or be unexported (golint)
    • Line 23: warning: exported method ReinforcementQueryCandidateSelector.Output should have comment or be unexported (golint)
    • Line 42: warning: exported method ReinforcementQueryCandidateSelector.StoppingCriteria should have comment or be unexported (golint)
    • groove/stats/entrez.go
    • Line 30: warning: exported type EntrezStatisticsSource should have comment or be unexported (golint)
    • Line 88: warning: exported type Search should have comment or be unexported (golint)
    • Line 92: warning: exported method EntrezStatisticsSource.SetDB should have comment or be unexported (golint)
    • Line 97: warning: exported method EntrezStatisticsSource.Count should have comment or be unexported (golint)
    • Line 108: warning: exported method EntrezStatisticsSource.SearchStart should have comment or be unexported (golint)
    • Line 114: warning: exported method EntrezStatisticsSource.SearchSize should have comment or be unexported (golint)
    • Line 315: warning: exported method EntrezStatisticsSource.Link should have comment or be unexported (golint)
    • Line 335: warning: exported method EntrezStatisticsSource.SearchOptions should have comment or be unexported (golint)
    • Line 339: warning: exported method EntrezStatisticsSource.Parameters should have comment or be unexported (golint)
    • Line 343: warning: exported method EntrezStatisticsSource.TermFrequency should have comment or be unexported (golint)
    • Line 368: warning: exported method EntrezStatisticsSource.TermVector should have comment or be unexported (golint)
    • Line 442: warning: exported method EntrezStatisticsSource.DocumentFrequency should have comment or be unexported (golint)
    • Line 450: warning: exported method EntrezStatisticsSource.TotalTermFrequency should have comment or be unexported (golint)
    • Line 475: warning: exported method EntrezStatisticsSource.InverseDocumentFrequency should have comment or be unexported (golint)
    • Line 480: warning: exported method EntrezStatisticsSource.RetrievalSize should have comment or be unexported (golint)
    • Line 522: warning: exported method EntrezStatisticsSource.VocabularySize should have comment or be unexported (golint)
    • Line 535: warning: exported method EntrezStatisticsSource.Execute should have comment or be unexported (golint)
    • Line 577: warning: exported method EntrezStatisticsSource.CollectionSize should have comment or be unexported (golint)
    • Line 591: warning: exported method EntrezStatisticsSource.Translation should have comment or be unexported (golint)
    • Line 616: warning: comment on exported function EntrezEmail should be of the form "EntrezEmail ..." (golint)
    • Line 623: warning: comment on exported function EntrezAPIKey should be of the form "EntrezAPIKey ..." (golint)
    • Line 637: warning: comment on exported function EntrezLimiter should be of the form "EntrezLimiter ..." (golint)
    • Line 651: warning: exported function EntrezRank should have comment or be unexported (golint)
    • groove/query/tartask2.go
    • Line 18: warning: exported type TARTask2QueriesSource should have comment or be unexported (golint)
    • Line 21: warning: exported method TARTask2QueriesSource.LoadSingle should have comment or be unexported (golint)
    • Line 74: warning: exported method TARTask2QueriesSource.Load should have comment or be unexported (golint)
    • Line 127: warning: exported method TARTask2QueriesSource.ReadAndWriteQueries should have comment or be unexported (golint)
    • Line 168: warning: exported method TARTask2QueriesSource.LoadQueriesFromBin should have comment or be unexported (golint)
    • groove/rank/ranker.go
    • Line 8: warning: exported type ScoredDocument should have comment or be unexported (golint)
    • Line 14: warning: exported type ScoredDocuments should have comment or be unexported (golint)
    • Line 18: warning: exported function Rank should have comment or be unexported (golint)
    • groove/learning/rank_oracle.go
    • Line 14: warning: exported type RankOracleCandidateSelector should have comment or be unexported (golint)
    • Line 28: warning: exported method RankOracleCandidateSelector.Select should have comment or be unexported (golint)
    • Line 66: warning: exported method RankOracleCandidateSelector.Train should have comment or be unexported (golint)
    • Line 70: warning: exported method RankOracleCandidateSelector.Output should have comment or be unexported (golint)
    • Line 74: warning: exported method RankOracleCandidateSelector.StoppingCriteria should have comment or be unexported (golint)
    • Line 78: warning: exported function NewRankOracleCandidateSelector should have comment or be unexported (golint)
    • groove/formulation/postprocess.go
    • Line 46: warning: exported function RelevanceFeedback should have comment or be unexported (golint)
    • Line 191: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 213: warning: comment on exported var SensitivityFilter should be of the form "SensitivityFilter ..." (golint)
    • Line 243: warning: comment on exported var PrecisionSensitivityFilter should be of the form "PrecisionSensitivityFilter ..." (golint)
    • groove/formulation/entityexpansion.go
    • Line 19: warning: comment on exported type Cui2VecRPCEntityExpander should be of the form "Cui2VecRPCEntityExpander ..." (with optional leading article) (golint)
    • Line 96: warning: exported function NewCui2VecRPCEntityExpander should have comment or be unexported (golint)
    • Line 100: warning: exported function NewCui2VecEntityExpander should have comment or be unexported (golint)
    • Line 104: warning: exported method Cui2VecRPCEntityExpander.Expand should have comment or be unexported (golint)
    • Line 124: warning: exported method Cui2VecEntityExpander.Expand should have comment or be unexported (golint)
    • groove/eval/precrec.go
    • Line 9: warning: exported var RelevanceGrade should have comment or be unexported (golint)
    • Line 13: warning: exported type PrecisionAtK should have comment or be unexported (golint)
    • Line 14: warning: exported type RecallAtK should have comment or be unexported (golint)
    • Line 19: warning: exported type WorkSavedOverSampling should have comment or be unexported (golint)
    • Line 121: warning: exported method PrecisionAtK.Score should have comment or be unexported (golint)
    • Line 130: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 136: warning: exported method PrecisionAtK.Name should have comment or be unexported (golint)
    • Line 140: warning: exported method RecallAtK.Score should have comment or be unexported (golint)
    • Line 143: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 155: warning: exported method RecallAtK.Name should have comment or be unexported (golint)
    • Line 235: warning: exported method WorkSavedOverSampling.Score should have comment or be unexported (golint)
    • Line 247: warning: exported method WorkSavedOverSampling.Name should have comment or be unexported (golint)
    • Line 251: warning: exported function NewWSSEvaluator should have comment or be unexported (golint)
    • groove/query/transmute.go
    • Line 39: warning: comment on exported var CQRTransmutePipeline should be of the form "CQRTransmutePipeline ..." (golint)
    • Line 57: warning: exported method TransmuteQuerySource.LoadSingle should have comment or be unexported (golint)
    • groove/analysis/measurement.go
    • Line 128: warning: comment on exported function QueryFieldsOfField should be of the form "QueryFieldsOfField ..." (golint)
    • Line 195: warning: comment on exported function QueryBooleanClauseCount should be of the form "QueryBooleanClauseCount ..." (golint)
    • Line 215: warning: comment on exported function KeywordsWithField should be of the form "KeywordsWithField ..." (golint)
    • Line 240: warning: comment on exported function MeshNonExplodedKeywords should be of the form "MeshNonExplodedKeywords ..." (golint)
    • groove/learning/feature.go
    • Line 36: warning: exported const DepthFeature should have comment (or a comment on this block) or be unexported (golint)
    • Line 40: warning: comment on exported const TransformationTypeFeature should be of the form "TransformationTypeFeature ..." (golint)
    • Line 52: warning: comment on exported const IsExplodedFeature should be of the form "IsExplodedFeature ..." (golint)
    • Line 57: warning: comment on exported const OperatorTypeFeature should be of the form "OperatorTypeFeature ..." (golint)
    • Line 63: warning: comment on exported const ProtocolQueryTypeFeature should be of the form "ProtocolQueryTypeFeature ..." (golint)
    • Line 94: warning: comment on exported var ChainFeatures should be of the form "ChainFeatures ..." (golint)
    • Line 109: warning: exported method Features.Scores should have comment or be unexported (golint)
    • Line 138: warning: exported function LoadFeatures should have comment or be unexported (golint)
    • Line 198: warning: exported function LoadReinforcementFeatures should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign86%

IneffAssign detects ineffectual assignments in Go code.

    • groove/rank/runner.go
    • Line 104: warning: ineffectual assignment to err (ineffassign)
    • Line 115: warning: ineffectual assignment to err (ineffassign)
    • Line 144: warning: ineffectual assignment to err (ineffassign)
    • Line 155: warning: ineffectual assignment to err (ineffassign)

misspell99%

Misspell Finds commonly misspelled English words