Preparing report...

Report for github.com/ivopetiz/influxdb

A+    Excellent!    Found 225 issues across 541 files

Tweet

gofmt94%

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!


golint71%

Golint is a linter for Go source code.

    • influxdb/logger/fields.go
    • Line 70: warning: comment on exported function OperationEventEnd should be of the form "OperationEventEnd ..." (golint)
    • Line 80: warning: comment on exported function RetentionPolicy should be of the form "RetentionPolicy ..." (golint)
    • influxdb/cmd/influx_tools/internal/format/binary/reader.go
    • Line 14: warning: exported type Reader should have comment or be unexported (golint)
    • Line 37: warning: exported function NewReader should have comment or be unexported (golint)
    • Line 45: warning: exported method Reader.ReadHeader should have comment or be unexported (golint)
    • Line 74: warning: exported method Reader.Close should have comment or be unexported (golint)
    • Line 78: warning: exported method Reader.NextBucket should have comment or be unexported (golint)
    • Line 105: warning: exported method Reader.NextSeries should have comment or be unexported (golint)
    • Line 150: warning: exported method Reader.Points should have comment or be unexported (golint)
    • Line 154: warning: exported type PointsReader should have comment or be unexported (golint)
    • Line 163: warning: exported method PointsReader.Reset should have comment or be unexported (golint)
    • Line 168: warning: exported method PointsReader.Next should have comment or be unexported (golint)
    • Line 192: warning: exported method PointsReader.Values should have comment or be unexported (golint)
    • influxdb/tsdb/cursor.go
    • Line 19: warning: exported type IntegerArrayCursor should have comment or be unexported (golint)
    • Line 24: warning: exported type FloatArrayCursor should have comment or be unexported (golint)
    • Line 29: warning: exported type UnsignedArrayCursor should have comment or be unexported (golint)
    • Line 34: warning: exported type StringArrayCursor should have comment or be unexported (golint)
    • Line 39: warning: exported type BooleanArrayCursor should have comment or be unexported (golint)
    • Line 44: warning: exported type CursorRequest should have comment or be unexported (golint)
    • Line 53: warning: exported type CursorIterator should have comment or be unexported (golint)
    • Line 57: warning: exported type CursorIterators should have comment or be unexported (golint)
    • Line 59: warning: exported function CreateCursorIterators should have comment or be unexported (golint)
    • influxdb/query/execution_context.go
    • Line 61: warning: exported method ExecutionContext.Done should have comment or be unexported (golint)
    • Line 77: warning: exported method ExecutionContext.Err should have comment or be unexported (golint)
    • Line 83: warning: exported method ExecutionContext.Value should have comment or be unexported (golint)
    • influxdb/cmd/store/query/query.go
    • Line 196: 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)
    • influxdb/query/functions.go
    • Line 20: warning: exported method FieldMapper.CallType should have comment or be unexported (golint)
    • Line 40: warning: exported method CallTypeMapper.MapType should have comment or be unexported (golint)
    • Line 44: warning: exported method CallTypeMapper.CallType should have comment or be unexported (golint)
    • Line 65: warning: exported method FunctionTypeMapper.MapType should have comment or be unexported (golint)
    • Line 69: warning: exported method FunctionTypeMapper.CallType should have comment or be unexported (golint)
    • Line 179: warning: exported type FloatSpreadReducer should have comment or be unexported (golint)
    • Line 184: warning: exported function NewFloatSpreadReducer should have comment or be unexported (golint)
    • Line 191: warning: exported method FloatSpreadReducer.AggregateFloat should have comment or be unexported (golint)
    • Line 197: warning: exported method FloatSpreadReducer.Emit should have comment or be unexported (golint)
    • Line 205: warning: exported type IntegerSpreadReducer should have comment or be unexported (golint)
    • Line 210: warning: exported function NewIntegerSpreadReducer should have comment or be unexported (golint)
    • Line 217: warning: exported method IntegerSpreadReducer.AggregateInteger should have comment or be unexported (golint)
    • Line 227: warning: exported method IntegerSpreadReducer.Emit should have comment or be unexported (golint)
    • Line 235: warning: exported type UnsignedSpreadReducer should have comment or be unexported (golint)
    • Line 240: warning: exported function NewUnsignedSpreadReducer should have comment or be unexported (golint)
    • Line 247: warning: exported method UnsignedSpreadReducer.AggregateUnsigned should have comment or be unexported (golint)
    • Line 257: warning: exported method UnsignedSpreadReducer.Emit should have comment or be unexported (golint)
    • Line 728: warning: exported type ExponentialMovingAverageReducer should have comment or be unexported (golint)
    • Line 736: warning: exported function NewExponentialMovingAverageReducer should have comment or be unexported (golint)
    • Line 747: warning: exported method ExponentialMovingAverageReducer.AggregateFloat should have comment or be unexported (golint)
    • Line 750: warning: exported method ExponentialMovingAverageReducer.AggregateInteger should have comment or be unexported (golint)
    • Line 753: warning: exported method ExponentialMovingAverageReducer.AggregateUnsigned should have comment or be unexported (golint)
    • Line 761: warning: exported method ExponentialMovingAverageReducer.Emit should have comment or be unexported (golint)
    • Line 775: warning: exported type DoubleExponentialMovingAverageReducer should have comment or be unexported (golint)
    • Line 783: warning: exported function NewDoubleExponentialMovingAverageReducer should have comment or be unexported (golint)
    • Line 794: warning: exported method DoubleExponentialMovingAverageReducer.AggregateFloat should have comment or be unexported (golint)
    • Line 797: warning: exported method DoubleExponentialMovingAverageReducer.AggregateInteger should have comment or be unexported (golint)
    • Line 800: warning: exported method DoubleExponentialMovingAverageReducer.AggregateUnsigned should have comment or be unexported (golint)
    • Line 808: warning: exported method DoubleExponentialMovingAverageReducer.Emit should have comment or be unexported (golint)
    • Line 822: warning: exported type TripleExponentialMovingAverageReducer should have comment or be unexported (golint)
    • Line 830: warning: exported function NewTripleExponentialMovingAverageReducer should have comment or be unexported (golint)
    • Line 841: warning: exported method TripleExponentialMovingAverageReducer.AggregateFloat should have comment or be unexported (golint)
    • Line 844: warning: exported method TripleExponentialMovingAverageReducer.AggregateInteger should have comment or be unexported (golint)
    • Line 847: warning: exported method TripleExponentialMovingAverageReducer.AggregateUnsigned should have comment or be unexported (golint)
    • Line 855: warning: exported method TripleExponentialMovingAverageReducer.Emit should have comment or be unexported (golint)
    • Line 869: warning: exported type RelativeStrengthIndexReducer should have comment or be unexported (golint)
    • Line 877: warning: exported function NewRelativeStrengthIndexReducer should have comment or be unexported (golint)
    • Line 887: warning: exported method RelativeStrengthIndexReducer.AggregateFloat should have comment or be unexported (golint)
    • Line 890: warning: exported method RelativeStrengthIndexReducer.AggregateInteger should have comment or be unexported (golint)
    • Line 893: warning: exported method RelativeStrengthIndexReducer.AggregateUnsigned should have comment or be unexported (golint)
    • Line 901: warning: exported method RelativeStrengthIndexReducer.Emit should have comment or be unexported (golint)
    • Line 915: warning: exported type TripleExponentialDerivativeReducer should have comment or be unexported (golint)
    • Line 923: warning: exported function NewTripleExponentialDerivativeReducer should have comment or be unexported (golint)
    • Line 933: warning: exported method TripleExponentialDerivativeReducer.AggregateFloat should have comment or be unexported (golint)
    • Line 936: warning: exported method TripleExponentialDerivativeReducer.AggregateInteger should have comment or be unexported (golint)
    • Line 939: warning: exported method TripleExponentialDerivativeReducer.AggregateUnsigned should have comment or be unexported (golint)
    • Line 947: warning: exported method TripleExponentialDerivativeReducer.Emit should have comment or be unexported (golint)
    • Line 964: warning: exported type KaufmansEfficiencyRatioReducer should have comment or be unexported (golint)
    • Line 972: warning: exported function NewKaufmansEfficiencyRatioReducer should have comment or be unexported (golint)
    • Line 982: warning: exported method KaufmansEfficiencyRatioReducer.AggregateFloat should have comment or be unexported (golint)
    • Line 985: warning: exported method KaufmansEfficiencyRatioReducer.AggregateInteger should have comment or be unexported (golint)
    • Line 988: warning: exported method KaufmansEfficiencyRatioReducer.AggregateUnsigned should have comment or be unexported (golint)
    • Line 996: warning: exported method KaufmansEfficiencyRatioReducer.Emit should have comment or be unexported (golint)
    • Line 1013: warning: exported type KaufmansAdaptiveMovingAverageReducer should have comment or be unexported (golint)
    • Line 1021: warning: exported function NewKaufmansAdaptiveMovingAverageReducer should have comment or be unexported (golint)
    • Line 1031: warning: exported method KaufmansAdaptiveMovingAverageReducer.AggregateFloat should have comment or be unexported (golint)
    • Line 1034: warning: exported method KaufmansAdaptiveMovingAverageReducer.AggregateInteger should have comment or be unexported (golint)
    • Line 1037: warning: exported method KaufmansAdaptiveMovingAverageReducer.AggregateUnsigned should have comment or be unexported (golint)
    • Line 1045: warning: exported method KaufmansAdaptiveMovingAverageReducer.Emit should have comment or be unexported (golint)
    • Line 1062: warning: exported type ChandeMomentumOscillatorReducer should have comment or be unexported (golint)
    • Line 1070: warning: exported function NewChandeMomentumOscillatorReducer should have comment or be unexported (golint)
    • Line 1086: warning: exported method ChandeMomentumOscillatorReducer.AggregateFloat should have comment or be unexported (golint)
    • Line 1089: warning: exported method ChandeMomentumOscillatorReducer.AggregateInteger should have comment or be unexported (golint)
    • Line 1092: warning: exported method ChandeMomentumOscillatorReducer.AggregateUnsigned should have comment or be unexported (golint)
    • Line 1100: warning: exported method ChandeMomentumOscillatorReducer.Emit should have comment or be unexported (golint)
    • Line 1126: warning: exported method FloatCumulativeSumReducer.AggregateFloat should have comment or be unexported (golint)
    • Line 1132: warning: exported method FloatCumulativeSumReducer.Emit should have comment or be unexported (golint)
    • Line 1152: warning: exported method IntegerCumulativeSumReducer.AggregateInteger should have comment or be unexported (golint)
    • Line 1158: warning: exported method IntegerCumulativeSumReducer.Emit should have comment or be unexported (golint)
    • Line 1178: warning: exported method UnsignedCumulativeSumReducer.AggregateUnsigned should have comment or be unexported (golint)
    • Line 1184: warning: exported method UnsignedCumulativeSumReducer.Emit should have comment or be unexported (golint)
    • Line 1754: warning: comment on exported type UnsignedIntegralReducer should be of the form "UnsignedIntegralReducer ..." (with optional leading article) (golint)
    • Line 1863: warning: exported type FloatTopReducer should have comment or be unexported (golint)
    • Line 1867: warning: exported function NewFloatTopReducer should have comment or be unexported (golint)
    • Line 1878: warning: exported method FloatTopReducer.AggregateFloat should have comment or be unexported (golint)
    • Line 1895: warning: exported method FloatTopReducer.Emit should have comment or be unexported (golint)
    • Line 1909: warning: exported type IntegerTopReducer should have comment or be unexported (golint)
    • Line 1913: warning: exported function NewIntegerTopReducer should have comment or be unexported (golint)
    • Line 1924: warning: exported method IntegerTopReducer.AggregateInteger should have comment or be unexported (golint)
    • Line 1941: warning: exported method IntegerTopReducer.Emit should have comment or be unexported (golint)
    • Line 1955: warning: exported type UnsignedTopReducer should have comment or be unexported (golint)
    • Line 1959: warning: exported function NewUnsignedTopReducer should have comment or be unexported (golint)
    • Line 1970: warning: exported method UnsignedTopReducer.AggregateUnsigned should have comment or be unexported (golint)
    • Line 1987: warning: exported method UnsignedTopReducer.Emit should have comment or be unexported (golint)
    • Line 2001: warning: exported type FloatBottomReducer should have comment or be unexported (golint)
    • Line 2005: warning: exported function NewFloatBottomReducer should have comment or be unexported (golint)
    • Line 2016: warning: exported method FloatBottomReducer.AggregateFloat should have comment or be unexported (golint)
    • Line 2033: warning: exported method FloatBottomReducer.Emit should have comment or be unexported (golint)
    • Line 2047: warning: exported type IntegerBottomReducer should have comment or be unexported (golint)
    • Line 2051: warning: exported function NewIntegerBottomReducer should have comment or be unexported (golint)
    • Line 2062: warning: exported method IntegerBottomReducer.AggregateInteger should have comment or be unexported (golint)
    • Line 2079: warning: exported method IntegerBottomReducer.Emit should have comment or be unexported (golint)
    • Line 2093: warning: exported type UnsignedBottomReducer should have comment or be unexported (golint)
    • Line 2097: warning: exported function NewUnsignedBottomReducer should have comment or be unexported (golint)
    • Line 2108: warning: exported method UnsignedBottomReducer.AggregateUnsigned should have comment or be unexported (golint)
    • Line 2125: warning: exported method UnsignedBottomReducer.Emit should have comment or be unexported (golint)
    • influxdb/tsdb/engine/tsm1/encoding.go
    • Line 172: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 173: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 174: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 175: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 176: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 177: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • influxdb/cmd/influx_tools/internal/format/binary/writer.go
    • Line 16: warning: exported type Writer should have comment or be unexported (golint)
    • Line 51: warning: exported function NewWriter should have comment or be unexported (golint)
    • Line 59: warning: exported method Writer.WriteStats should have comment or be unexported (golint)
    • Line 69: warning: exported method Writer.NewBucket should have comment or be unexported (golint)
    • Line 88: warning: exported method Writer.Close should have comment or be unexported (golint)
    • influxdb/tsdb/index/inmem/inmem.go
    • Line 82: warning: exported method Index.UniqueReferenceID should have comment or be unexported (golint)
    • Line 116: warning: exported method Index.Type should have comment or be unexported (golint)
    • Line 117: warning: exported method Index.Open should have comment or be unexported (golint)
    • Line 118: warning: exported method Index.Close should have comment or be unexported (golint)
    • Line 120: warning: exported method Index.WithLogger should have comment or be unexported (golint)
    • Line 827: warning: exported method Index.SeriesKeys should have comment or be unexported (golint)
    • Line 876: warning: exported method Index.MeasurementSeriesIDIterator should have comment or be unexported (golint)
    • Line 880: warning: exported method Index.TagKeySeriesIDIterator should have comment or be unexported (golint)
    • Line 891: warning: exported method Index.TagValueSeriesIDIterator should have comment or be unexported (golint)
    • Line 902: warning: exported method Index.TagKeyIterator should have comment or be unexported (golint)
    • Line 942: warning: exported method Index.MeasurementSeriesKeysByExprIterator should have comment or be unexported (golint)
    • Line 975: warning: exported method Index.MeasurementSeriesKeysByExpr should have comment or be unexported (golint)
    • influxdb/tsdb/engine/tsm1/digest_writer.go
    • Line 19: warning: exported function NewDigestWriter should have comment or be unexported (golint)
    • Line 23: warning: exported method DigestWriter.WriteManifest should have comment or be unexported (golint)
    • Line 39: warning: exported method DigestWriter.WriteTimeSpan should have comment or be unexported (golint)
    • Line 73: warning: exported method DigestWriter.Flush should have comment or be unexported (golint)
    • Line 77: warning: exported method DigestWriter.Close should have comment or be unexported (golint)
    • Line 89: warning: exported type DigestTimeSpan should have comment or be unexported (golint)
    • Line 99: warning: exported method DigestTimeSpan.Add should have comment or be unexported (golint)
    • Line 99: warning: receiver name t should be consistent with previous receiver name a for DigestTimeSpan (golint)
    • Line 108: warning: exported type DigestTimeRange should have comment or be unexported (golint)
    • influxdb/cmd/influx_tools/internal/storage/store.go
    • Line 11: warning: exported type MetaClient should have comment or be unexported (golint)
    • Line 15: warning: comment on exported type ReadRequest should be of the form "ReadRequest ..." (with optional leading article) (golint)
    • Line 24: warning: exported type Store should have comment or be unexported (golint)
    • influxdb/pkg/tracing/spancontext.go
    • Line 15: warning: exported method SpanContext.MarshalBinary should have comment or be unexported (golint)
    • Line 20: warning: exported method SpanContext.UnmarshalBinary should have comment or be unexported (golint)
    • influxdb/tsdb/shard.go
    • Line 445: warning: exported method Shard.Free should have comment or be unexported (golint)
    • Line 862: warning: exported method Shard.CreateSeriesCursor should have comment or be unexported (golint)
    • Line 870: warning: exported method Shard.CreateCursorIterator should have comment or be unexported (golint)
    • Line 1063: warning: exported method Shard.Export should have comment or be unexported (golint)
    • Line 1135: warning: exported method Shard.TagKeyCardinality should have comment or be unexported (golint)
    • Line 1159: warning: comment on exported method Shard.Engine should be of the form "Engine ..." (golint)
    • Line 1182: warning: exported type ShardGroup should have comment or be unexported (golint)
    • Line 1257: warning: exported method Shards.FieldDimensions should have comment or be unexported (golint)
    • Line 1278: warning: exported method Shards.MapType should have comment or be unexported (golint)
    • Line 1290: warning: exported method Shards.CallType should have comment or be unexported (golint)
    • Line 1295: warning: exported method Shards.CreateIterator should have comment or be unexported (golint)
    • Line 1353: warning: exported method Shards.IteratorCost should have comment or be unexported (golint)
    • Line 1404: warning: exported method Shards.CreateSeriesCursor should have comment or be unexported (golint)
    • Line 1426: warning: exported method Shards.ExpandSources should have comment or be unexported (golint)
    • Line 1476: warning: exported method MeasurementFields.FieldKeys should have comment or be unexported (golint)
    • Line 1541: warning: exported method MeasurementFields.FieldN should have comment or be unexported (golint)
    • Line 1556: warning: exported method MeasurementFields.HasField should have comment or be unexported (golint)
    • Line 1589: warning: exported method MeasurementFields.ForEachField should have comment or be unexported (golint)
    • Line 1705: warning: exported method MeasurementFieldSet.IsEmpty should have comment or be unexported (golint)
    • Line 1711: warning: exported method MeasurementFieldSet.Save should have comment or be unexported (golint)
    • influxdb/tsdb/series_segment.go
    • Line 18: warning: exported const SeriesSegmentVersion should have comment (or a comment on this block) or be unexported (golint)
    • Line 34: warning: exported var ErrInvalidSeriesSegment should have comment or be unexported (golint)
    • Line 154: warning: exported method SeriesSegment.CloseForWrite should have comment or be unexported (golint)
    • Line 368: warning: exported function ReadSeriesEntry should have comment or be unexported (golint)
    • Line 383: warning: exported function AppendSeriesEntry should have comment or be unexported (golint)
    • influxdb/toml/toml.go
    • Line 99: warning: exported type FileMode should have comment or be unexported (golint)
    • Line 101: warning: exported method FileMode.UnmarshalText should have comment or be unexported (golint)
    • Line 117: warning: exported method FileMode.MarshalText should have comment or be unexported (golint)
    • Line 124: warning: exported type Group should have comment or be unexported (golint)
    • Line 126: warning: exported method Group.UnmarshalTOML should have comment or be unexported (golint)
    • Line 146: warning: exported function ApplyEnvOverrides should have comment or be unexported (golint)
    • influxdb/pkg/limiter/writer.go
    • Line 12: warning: exported type Writer should have comment or be unexported (golint)
    • Line 18: warning: exported type Rate should have comment or be unexported (golint)
    • Line 22: warning: exported function NewRate should have comment or be unexported (golint)
    • Line 41: warning: comment on exported function NewWriterWithRate should be of the form "NewWriterWithRate ..." (golint)
    • Line 67: warning: exported method Writer.Sync should have comment or be unexported (golint)
    • Line 74: warning: exported method Writer.Name should have comment or be unexported (golint)
    • Line 81: warning: exported method Writer.Close should have comment or be unexported (golint)
    • influxdb/pkg/pprofutil/pprofutil.go
    • Line 8: warning: exported type Profile should have comment or be unexported (golint)
    • Line 15: warning: exported function NewProfile should have comment or be unexported (golint)
    • Line 20: warning: exported method Profile.Stop should have comment or be unexported (golint)
    • influxdb/tsdb/index/internal/file_set.go
    • Line 35: warning: exported method File.Close should have comment or be unexported (golint)
    • Line 36: warning: exported method File.Path should have comment or be unexported (golint)
    • Line 37: warning: exported method File.ID should have comment or be unexported (golint)
    • Line 38: warning: exported method File.Level should have comment or be unexported (golint)
    • Line 39: warning: exported method File.Measurement should have comment or be unexported (golint)
    • Line 40: warning: exported method File.MeasurementIterator should have comment or be unexported (golint)
    • Line 41: warning: exported method File.HasSeries should have comment or be unexported (golint)
    • Line 44: warning: exported method File.TagKey should have comment or be unexported (golint)
    • Line 45: warning: exported method File.TagKeyIterator should have comment or be unexported (golint)
    • Line 47: warning: exported method File.TagValue should have comment or be unexported (golint)
    • Line 50: warning: exported method File.TagValueIterator should have comment or be unexported (golint)
    • Line 53: warning: exported method File.SeriesIDIterator should have comment or be unexported (golint)
    • Line 54: warning: exported method File.MeasurementSeriesIDIterator should have comment or be unexported (golint)
    • Line 57: warning: exported method File.TagKeySeriesIDIterator should have comment or be unexported (golint)
    • Line 60: warning: exported method File.TagValueSeriesIDIterator should have comment or be unexported (golint)
    • Line 63: warning: exported method File.MergeSeriesSketches should have comment or be unexported (golint)
    • Line 64: warning: exported method File.MergeMeasurementsSketches should have comment or be unexported (golint)
    • Line 67: warning: exported method File.Retain should have comment or be unexported (golint)
    • Line 68: warning: exported method File.Release should have comment or be unexported (golint)
    • Line 69: warning: exported method File.Filter should have comment or be unexported (golint)
    • influxdb/services/storage/store.go
    • Line 16: warning: exported type ResultSet should have comment or be unexported (golint)
    • Line 23: warning: exported type GroupResultSet should have comment or be unexported (golint)
    • Line 28: warning: exported type GroupCursor should have comment or be unexported (golint)
    • Line 37: warning: exported type Store should have comment or be unexported (golint)
    • Line 61: warning: exported function NewStore should have comment or be unexported (golint)
    • influxdb/services/meta/data.go
    • Line 1579: warning: exported type User should have comment or be unexported (golint)
    • Line 1585: warning: exported method UserInfo.ID should have comment or be unexported (golint)
    • Line 1590: warning: receiver name ui should be consistent with previous receiver name u for UserInfo (golint)
    • Line 1614: warning: receiver name ui should be consistent with previous receiver name u for UserInfo (golint)
    • Line 1628: warning: receiver name ui should be consistent with previous receiver name u for UserInfo (golint)
    • Line 1646: warning: receiver name ui should be consistent with previous receiver name u for UserInfo (golint)
    • influxdb/pkg/rhh/rhh.go
    • Line 26: warning: exported function NewHashMap should have comment or be unexported (golint)
    • Line 44: warning: exported method HashMap.Get should have comment or be unexported (golint)
    • Line 52: warning: exported method HashMap.Put should have comment or be unexported (golint)
    • influxdb/tsdb/engine/tsm1/cache.go
    • Line 492: warning: exported method Cache.Count should have comment or be unexported (golint)
    • Line 507: warning: exported method Cache.Split should have comment or be unexported (golint)
    • Line 770: warning: exported method Cache.LastWriteTime should have comment or be unexported (golint)
    • influxdb/tsdb/engine/tsm1/digest.go
    • Line 15: warning: exported const DigestFilename should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported type DigestOptions should have comment or be unexported (golint)
    • Line 226: warning: exported type DigestManifestEntry should have comment or be unexported (golint)
    • influxdb/cmd/influx_tools/internal/format/line/writer.go
    • Line 17: warning: exported type Writer should have comment or be unexported (golint)
    • Line 23: warning: exported function NewWriter should have comment or be unexported (golint)
    • Line 33: warning: exported method Writer.NewBucket should have comment or be unexported (golint)
    • Line 38: warning: exported method Writer.Close should have comment or be unexported (golint)
    • Line 39: warning: exported method Writer.Err should have comment or be unexported (golint)
    • Line 41: warning: exported method Writer.BeginSeries should have comment or be unexported (golint)
    • Line 52: warning: exported method Writer.EndSeries should have comment or be unexported (golint)
    • Line 54: warning: exported method Writer.WriteIntegerCursor should have comment or be unexported (golint)
    • Line 80: warning: exported method Writer.WriteFloatCursor should have comment or be unexported (golint)
    • Line 105: warning: exported method Writer.WriteUnsignedCursor should have comment or be unexported (golint)
    • Line 131: warning: exported method Writer.WriteBooleanCursor should have comment or be unexported (golint)
    • Line 156: warning: exported method Writer.WriteStringCursor should have comment or be unexported (golint)
    • influxdb/tsdb/series_cursor.go
    • Line 13: warning: exported type SeriesCursor should have comment or be unexported (golint)
    • Line 18: warning: exported type SeriesCursorRequest should have comment or be unexported (golint)
    • Line 33: warning: exported type SeriesCursorRow should have comment or be unexported (golint)
    • Line 38: warning: exported method SeriesCursorRow.Compare should have comment or be unexported (golint)
    • influxdb/query/cursor.go
    • Line 10: warning: exported var NullFloat should have comment or be unexported (golint)
    • Line 70: warning: exported type Cursor should have comment or be unexported (golint)
    • Line 243: warning: receiver name cur should be consistent with previous receiver name s for scannerCursor (golint)
    • Line 247: warning: receiver name cur should be consistent with previous receiver name s for scannerCursor (golint)
    • Line 251: warning: receiver name cur should be consistent with previous receiver name s for scannerCursor (golint)
    • influxdb/tsdb/index.go
    • Line 27: warning: exported type Index should have comment or be unexported (golint)
    • Line 188: warning: exported function NewSeriesIDSetIterator should have comment or be unexported (golint)
    • Line 263: warning: exported method SeriesIDSliceIterator.Close should have comment or be unexported (golint)
    • Line 274: warning: exported type SeriesIDIterators should have comment or be unexported (golint)
    • Line 276: warning: exported method SeriesIDIterators.Close should have comment or be unexported (golint)
    • Line 763: warning: comment on exported function NewSeriesPointIterator should be of the form "NewSeriesPointIterator ..." (golint)
    • Line 900: warning: exported type MeasurementIterators should have comment or be unexported (golint)
    • Line 902: warning: exported method MeasurementIterators.Close should have comment or be unexported (golint)
    • Line 1006: warning: exported type TagKeyIterators should have comment or be unexported (golint)
    • Line 1008: warning: exported method TagKeyIterators.Close should have comment or be unexported (golint)
    • Line 1111: warning: exported type TagValueIterators should have comment or be unexported (golint)
    • Line 1113: warning: exported method TagValueIterators.Close should have comment or be unexported (golint)
    • Line 2696: warning: exported function MustOpenIndex should have comment or be unexported (golint)
    • influxdb/tsdb/store.go
    • Line 139: warning: exported method Store.IndexBytes should have comment or be unexported (golint)
    • Line 620: warning: comment on exported method Store.CreateShardSnapshot should be of the form "CreateShardSnapshot ..." (golint)
    • Line 1132: warning: exported method Store.ExportShard should have comment or be unexported (golint)
    • Line 1350: warning: exported type TagKeys should have comment or be unexported (golint)
    • Line 1355: warning: exported type TagKeysSlice should have comment or be unexported (golint)
    • Line 1489: warning: exported type TagValues should have comment or be unexported (golint)
    • Line 1494: warning: exported type TagValuesSlice should have comment or be unexported (golint)
    • influxdb/query/task_manager.go
    • Line 22: warning: exported type TaskStatus should have comment or be unexported (golint)
    • Line 44: warning: exported method TaskStatus.MarshalJSON should have comment or be unexported (golint)
    • Line 49: warning: exported method TaskStatus.UnmarshalJSON should have comment or be unexported (golint)
    • influxdb/tsdb/engine/tsm1/wal.go
    • Line 393: warning: exported method WAL.DiskSizeBytes should have comment or be unexported (golint)
    • Line 599: warning: exported method WriteWALEntry.MarshalSize should have comment or be unexported (golint)
    • Line 915: warning: exported method DeleteWALEntry.MarshalSize should have comment or be unexported (golint)
    • Line 997: warning: exported method DeleteRangeWALEntry.MarshalSize should have comment or be unexported (golint)
    • Line 1092: warning: exported method WALSegmentWriter.Flush should have comment or be unexported (golint)
    • Line 1120: warning: exported method WALSegmentReader.Reset should have comment or be unexported (golint)
    • influxdb/internal/meta_client.go
    • Line 56: warning: exported method MetaClientMock.Close should have comment or be unexported (golint)
    • Line 60: warning: exported method MetaClientMock.CreateContinuousQuery should have comment or be unexported (golint)
    • Line 64: warning: exported method MetaClientMock.CreateDatabase should have comment or be unexported (golint)
    • Line 68: warning: exported method MetaClientMock.CreateDatabaseWithRetentionPolicy should have comment or be unexported (golint)
    • Line 72: warning: exported method MetaClientMock.CreateRetentionPolicy should have comment or be unexported (golint)
    • Line 76: warning: exported method MetaClientMock.CreateShardGroup should have comment or be unexported (golint)
    • Line 80: warning: exported method MetaClientMock.CreateSubscription should have comment or be unexported (golint)
    • Line 84: warning: exported method MetaClientMock.CreateUser should have comment or be unexported (golint)
    • Line 88: warning: exported method MetaClientMock.Database should have comment or be unexported (golint)
    • Line 92: warning: exported method MetaClientMock.Databases should have comment or be unexported (golint)
    • Line 96: warning: exported method MetaClientMock.DeleteShardGroup should have comment or be unexported (golint)
    • Line 100: warning: exported method MetaClientMock.DropContinuousQuery should have comment or be unexported (golint)
    • Line 104: warning: exported method MetaClientMock.DropDatabase should have comment or be unexported (golint)
    • Line 108: warning: exported method MetaClientMock.DropRetentionPolicy should have comment or be unexported (golint)
    • Line 112: warning: exported method MetaClientMock.DropShard should have comment or be unexported (golint)
    • Line 116: warning: exported method MetaClientMock.DropSubscription should have comment or be unexported (golint)
    • Line 120: warning: exported method MetaClientMock.DropUser should have comment or be unexported (golint)
    • Line 124: warning: exported method MetaClientMock.RetentionPolicy should have comment or be unexported (golint)
    • Line 128: warning: exported method MetaClientMock.SetAdminPrivilege should have comment or be unexported (golint)
    • Line 132: warning: exported method MetaClientMock.SetPrivilege should have comment or be unexported (golint)
    • Line 136: warning: exported method MetaClientMock.ShardGroupsByTimeRange should have comment or be unexported (golint)
    • Line 140: warning: exported method MetaClientMock.ShardOwner should have comment or be unexported (golint)
    • Line 144: warning: exported method MetaClientMock.TruncateShardGroups should have comment or be unexported (golint)
    • Line 148: warning: exported method MetaClientMock.UpdateRetentionPolicy should have comment or be unexported (golint)
    • Line 152: warning: exported method MetaClientMock.UpdateUser should have comment or be unexported (golint)
    • Line 156: warning: exported method MetaClientMock.UserPrivilege should have comment or be unexported (golint)
    • Line 160: warning: exported method MetaClientMock.UserPrivileges should have comment or be unexported (golint)
    • Line 164: warning: exported method MetaClientMock.Authenticate should have comment or be unexported (golint)
    • Line 167: warning: exported method MetaClientMock.AdminUserExists should have comment or be unexported (golint)
    • Line 169: warning: exported method MetaClientMock.User should have comment or be unexported (golint)
    • Line 170: warning: exported method MetaClientMock.Users should have comment or be unexported (golint)
    • Line 172: warning: exported method MetaClientMock.Open should have comment or be unexported (golint)
    • Line 173: warning: exported method MetaClientMock.Data should have comment or be unexported (golint)
    • Line 174: warning: exported method MetaClientMock.SetData should have comment or be unexported (golint)
    • Line 176: warning: exported method MetaClientMock.PrecreateShardGroups should have comment or be unexported (golint)
    • Line 179: warning: exported method MetaClientMock.PruneShardGroups should have comment or be unexported (golint)
    • influxdb/models/points.go
    • Line 280: warning: exported function ParseKeyBytes should have comment or be unexported (golint)
    • Line 284: warning: exported function ParseKeyBytesWithTags should have comment or be unexported (golint)
    • Line 300: warning: exported function ParseTags should have comment or be unexported (golint)
    • Line 304: warning: exported function ParseName should have comment or be unexported (golint)
    • Line 1225: warning: exported function EscapeMeasurement should have comment or be unexported (golint)
    • influxdb/stress/basic.go
    • Line 547: warning: exported type BroadcastChannel should have comment or be unexported (golint)
    • Line 553: warning: exported function NewBroadcastChannel should have comment or be unexported (golint)
    • Line 558: warning: exported method BroadcastChannel.Register should have comment or be unexported (golint)
    • Line 570: warning: exported method BroadcastChannel.Broadcast should have comment or be unexported (golint)
    • Line 583: warning: exported method BroadcastChannel.Close should have comment or be unexported (golint)
    • Line 592: warning: exported method BroadcastChannel.Handle should have comment or be unexported (golint)
    • Line 606: warning: receiver name b should be consistent with previous receiver name c for BasicClient (golint)
    • influxdb/tsdb/engine/tsm1/engine.go
    • Line 35: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 274: warning: exported method Engine.WithFormatFileNameFunc should have comment or be unexported (golint)
    • Line 279: warning: exported method Engine.WithParseFileNameFunc should have comment or be unexported (golint)
    • Line 562: warning: exported method Engine.SetFieldName should have comment or be unexported (golint)
    • Line 566: warning: exported method Engine.MeasurementExists should have comment or be unexported (golint)
    • Line 570: warning: exported method Engine.MeasurementNamesByRegex should have comment or be unexported (golint)
    • Line 584: warning: exported method Engine.HasTagKey should have comment or be unexported (golint)
    • Line 588: warning: exported method Engine.MeasurementTagKeysByExpr should have comment or be unexported (golint)
    • Line 592: warning: exported method Engine.TagKeyCardinality should have comment or be unexported (golint)
    • Line 974: warning: exported method Engine.Export should have comment or be unexported (golint)
    • Line 1768: warning: exported method Engine.CreateSeriesListIfNotExists should have comment or be unexported (golint)
    • Line 1772: warning: exported method Engine.CreateSeriesIfNotExists should have comment or be unexported (golint)
    • Line 2998: warning: exported function SeriesFieldKeyBytes should have comment or be unexported (golint)
    • Line 3019: warning: exported function BlockTypeToInfluxQLDataType should have comment or be unexported (golint)
    • influxdb/pkg/tracing/span.go
    • Line 20: warning: exported type StartSpanOption should have comment or be unexported (golint)
    • Line 82: warning: exported method Span.Tree should have comment or be unexported (golint)
    • influxdb/query/internal/gota/ema.go
    • Line 7: warning: exported type AlgSimple should have comment or be unexported (golint)
    • Line 13: warning: exported type WarmupType should have comment or be unexported (golint)
    • Line 16: warning: exported const WarmEMA should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported function ParseWarmupType should have comment or be unexported (golint)
    • influxdb/tsdb/series_file.go
    • Line 21: warning: exported var ErrSeriesFileClosed should have comment or be unexported (golint)
    • Line 227: warning: comment on exported method SeriesFile.SeriesIDIterator should be of the form "SeriesIDIterator ..." (golint)
    • Line 237: warning: exported method SeriesFile.SeriesIDPartitionID should have comment or be unexported (golint)
    • Line 241: warning: exported method SeriesFile.SeriesIDPartition should have comment or be unexported (golint)
    • Line 249: warning: exported method SeriesFile.SeriesKeysPartitionIDs should have comment or be unexported (golint)
    • Line 257: warning: exported method SeriesFile.SeriesKeyPartitionID should have comment or be unexported (golint)
    • Line 261: warning: exported method SeriesFile.SeriesKeyPartition should have comment or be unexported (golint)
    • Line 332: warning: exported function ReadSeriesKeyLen should have comment or be unexported (golint)
    • Line 337: warning: exported function ReadSeriesKeyMeasurement should have comment or be unexported (golint)
    • Line 342: warning: exported function ReadSeriesKeyTagN should have comment or be unexported (golint)
    • Line 347: warning: exported function ReadSeriesKeyTag should have comment or be unexported (golint)
    • Line 393: warning: exported function CompareSeriesKeys should have comment or be unexported (golint)
    • influxdb/query/iterator_mapper.go
    • Line 10: warning: exported type IteratorMap should have comment or be unexported (golint)
    • Line 14: warning: exported type FieldMap should have comment or be unexported (golint)
    • Line 19: warning: exported method FieldMap.Value should have comment or be unexported (golint)
    • Line 29: warning: exported type TagMap should have comment or be unexported (golint)
    • Line 31: warning: exported method TagMap.Value should have comment or be unexported (golint)
    • Line 33: warning: exported type NullMap should have comment or be unexported (golint)
    • Line 35: warning: exported method NullMap.Value should have comment or be unexported (golint)
    • Line 37: warning: exported function NewIteratorMapper should have comment or be unexported (golint)
    • influxdb/logger/logger.go
    • Line 14: warning: exported const TimeFormat should have comment or be unexported (golint)
    • Line 16: warning: exported function New should have comment or be unexported (golint)
    • Line 22: warning: exported method Config.New should have comment or be unexported (golint)
    • Line 94: warning: exported function DurationLiteral should have comment or be unexported (golint)
    • influxdb/monitor/service.go
    • Line 132: warning: exported method Monitor.Enabled should have comment or be unexported (golint)
    • Line 134: warning: exported method Monitor.WritePoints should have comment or be unexported (golint)
    • influxdb/query/select.go
    • Line 16: warning: exported var DefaultTypeMapper should have comment or be unexported (golint)
    • Line 63: warning: comment on exported type PreparedStatement should be of the form "PreparedStatement ..." (with optional leading article) (golint)
    • Line 115: warning: should not use basic type string as key in context.WithValue (golint)
    • influxdb/coordinator/shard_mapper.go
    • Line 86: warning: comment on exported type LocalShardMapping should be of the form "LocalShardMapping ..." (with optional leading article) (golint)
    • Line 101: warning: exported method LocalShardMapping.FieldDimensions should have comment or be unexported (golint)
    • Line 135: warning: exported method LocalShardMapping.MapType should have comment or be unexported (golint)
    • Line 166: warning: exported method LocalShardMapping.CreateIterator should have comment or be unexported (golint)
    • Line 211: warning: exported method LocalShardMapping.IteratorCost should have comment or be unexported (golint)
    • influxdb/services/storage/storage.go
    • Line 9: warning: exported type HintFlags should have comment or be unexported (golint)
    • Line 11: warning: exported method HintFlags.NoPoints should have comment or be unexported (golint)
    • Line 15: warning: exported method HintFlags.SetNoPoints should have comment or be unexported (golint)
    • Line 19: warning: exported method HintFlags.NoSeries should have comment or be unexported (golint)
    • Line 23: warning: exported method HintFlags.SetNoSeries should have comment or be unexported (golint)
    • Line 27: warning: exported method HintFlags.HintSchemaAllTime should have comment or be unexported (golint)
    • Line 31: warning: exported method HintFlags.SetHintSchemaAllTime should have comment or be unexported (golint)
    • influxdb/pkg/snowflake/gen.go
    • Line 21: warning: exported type Generator should have comment or be unexported (golint)
    • Line 26: warning: exported function New should have comment or be unexported (golint)
    • Line 36: warning: exported method Generator.MachineID should have comment or be unexported (golint)
    • Line 40: warning: exported method Generator.Next should have comment or be unexported (golint)
    • Line 91: warning: exported method Generator.NextString should have comment or be unexported (golint)
    • Line 97: warning: exported method Generator.AppendNext should have comment or be unexported (golint)
    • influxdb/tsdb/index/tsi1/index.go
    • Line 138: warning: exported method Index.UniqueReferenceID should have comment or be unexported (golint)
    • Line 285: warning: exported method Index.EnableCompactions should have comment or be unexported (golint)
    • Line 291: warning: exported method Index.DisableCompactions should have comment or be unexported (golint)
    • Line 705: warning: comment on exported method Index.SeriesN should be of the form "SeriesN ..." (golint)
    • influxdb/tsdb/index/tsi1/partition.go
    • Line 533: warning: exported method Partition.MeasurementNamesByRegex should have comment or be unexported (golint)
    • Line 555: warning: exported method Partition.MeasurementSeriesIDIterator should have comment or be unexported (golint)
    • Line 668: warning: exported method Partition.DropSeries should have comment or be unexported (golint)
    • Line 823: warning: exported method Partition.SetFieldName should have comment or be unexported (golint)
    • Line 824: warning: exported method Partition.RemoveShard should have comment or be unexported (golint)
    • Line 825: warning: exported method Partition.AssignShard should have comment or be unexported (golint)
    • Line 834: warning: exported method Partition.DisableCompactions should have comment or be unexported (golint)
    • Line 851: warning: exported method Partition.EnableCompactions should have comment or be unexported (golint)
    • Line 1032: warning: exported method Partition.Rebuild should have comment or be unexported (golint)
    • Line 1034: warning: exported method Partition.CheckLogFile should have comment or be unexported (golint)
    • influxdb/pkg/tlsconfig/tls_config.go
    • Line 10: warning: exported type Config should have comment or be unexported (golint)
    • Line 16: warning: exported function NewConfig should have comment or be unexported (golint)
    • Line 20: warning: exported method Config.Validate should have comment or be unexported (golint)
    • Line 25: warning: exported method Config.Parse should have comment or be unexported (golint)
    • influxdb/cmd/influx_tools/internal/storage/resultset.go
    • Line 11: warning: exported type ResultSet should have comment or be unexported (golint)
    • Line 31: warning: exported method ResultSet.Close should have comment or be unexported (golint)
    • Line 48: warning: exported method ResultSet.Name should have comment or be unexported (golint)
    • Line 49: warning: exported method ResultSet.Tags should have comment or be unexported (golint)
    • Line 50: warning: exported method ResultSet.Field should have comment or be unexported (golint)
    • Line 51: warning: exported method ResultSet.FieldType should have comment or be unexported (golint)
    • Line 53: warning: exported method ResultSet.CursorIterator should have comment or be unexported (golint)
    • Line 62: warning: exported type CursorIterator should have comment or be unexported (golint)
    • Line 69: warning: exported method CursorIterator.Next should have comment or be unexported (golint)
    • Line 84: warning: exported method CursorIterator.Cursor should have comment or be unexported (golint)
    • influxdb/services/storage/response_writer.go
    • Line 10: warning: exported type ResponseStream should have comment or be unexported (golint)
    • Line 20: warning: exported type ResponseWriter should have comment or be unexported (golint)
    • Line 45: warning: exported function NewResponseWriter should have comment or be unexported (golint)
    • Line 54: warning: exported method ResponseWriter.WriteResultSet should have comment or be unexported (golint)
    • Line 73: warning: exported method ResponseWriter.WriteGroupResultSet should have comment or be unexported (golint)
    • Line 98: warning: exported method ResponseWriter.Err should have comment or be unexported (golint)
    • Line 228: warning: exported method ResponseWriter.Flush should have comment or be unexported (golint)
    • influxdb/cmd/influx_tools/internal/format/text/writer.go
    • Line 15: warning: exported type Writer should have comment or be unexported (golint)
    • Line 22: warning: exported type Mode should have comment or be unexported (golint)
    • Line 25: warning: exported const Series should have comment (or a comment on this block) or be unexported (golint)
    • Line 29: warning: exported function NewWriter should have comment or be unexported (golint)
    • Line 41: warning: exported method Writer.NewBucket should have comment or be unexported (golint)
    • Line 45: warning: exported method Writer.Close should have comment or be unexported (golint)
    • Line 46: warning: exported method Writer.Err should have comment or be unexported (golint)
    • Line 48: warning: exported method Writer.BeginSeries should have comment or be unexported (golint)
    • Line 62: warning: exported method Writer.EndSeries should have comment or be unexported (golint)
    • Line 64: warning: exported method Writer.WriteIntegerCursor should have comment or be unexported (golint)
    • Line 90: warning: exported method Writer.WriteFloatCursor should have comment or be unexported (golint)
    • Line 115: warning: exported method Writer.WriteUnsignedCursor should have comment or be unexported (golint)
    • Line 141: warning: exported method Writer.WriteBooleanCursor should have comment or be unexported (golint)
    • Line 166: warning: exported method Writer.WriteStringCursor should have comment or be unexported (golint)
    • influxdb/tsdb/engine/tsm1/compact.go
    • Line 130: warning: exported function NewDefaultPlanner should have comment or be unexported (golint)
    • Line 192: warning: exported method DefaultPlanner.SetFileStore should have comment or be unexported (golint)
    • Line 196: warning: exported method DefaultPlanner.ParseFileName should have comment or be unexported (golint)
    • Line 723: warning: exported method Compactor.WithFormatFileNameFunc should have comment or be unexported (golint)
    • Line 727: warning: exported method Compactor.WithParseFileNameFunc should have comment or be unexported (golint)
    • Line 786: warning: comment on exported method Compactor.DisableCompactions should be of the form "DisableCompactions ..." (golint)
    • influxdb/tsdb/engine/tsm1/file_store.go
    • Line 30: warning: comment on exported const TmpTSMFileExtension should be of the form "TmpTSMFileExtension ..." (golint)
    • Line 33: warning: comment on exported const BadTSMFileExtension should be of the form "BadTSMFileExtension ..." (golint)
    • Line 249: warning: exported method FileStore.WithParseFileNameFunc should have comment or be unexported (golint)
    • Line 253: warning: exported method FileStore.ParseFileName should have comment or be unexported (golint)
    • Line 397: warning: exported method FileStore.Apply should have comment or be unexported (golint)
    • Line 611: warning: exported method FileStore.DiskSizeBytes should have comment or be unexported (golint)
    • Line 640: warning: exported method FileStore.Cost should have comment or be unexported (golint)
    • Line 646: warning: comment on exported method FileStore.TSMReader should be of the form "TSMReader ..." (golint)
    • influxdb/services/httpd/requests.go
    • Line 14: warning: exported type RequestInfo should have comment or be unexported (golint)
    • Line 19: warning: exported type RequestStats should have comment or be unexported (golint)
    • Line 31: warning: exported type RequestProfile should have comment or be unexported (golint)
    • Line 39: warning: exported method RequestProfile.AddWrite should have comment or be unexported (golint)
    • Line 43: warning: exported method RequestProfile.AddQuery should have comment or be unexported (golint)
    • Line 88: warning: exported type RequestTracker should have comment or be unexported (golint)
    • Line 93: warning: exported function NewRequestTracker should have comment or be unexported (golint)
    • Line 99: warning: exported method RequestTracker.TrackRequests should have comment or be unexported (golint)
    • Line 112: warning: exported method RequestTracker.Add should have comment or be unexported (golint)
    • influxdb/services/meta/client.go
    • Line 1015: 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)
    • influxdb/services/httpd/handler.go
    • Line 51: warning: exported const DefaultDebugRequestsInterval should have comment (or a comment on this block) or be unexported (golint)
    • Line 200: warning: exported method Handler.Open should have comment or be unexported (golint)
    • Line 218: warning: exported method Handler.Close should have comment or be unexported (golint)
    • influxdb/cmd/influx_tools/internal/format/binary/common.go
    • Line 9: warning: exported var ErrWriteAfterClose should have comment or be unexported (golint)
    • Line 14: warning: exported var Magic should have comment or be unexported (golint)
    • Line 17: warning: exported type MessageType should have comment or be unexported (golint)
    • Line 20: warning: exported const HeaderType should have comment (or a comment on this block) or be unexported (golint)
    • influxdb/services/storage/predicate_influxql.go
    • Line 295: warning: exported function HasFieldKeyOrValue should have comment or be unexported (golint)
    • Line 301: warning: exported function RewriteExprRemoveFieldKeyAndValue should have comment or be unexported (golint)
    • Line 315: warning: exported function RewriteExprRemoveFieldValue should have comment or be unexported (golint)
    • influxdb/tsdb/series_index.go
    • Line 16: warning: exported const SeriesIndexVersion should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported const SeriesIndexElemSize should have comment (or a comment on this block) or be unexported (golint)
    • Line 33: warning: exported var ErrInvalidSeriesIndex should have comment or be unexported (golint)
    • Line 56: warning: exported function NewSeriesIndex should have comment or be unexported (golint)
    • Line 147: warning: exported method SeriesIndex.Insert should have comment or be unexported (golint)
    • Line 183: warning: exported method SeriesIndex.FindIDBySeriesKey should have comment or be unexported (golint)
    • Line 216: warning: exported method SeriesIndex.FindIDByNameTags should have comment or be unexported (golint)
    • Line 224: warning: exported method SeriesIndex.FindIDListByNameTags should have comment or be unexported (golint)
    • Line 237: warning: exported method SeriesIndex.FindOffsetByID should have comment or be unexported (golint)
    • influxdb/tsdb/series_partition.go
    • Line 19: warning: exported var ErrSeriesPartitionClosed should have comment or be unexported (golint)
    • Line 173: warning: comment on exported method SeriesPartition.IndexPath should be of the form "IndexPath ..." (golint)
    • Line 379: warning: exported method SeriesPartition.DisableCompactions should have comment or be unexported (golint)
    • Line 385: warning: exported method SeriesPartition.EnableCompactions should have comment or be unexported (golint)
    • influxdb/tsdb/engine/tsm1/digest_reader.go
    • Line 12: warning: exported type DigestReader should have comment or be unexported (golint)
    • Line 17: warning: exported function NewDigestReader should have comment or be unexported (golint)
    • Line 21: warning: exported method DigestReader.ReadManifest should have comment or be unexported (golint)
    • Line 34: warning: exported method DigestReader.ReadTimeSpan should have comment or be unexported (golint)
    • Line 71: warning: exported method DigestReader.Close should have comment or be unexported (golint)
    • influxdb/tsdb/engine/tsm1/reader.go
    • Line 298: warning: exported method TSMReader.Free should have comment or be unexported (golint)
    • Line 322: warning: exported method TSMReader.Seek should have comment or be unexported (golint)
    • Line 350: warning: exported method TSMReader.ReadBytes should have comment or be unexported (golint)
    • Line 583: warning: exported type BatchDeleter should have comment or be unexported (golint)
    • Line 632: warning: receiver name r should be consistent with previous receiver name t for TSMReader (golint)
    • Line 637: warning: exported type BatchDeleters should have comment or be unexported (golint)
    • Line 639: warning: exported method BatchDeleters.DeleteRange should have comment or be unexported (golint)
    • Line 655: warning: exported method BatchDeleters.Commit should have comment or be unexported (golint)
    • Line 671: warning: exported method BatchDeleters.Rollback should have comment or be unexported (golint)
    • Line 751: warning: exported method TimeRange.Overlaps should have comment or be unexported (golint)
    • influxdb/services/storage/series_cursor.go
    • Line 25: warning: exported type SeriesIndex should have comment or be unexported (golint)
    • Line 29: warning: exported type SeriesCursor should have comment or be unexported (golint)
    • Line 35: warning: exported type SeriesRow should have comment or be unexported (golint)
    • Line 248: warning: exported function NewLimitSeriesCursor should have comment or be unexported (golint)
    • influxdb/pkg/encoding/simple8b/encoding.go
    • Line 32: warning: exported const MaxValue should have comment or be unexported (golint)
    • Line 62: warning: exported method Encoder.SetValues should have comment or be unexported (golint)
    • Line 69: warning: exported method Encoder.Reset should have comment or be unexported (golint)
    • Line 129: warning: exported method Encoder.Bytes should have comment or be unexported (golint)
    • Line 166: warning: exported method Decoder.SetBytes should have comment or be unexported (golint)
    • Line 215: warning: comment on exported function CountBytes should be of the form "CountBytes ..." (golint)
    • Line 244: warning: exported function ForEach should have comment or be unexported (golint)
    • Line 269: warning: exported function CountBytesBetween should have comment or be unexported (golint)
    • Line 350: warning: comment on exported function EncodeAll should be of the form "EncodeAll ..." (golint)
    • Line 422: warning: exported function Decode should have comment or be unexported (golint)
    • Line 431: warning: comment on exported function DecodeAll should be of the form "DecodeAll ..." (golint)
    • influxdb/pkg/tar/stream.go
    • Line 48: warning: comment on exported function SinceFilterTarFile should be of the form "SinceFilterTarFile ..." (golint)
    • Line 60: warning: comment on exported function StreamFile should be of the form "StreamFile ..." (golint)
    • Line 65: warning: comment on exported function StreamRenameFile should be of the form "StreamRenameFile ..." (golint)
    • influxdb/tests/server_helpers.go
    • Line 1: warning: package comment should be of the form "Package tests ..." (golint)
    • Line 60: warning: exported method RemoteServer.URL should have comment or be unexported (golint)
    • Line 64: warning: exported method RemoteServer.Open should have comment or be unexported (golint)
    • Line 76: warning: exported method RemoteServer.Close should have comment or be unexported (golint)
    • Line 80: warning: exported method RemoteServer.SetLogOutput should have comment or be unexported (golint)
    • Line 84: warning: exported method RemoteServer.Closed should have comment or be unexported (golint)
    • Line 88: warning: exported method RemoteServer.CreateDatabase should have comment or be unexported (golint)
    • Line 98: warning: exported method RemoteServer.CreateDatabaseAndRetentionPolicy should have comment or be unexported (golint)
    • Line 113: warning: exported method RemoteServer.CreateSubscription should have comment or be unexported (golint)
    • Line 126: warning: exported method RemoteServer.DropDatabase should have comment or be unexported (golint)
    • Line 155: warning: exported method RemoteServer.WritePoints should have comment or be unexported (golint)
    • Line 280: warning: exported method LocalServer.Closed should have comment or be unexported (golint)
    • Line 298: warning: exported method LocalServer.CreateDatabase should have comment or be unexported (golint)
    • Line 316: warning: exported method LocalServer.CreateSubscription should have comment or be unexported (golint)
    • Line 322: warning: exported method LocalServer.DropDatabase should have comment or be unexported (golint)
    • Line 332: warning: exported method LocalServer.Reset should have comment or be unexported (golint)
    • Line 343: warning: exported method LocalServer.WritePoints should have comment or be unexported (golint)
    • Line 364: warning: receiver name s should be consistent with previous receiver name c for client (golint)
    • Line 369: warning: receiver name s should be consistent with previous receiver name c for client (golint)
    • Line 378: warning: receiver name s should be consistent with previous receiver name c for client (golint)
    • Line 390: warning: receiver name s should be consistent with previous receiver name c for client (golint)
    • Line 399: warning: receiver name s should be consistent with previous receiver name c for client (golint)
    • Line 419: warning: receiver name s should be consistent with previous receiver name c for client (golint)
    • Line 439: warning: exported type WriteError should have comment or be unexported (golint)
    • Line 444: warning: exported method WriteError.StatusCode should have comment or be unexported (golint)
    • Line 448: warning: exported method WriteError.Body should have comment or be unexported (golint)
    • Line 457: warning: receiver name s should be consistent with previous receiver name c for client (golint)
    • Line 477: warning: receiver name s should be consistent with previous receiver name c for client (golint)
    • Line 524: warning: comment on exported function NewRetentionPolicySpec should be of the form "NewRetentionPolicySpec ..." (golint)
    • Line 558: warning: exported var LosAngeles should have comment or be unexported (golint)
    • Line 569: warning: exported function RemoteEnabled should have comment or be unexported (golint)
    • Line 577: warning: exported type Query should have comment or be unexported (golint)
    • Line 613: warning: exported type Write should have comment or be unexported (golint)
    • Line 627: warning: exported type Writes should have comment or be unexported (golint)
    • Line 637: warning: exported type Tests should have comment or be unexported (golint)
    • Line 639: warning: exported type Test should have comment or be unexported (golint)
    • Line 649: warning: exported function NewTest should have comment or be unexported (golint)
    • influxdb/query/math.go
    • Line 18: warning: exported type MathTypeMapper should have comment or be unexported (golint)
    • Line 20: warning: exported method MathTypeMapper.MapType should have comment or be unexported (golint)
    • Line 24: warning: exported method MathTypeMapper.CallType should have comment or be unexported (golint)
    • Line 85: warning: exported type MathValuer should have comment or be unexported (golint)
    • Line 89: warning: exported method MathValuer.Value should have comment or be unexported (golint)
    • Line 93: warning: exported method MathValuer.Call should have comment or be unexported (golint)
    • influxdb/cmd/influxd/backup_util/backup_util.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 33: warning: exported const PortableFileNamePattern should have comment (or a comment on this block) or be unexported (golint)
    • Line 36: warning: exported type PortablePacker should have comment or be unexported (golint)
    • Line 41: warning: exported method PortablePacker.MarshalBinary should have comment or be unexported (golint)
    • Line 46: warning: exported method PortablePacker.UnmarshalBinary should have comment or be unexported (golint)
    • Line 57: warning: exported function GetMetaBytes should have comment or be unexported (golint)
    • Line 111: warning: exported method Entry.SizeOrZero should have comment or be unexported (golint)
    • Line 138: warning: exported method Manifest.Save should have comment or be unexported (golint)
    • Line 138: warning: receiver name manifest should be consistent with previous receiver name m for Manifest (golint)
    • Line 205: warning: exported type CountingWriter should have comment or be unexported (golint)
    • Line 216: warning: comment on exported function DBRetentionAndShardFromPath should be of the form "DBRetentionAndShardFromPath ..." (golint)
    • influxdb/internal/tsdb_store.go
    • Line 52: warning: exported method TSDBStoreMock.BackupShard should have comment or be unexported (golint)
    • Line 55: warning: exported method TSDBStoreMock.BackupSeriesFile should have comment or be unexported (golint)
    • Line 58: warning: exported method TSDBStoreMock.ExportShard should have comment or be unexported (golint)
    • Line 61: warning: exported method TSDBStoreMock.Close should have comment or be unexported (golint)
    • Line 62: warning: exported method TSDBStoreMock.CreateShard should have comment or be unexported (golint)
    • Line 65: warning: exported method TSDBStoreMock.CreateShardSnapshot should have comment or be unexported (golint)
    • Line 68: warning: exported method TSDBStoreMock.Databases should have comment or be unexported (golint)
    • Line 71: warning: exported method TSDBStoreMock.DeleteDatabase should have comment or be unexported (golint)
    • Line 74: warning: exported method TSDBStoreMock.DeleteMeasurement should have comment or be unexported (golint)
    • Line 77: warning: exported method TSDBStoreMock.DeleteRetentionPolicy should have comment or be unexported (golint)
    • Line 80: warning: exported method TSDBStoreMock.DeleteSeries should have comment or be unexported (golint)
    • Line 83: warning: exported method TSDBStoreMock.DeleteShard should have comment or be unexported (golint)
    • Line 86: warning: exported method TSDBStoreMock.DiskSize should have comment or be unexported (golint)
    • Line 89: warning: exported method TSDBStoreMock.ExpandSources should have comment or be unexported (golint)
    • Line 92: warning: exported method TSDBStoreMock.ImportShard should have comment or be unexported (golint)
    • Line 95: warning: exported method TSDBStoreMock.MeasurementNames should have comment or be unexported (golint)
    • Line 98: warning: exported method TSDBStoreMock.MeasurementSeriesCounts should have comment or be unexported (golint)
    • Line 101: warning: exported method TSDBStoreMock.MeasurementsCardinality should have comment or be unexported (golint)
    • Line 104: warning: exported method TSDBStoreMock.Open should have comment or be unexported (golint)
    • Line 107: warning: exported method TSDBStoreMock.Path should have comment or be unexported (golint)
    • Line 110: warning: exported method TSDBStoreMock.RestoreShard should have comment or be unexported (golint)
    • Line 113: warning: exported method TSDBStoreMock.SeriesCardinality should have comment or be unexported (golint)
    • Line 116: warning: exported method TSDBStoreMock.SetShardEnabled should have comment or be unexported (golint)
    • Line 119: warning: exported method TSDBStoreMock.Shard should have comment or be unexported (golint)
    • Line 122: warning: exported method TSDBStoreMock.ShardGroup should have comment or be unexported (golint)
    • Line 125: warning: exported method TSDBStoreMock.ShardIDs should have comment or be unexported (golint)
    • Line 128: warning: exported method TSDBStoreMock.ShardN should have comment or be unexported (golint)
    • Line 131: warning: exported method TSDBStoreMock.ShardRelativePath should have comment or be unexported (golint)
    • Line 134: warning: exported method TSDBStoreMock.Shards should have comment or be unexported (golint)
    • Line 137: warning: exported method TSDBStoreMock.Statistics should have comment or be unexported (golint)
    • Line 140: warning: exported method TSDBStoreMock.TagKeys should have comment or be unexported (golint)
    • Line 143: warning: exported method TSDBStoreMock.TagValues should have comment or be unexported (golint)
    • Line 146: warning: exported method TSDBStoreMock.WithLogger should have comment or be unexported (golint)
    • Line 149: warning: exported method TSDBStoreMock.WriteToShard should have comment or be unexported (golint)

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.

    • influxdb/tsdb/store.go
    • Line 206: warning: cyclomatic complexity 36 of function (*Store).loadShards() is high (> 15) (gocyclo)
    • Line 1518: warning: cyclomatic complexity 30 of function (*Store).TagValues() is high (> 15) (gocyclo)
    • Line 1362: warning: cyclomatic complexity 25 of function (*Store).TagKeys() is high (> 15) (gocyclo)
    • Line 1685: warning: cyclomatic complexity 20 of function mergeTagValues() is high (> 15) (gocyclo)
    • Line 1786: warning: cyclomatic complexity 20 of function (*Store).monitorShards() is high (> 15) (gocyclo)
    • Line 1192: warning: cyclomatic complexity 16 of function (*Store).DeleteSeries() is high (> 15) (gocyclo)
    • influxdb/tsdb/series_partition.go
    • Line 178: warning: cyclomatic complexity 21 of function (*SeriesPartition).CreateSeriesListIfNotExists() is high (> 15) (gocyclo)
    • Line 538: warning: cyclomatic complexity 18 of function (*SeriesPartitionCompactor).compactIndexTo() is high (> 15) (gocyclo)
    • influxdb/services/httpd/handler.go
    • Line 358: warning: cyclomatic complexity 48 of function (*Handler).serveQuery() is high (> 15) (gocyclo)
    • Line 668: warning: cyclomatic complexity 26 of function (*Handler).serveWrite() is high (> 15) (gocyclo)
    • Line 848: warning: cyclomatic complexity 25 of function (*Handler).servePromWrite() is high (> 15) (gocyclo)
    • Line 980: warning: cyclomatic complexity 22 of function (*Handler).servePromRead() is high (> 15) (gocyclo)
    • Line 1096: warning: cyclomatic complexity 21 of function (*Handler).serveExpvar() is high (> 15) (gocyclo)
    • Line 1373: warning: cyclomatic complexity 20 of function authenticate() is high (> 15) (gocyclo)
    • influxdb/query/iterator.go
    • Line 989: warning: cyclomatic complexity 17 of function decodeIteratorOptions() is high (> 15) (gocyclo)
    • Line 666: warning: cyclomatic complexity 17 of function newIteratorOptionsSubstatement() is high (> 15) (gocyclo)
    • influxdb/tsdb/store_test.go
    • Line 947: warning: cyclomatic complexity 28 of function TestStore_Sketches() is high (> 15) (gocyclo)
    • Line 1302: warning: cyclomatic complexity 23 of function TestStore_TagKeys_Auth() is high (> 15) (gocyclo)
    • Line 1400: warning: cyclomatic complexity 21 of function TestStore_TagValues_Auth() is high (> 15) (gocyclo)
    • Line 33: warning: cyclomatic complexity 17 of function TestStore_DeleteRetentionPolicy() is high (> 15) (gocyclo)
    • Line 164: warning: cyclomatic complexity 17 of function TestStore_DeleteShard() is high (> 15) (gocyclo)
    • Line 1213: warning: cyclomatic complexity 16 of function TestStore_Measurements_Auth() is high (> 15) (gocyclo)
    • influxdb/query/select.go
    • Line 212: warning: cyclomatic complexity 88 of function (*exprIteratorBuilder).buildCallIterator() is high (> 15) (gocyclo)
    • Line 620: warning: cyclomatic complexity 28 of function buildCursor() is high (> 15) (gocyclo)
    • Line 760: warning: cyclomatic complexity 19 of function buildAuxIterator() is high (> 15) (gocyclo)
    • influxdb/tsdb/index.go
    • Line 1423: warning: cyclomatic complexity 33 of function (IndexSet).measurementNamesByTagFilter() is high (> 15) (gocyclo)
    • Line 1977: warning: cyclomatic complexity 28 of function (IndexSet).seriesByBinaryExprIterator() is high (> 15) (gocyclo)
    • Line 2418: warning: cyclomatic complexity 24 of function (IndexSet).MeasurementTagKeyValuesByExpr() is high (> 15) (gocyclo)
    • Line 2331: warning: cyclomatic complexity 22 of function (IndexSet).tagValuesByKeyAndExpr() is high (> 15) (gocyclo)
    • Line 2523: warning: cyclomatic complexity 19 of function (IndexSet).TagSets() is high (> 15) (gocyclo)
    • Line 1318: warning: cyclomatic complexity 17 of function (IndexSet).measurementNamesByExpr() is high (> 15) (gocyclo)
    • influxdb/tsdb/engine/tsm1/wal_test.go
    • Line 355: warning: cyclomatic complexity 20 of function TestWALWriter_WriteMultiDeleteRange_Multiple() is high (> 15) (gocyclo)
    • Line 261: warning: cyclomatic complexity 18 of function TestWALWriter_WriteMultiDelete_Multiple() is high (> 15) (gocyclo)
    • influxdb/models/points.go
    • Line 870: warning: cyclomatic complexity 52 of function scanNumber() is high (> 15) (gocyclo)
    • Line 731: warning: cyclomatic complexity 30 of function scanFields() is high (> 15) (gocyclo)
    • Line 1011: warning: cyclomatic complexity 24 of function scanBoolean() is high (> 15) (gocyclo)
    • Line 2375: warning: cyclomatic complexity 18 of function appendField() is high (> 15) (gocyclo)
    • influxdb/tsdb/engine/tsm1/reader_test.go
    • Line 1774: warning: cyclomatic complexity 18 of function TestTSMReader_References() is high (> 15) (gocyclo)
    • Line 1309: warning: cyclomatic complexity 16 of function TestBlockIterator_MultipleBlocks() is high (> 15) (gocyclo)
    • Line 912: warning: cyclomatic complexity 16 of function TestTSMReader_MMAP_TombstoneOutsideRange() is high (> 15) (gocyclo)
    • influxdb/monitor/service_test.go
    • Line 87: warning: cyclomatic complexity 19 of function TestMonitor_StoreStatistics() is high (> 15) (gocyclo)
    • Line 287: warning: cyclomatic complexity 16 of function TestMonitor_Expvar() is high (> 15) (gocyclo)
    • influxdb/cmd/influx/cli/cli.go
    • Line 78: warning: cyclomatic complexity 35 of function (*CommandLine).Run() is high (> 15) (gocyclo)
    • Line 257: warning: cyclomatic complexity 22 of function (*CommandLine).ParseCommand() is high (> 15) (gocyclo)
    • Line 925: warning: cyclomatic complexity 22 of function (*CommandLine).formatResults() is high (> 15) (gocyclo)
    • Line 757: warning: cyclomatic complexity 18 of function (*CommandLine).ExecuteQuery() is high (> 15) (gocyclo)
    • influxdb/tsdb/engine/tsm1/engine.go
    • Line 1482: warning: cyclomatic complexity 44 of function (*Engine).deleteSeriesRange() is high (> 15) (gocyclo)
    • Line 2612: warning: cyclomatic complexity 42 of function (*Engine).createVarRefSeriesIterator() is high (> 15) (gocyclo)
    • Line 2789: warning: cyclomatic complexity 26 of function (*Engine).buildCursor() is high (> 15) (gocyclo)
    • Line 1257: warning: cyclomatic complexity 24 of function (*Engine).WritePoints() is high (> 15) (gocyclo)
    • Line 1369: warning: cyclomatic complexity 20 of function (*Engine).DeleteSeriesRangeWithPredicate() is high (> 15) (gocyclo)
    • Line 2423: warning: cyclomatic complexity 19 of function (*Engine).createVarRefIterator() is high (> 15) (gocyclo)
    • Line 919: warning: cyclomatic complexity 19 of function (*Engine).timeStampFilterTarFile() is high (> 15) (gocyclo)
    • Line 1062: warning: cyclomatic complexity 19 of function (*Engine).overlay() is high (> 15) (gocyclo)
    • Line 795: warning: cyclomatic complexity 16 of function (*Engine).LoadMetadataIndex() is high (> 15) (gocyclo)
    • Line 985: warning: cyclomatic complexity 16 of function (*Engine).filterFileToBackup() is high (> 15) (gocyclo)
    • Line 2342: warning: cyclomatic complexity 16 of function (*Engine).createCallIterator() is high (> 15) (gocyclo)
    • influxdb/tsdb/engine/tsm1/compact.go
    • Line 403: warning: cyclomatic complexity 50 of function (*DefaultPlanner).Plan() is high (> 15) (gocyclo)
    • Line 1363: warning: cyclomatic complexity 29 of function (*tsmKeyIterator).Next() is high (> 15) (gocyclo)
    • Line 1071: warning: cyclomatic complexity 23 of function (*Compactor).write() is high (> 15) (gocyclo)
    • Line 312: warning: cyclomatic complexity 22 of function (*DefaultPlanner).PlanOptimize() is high (> 15) (gocyclo)
    • Line 216: warning: cyclomatic complexity 21 of function (*DefaultPlanner).PlanLevel() is high (> 15) (gocyclo)
    • influxdb/tsdb/index/inmem/meta.go
    • Line 624: warning: cyclomatic complexity 51 of function (*measurement).idsForExpr() is high (> 15) (gocyclo)
    • Line 904: warning: cyclomatic complexity 20 of function (*measurement).TagKeysByExpr() is high (> 15) (gocyclo)
    • Line 372: warning: cyclomatic complexity 19 of function (*measurement).TagSets() is high (> 15) (gocyclo)
    • Line 514: warning: cyclomatic complexity 17 of function unionSeriesFilters() is high (> 15) (gocyclo)
    • Line 811: warning: cyclomatic complexity 17 of function (*measurement).WalkWhereForSeriesIds() is high (> 15) (gocyclo)
    • influxdb/query/compile.go
    • Line 231: warning: cyclomatic complexity 32 of function (*compiledField).compileExpr() is high (> 15) (gocyclo)
    • Line 575: warning: cyclomatic complexity 24 of function (*compiledField).compileExponentialMovingAverage() is high (> 15) (gocyclo)
    • Line 870: warning: cyclomatic complexity 23 of function (*compiledStatement).compileDimensions() is high (> 15) (gocyclo)
    • Line 673: warning: cyclomatic complexity 21 of function (*compiledField).compileChandeMomentumOscillator() is high (> 15) (gocyclo)
    • Line 1064: warning: cyclomatic complexity 18 of function (*compiledStatement).Prepare() is high (> 15) (gocyclo)
    • Line 632: warning: cyclomatic complexity 16 of function (*compiledField).compileKaufmans() is high (> 15) (gocyclo)
    • influxdb/client/influxdb.go
    • Line 211: warning: cyclomatic complexity 19 of function (*Client).QueryContext() is high (> 15) (gocyclo)
    • Line 294: warning: cyclomatic complexity 16 of function (*Client).Write() is high (> 15) (gocyclo)
    • influxdb/tsdb/shard_test.go
    • Line 493: warning: cyclomatic complexity 27 of function TestShard_WritePoints_FieldConflictConcurrentQuery() is high (> 15) (gocyclo)
    • Line 859: warning: cyclomatic complexity 23 of function TestShard_CreateIterator_Series_Auth() is high (> 15) (gocyclo)
    • influxdb/stress/stress_test.go
    • Line 506: warning: cyclomatic complexity 24 of function Test_NewConfigWithoutFile() is high (> 15) (gocyclo)
    • Line 419: warning: cyclomatic complexity 24 of function Test_NewConfigWithFile() is high (> 15) (gocyclo)
    • influxdb/tsdb/shard.go
    • Line 528: warning: cyclomatic complexity 28 of function (*Shard).validateSeriesAndFields() is high (> 15) (gocyclo)
    • Line 879: warning: cyclomatic complexity 17 of function (*Shard).FieldDimensions() is high (> 15) (gocyclo)
    • influxdb/tsdb/engine/tsm1/wal.go
    • Line 755: warning: cyclomatic complexity 26 of function (*WriteWALEntry).UnmarshalBinary() is high (> 15) (gocyclo)
    • Line 641: warning: cyclomatic complexity 22 of function (*WriteWALEntry).Encode() is high (> 15) (gocyclo)
    • influxdb/cmd/store/query/query.go
    • Line 475: warning: cyclomatic complexity 18 of function (*exprToNodeVisitor).Visit() is high (> 15) (gocyclo)
    • Line 310: warning: cyclomatic complexity 17 of function (*Command).processFrames() is high (> 15) (gocyclo)
    • influxdb/services/meta/data_test.go
    • Line 220: warning: cyclomatic complexity 20 of function TestData_TruncateShardGroups() is high (> 15) (gocyclo)
    • Line 116: warning: cyclomatic complexity 19 of function TestData_AdminUserExists() is high (> 15) (gocyclo)
    • influxdb/tsdb/index_test.go
    • Line 192: warning: cyclomatic complexity 21 of function TestIndex_Sketches() is high (> 15) (gocyclo)
    • Line 544: warning: cyclomatic complexity 18 of function BenchmarkIndex_ConcurrentWriteQuery() is high (> 15) (gocyclo)
    • influxdb/tsdb/engine/tsm1/engine_test.go
    • Line 325: warning: cyclomatic complexity 46 of function TestEngine_Export() is high (> 15) (gocyclo)
    • Line 1411: warning: cyclomatic complexity 29 of function TestEngine_DeleteSeriesRangeWithPredicate_FlushBatch() is high (> 15) (gocyclo)
    • Line 1199: warning: cyclomatic complexity 29 of function TestEngine_DeleteSeriesRangeWithPredicate() is high (> 15) (gocyclo)
    • Line 1089: warning: cyclomatic complexity 23 of function TestEngine_DeleteSeriesRange() is high (> 15) (gocyclo)
    • Line 1325: warning: cyclomatic complexity 19 of function TestEngine_DeleteSeriesRangeWithPredicate_Nil() is high (> 15) (gocyclo)
    • Line 218: warning: cyclomatic complexity 19 of function TestEngine_Backup() is high (> 15) (gocyclo)
    • Line 942: warning: cyclomatic complexity 18 of function TestIndex_SeriesIDSet() is high (> 15) (gocyclo)
    • Line 1537: warning: cyclomatic complexity 17 of function TestEngine_DeleteSeriesRange_OutsideTime() is high (> 15) (gocyclo)
    • Line 70: warning: cyclomatic complexity 16 of function TestEngine_Digest() is high (> 15) (gocyclo)
    • influxdb/coordinator/statement_executor.go
    • Line 59: warning: cyclomatic complexity 61 of function (*StatementExecutor).ExecuteStatement() is high (> 15) (gocyclo)
    • Line 1013: warning: cyclomatic complexity 18 of function (*StatementExecutor).executeShowTagValues() is high (> 15) (gocyclo)
    • Line 926: warning: cyclomatic complexity 18 of function (*StatementExecutor).executeShowTagKeys() is high (> 15) (gocyclo)
    • Line 1264: warning: cyclomatic complexity 17 of function (*StatementExecutor).NormalizeStatement() is high (> 15) (gocyclo)
    • influxdb/cmd/influxd/run/config_test.go
    • Line 109: warning: cyclomatic complexity 27 of function TestConfig_Parse_EnvOverride() is high (> 15) (gocyclo)
    • Line 20: warning: cyclomatic complexity 17 of function TestConfig_Parse() is high (> 15) (gocyclo)
    • Line 432: warning: cyclomatic complexity 17 of function TestConfig_Parse_UTF16_ByteOrderMark() is high (> 15) (gocyclo)
    • Line 340: warning: cyclomatic complexity 17 of function TestConfig_Parse_UTF8_ByteOrderMark() is high (> 15) (gocyclo)
    • influxdb/tsdb/engine/tsm1/file_store_test.go
    • Line 1732: warning: cyclomatic complexity 16 of function TestFileStore_SeekToDesc_AfterEnd_OverlapBoolean() is high (> 15) (gocyclo)
    • Line 1481: warning: cyclomatic complexity 16 of function TestFileStore_SeekToDesc_AfterEnd_OverlapFloat() is high (> 15) (gocyclo)
    • Line 1829: warning: cyclomatic complexity 16 of function TestFileStore_SeekToDesc_AfterEnd_OverlapString() is high (> 15) (gocyclo)
    • influxdb/query/math.go
    • Line 93: warning: cyclomatic complexity 47 of function (MathValuer).Call() is high (> 15) (gocyclo)
    • Line 24: warning: cyclomatic complexity 20 of function (MathTypeMapper).CallType() is high (> 15) (gocyclo)
    • influxdb/tsdb/index/inmem/inmem.go
    • Line 639: warning: cyclomatic complexity 19 of function (*Index).measurementNamesByTagFilters() is high (> 15) (gocyclo)
    • Line 189: warning: cyclomatic complexity 18 of function (*Index).CreateSeriesListIfNotExists() is high (> 15) (gocyclo)
    • Line 412: warning: cyclomatic complexity 17 of function (*Index).MeasurementTagKeyValuesByExpr() is high (> 15) (gocyclo)
    • Line 549: warning: cyclomatic complexity 16 of function (*Index).measurementNamesByExpr() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!