Preparing report...

Report for github.com/d2r2/go-bsbmp

A    Great!    Found 6 issues across 8 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo100%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.

No problems detected. Good job!


golint37%

Golint is a linter for Go source code.

    • go-bsbmp/bme280.go
    • Line 55: warning: comment on exported type CoeffBME280 should be of the form "CoeffBME280 ..." (with optional leading article) (golint)
    • Line 95: warning: don't use underscores in Go names; method dig_T1 should be digT1 (golint)
    • Line 99: warning: don't use underscores in Go names; method dig_T2 should be digT2 (golint)
    • Line 103: warning: don't use underscores in Go names; method dig_T3 should be digT3 (golint)
    • Line 107: warning: don't use underscores in Go names; method dig_P1 should be digP1 (golint)
    • Line 111: warning: don't use underscores in Go names; method dig_P2 should be digP2 (golint)
    • Line 115: warning: don't use underscores in Go names; method dig_P3 should be digP3 (golint)
    • Line 119: warning: don't use underscores in Go names; method dig_P4 should be digP4 (golint)
    • Line 123: warning: don't use underscores in Go names; method dig_P5 should be digP5 (golint)
    • Line 127: warning: don't use underscores in Go names; method dig_P6 should be digP6 (golint)
    • Line 131: warning: don't use underscores in Go names; method dig_P7 should be digP7 (golint)
    • Line 135: warning: don't use underscores in Go names; method dig_P8 should be digP8 (golint)
    • Line 139: warning: don't use underscores in Go names; method dig_P9 should be digP9 (golint)
    • Line 143: warning: don't use underscores in Go names; method dig_H1 should be digH1 (golint)
    • Line 147: warning: don't use underscores in Go names; method dig_H2 should be digH2 (golint)
    • Line 151: warning: don't use underscores in Go names; method dig_H3 should be digH3 (golint)
    • Line 155: warning: don't use underscores in Go names; method dig_H4 should be digH4 (golint)
    • Line 159: warning: don't use underscores in Go names; method dig_H5 should be digH5 (golint)
    • Line 163: warning: don't use underscores in Go names; method dig_H6 should be digH6 (golint)
    • Line 304: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 554: warning: don't use underscores in Go names; var v_x1 should be vX1 (golint)
    • go-bsbmp/bmp.go
    • Line 23: warning: package comment should be of the form "Package bsbmp ..." (golint)
    • Line 23: warning: package comment should not have leading space (golint)
    • Line 59: warning: comment on exported const BMP180 should be of the form "BMP180 ..." (golint)
    • Line 61: warning: comment on exported const BMP280 should be of the form "BMP280 ..." (golint)
    • Line 63: warning: comment on exported const BME280 should be of the form "BME280 ..." (golint)
    • Line 65: warning: comment on exported const BMP388 should be of the form "BMP388 ..." (golint)
    • Line 69: warning: comment on exported type AccuracyMode should be of the form "AccuracyMode ..." (with optional leading article) (golint)
    • Line 74: warning: exported const ACCURACY_ULTRA_LOW should have comment (or a comment on this block) or be unexported (golint)
    • Line 82: warning: comment on exported type SensorInterface should be of the form "SensorInterface ..." (with optional leading article) (golint)
    • Line 148: warning: exported method BMP.IsValidCoefficients should have comment or be unexported (golint)
    • go-bsbmp/bmp180.go
    • Line 46: warning: comment on exported type CoeffBMP180 should be of the form "CoeffBMP180 ..." (with optional leading article) (golint)
    • Line 73: warning: don't use underscores in Go names; method dig_AC1 should be digAC1 (golint)
    • Line 77: warning: don't use underscores in Go names; method dig_AC2 should be digAC2 (golint)
    • Line 81: warning: don't use underscores in Go names; method dig_AC3 should be digAC3 (golint)
    • Line 85: warning: don't use underscores in Go names; method dig_AC4 should be digAC4 (golint)
    • Line 89: warning: don't use underscores in Go names; method dig_AC5 should be digAC5 (golint)
    • Line 93: warning: don't use underscores in Go names; method dig_AC6 should be digAC6 (golint)
    • Line 97: warning: don't use underscores in Go names; method dig_B1 should be digB1 (golint)
    • Line 101: warning: don't use underscores in Go names; method dig_B2 should be digB2 (golint)
    • Line 105: warning: don't use underscores in Go names; method dig_MB should be digMB (golint)
    • Line 109: warning: don't use underscores in Go names; method dig_MC should be digMC (golint)
    • Line 113: warning: don't use underscores in Go names; method dig_MD should be digMD (golint)
    • Line 220: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • go-bsbmp/bmp280.go
    • Line 49: warning: comment on exported type CoeffBMP280 should be of the form "CoeffBMP280 ..." (with optional leading article) (golint)
    • Line 78: warning: don't use underscores in Go names; method dig_T1 should be digT1 (golint)
    • Line 82: warning: don't use underscores in Go names; method dig_T2 should be digT2 (golint)
    • Line 86: warning: don't use underscores in Go names; method dig_T3 should be digT3 (golint)
    • Line 90: warning: don't use underscores in Go names; method dig_P1 should be digP1 (golint)
    • Line 94: warning: don't use underscores in Go names; method dig_P2 should be digP2 (golint)
    • Line 98: warning: don't use underscores in Go names; method dig_P3 should be digP3 (golint)
    • Line 102: warning: don't use underscores in Go names; method dig_P4 should be digP4 (golint)
    • Line 106: warning: don't use underscores in Go names; method dig_P5 should be digP5 (golint)
    • Line 110: warning: don't use underscores in Go names; method dig_P6 should be digP6 (golint)
    • Line 114: warning: don't use underscores in Go names; method dig_P7 should be digP7 (golint)
    • Line 118: warning: don't use underscores in Go names; method dig_P8 should be digP8 (golint)
    • Line 122: warning: don't use underscores in Go names; method dig_P9 should be digP9 (golint)
    • Line 235: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • go-bsbmp/bmp388.go
    • Line 61: warning: don't use underscores in Go names; const BMP388_coef_0 should be BMP388Coef0 (golint)
    • Line 62: warning: don't use underscores in Go names; const BMP388_coef_1 should be BMP388Coef1 (golint)
    • Line 63: warning: don't use underscores in Go names; const BMP388_coef_3 should be BMP388Coef3 (golint)
    • Line 64: warning: don't use underscores in Go names; const BMP388_coef_7 should be BMP388Coef7 (golint)
    • Line 65: warning: don't use underscores in Go names; const BMP388_coef_15 should be BMP388Coef15 (golint)
    • Line 66: warning: don't use underscores in Go names; const BMP388_coef_31 should be BMP388Coef31 (golint)
    • Line 67: warning: don't use underscores in Go names; const BMP388_coef_63 should be BMP388Coef63 (golint)
    • Line 68: warning: don't use underscores in Go names; const BMP388_coef_127 should be BMP388Coef127 (golint)
    • Line 71: warning: comment on exported type CoeffBMP388 should be of the form "CoeffBMP388 ..." (with optional leading article) (golint)
    • Line 97: warning: exported method CoeffBMP388.PAR_T1 should have comment or be unexported (golint)
    • Line 101: warning: exported method CoeffBMP388.PAR_T2 should have comment or be unexported (golint)
    • Line 105: warning: exported method CoeffBMP388.PAR_T3 should have comment or be unexported (golint)
    • Line 109: warning: exported method CoeffBMP388.PAR_P1 should have comment or be unexported (golint)
    • Line 113: warning: exported method CoeffBMP388.PAR_P2 should have comment or be unexported (golint)
    • Line 117: warning: exported method CoeffBMP388.PAR_P3 should have comment or be unexported (golint)
    • Line 121: warning: exported method CoeffBMP388.PAR_P4 should have comment or be unexported (golint)
    • Line 125: warning: exported method CoeffBMP388.PAR_P5 should have comment or be unexported (golint)
    • Line 129: warning: exported method CoeffBMP388.PAR_P6 should have comment or be unexported (golint)
    • Line 133: warning: exported method CoeffBMP388.PAR_P7 should have comment or be unexported (golint)
    • Line 137: warning: exported method CoeffBMP388.PAR_P8 should have comment or be unexported (golint)
    • Line 141: warning: exported method CoeffBMP388.PAR_P9 should have comment or be unexported (golint)
    • Line 145: warning: exported method CoeffBMP388.PAR_P10 should have comment or be unexported (golint)
    • Line 149: warning: exported method CoeffBMP388.PAR_P11 should have comment or be unexported (golint)
    • Line 283: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 440: warning: don't use underscores in Go names; var partial_data1 should be partialData1 (golint)
    • Line 441: warning: don't use underscores in Go names; var partial_data2 should be partialData2 (golint)
    • Line 442: warning: don't use underscores in Go names; var partial_data3 should be partialData3 (golint)
    • Line 443: warning: don't use underscores in Go names; var partial_data4 should be partialData4 (golint)
    • Line 444: warning: don't use underscores in Go names; var partial_data5 should be partialData5 (golint)
    • Line 445: warning: don't use underscores in Go names; var partial_data6 should be partialData6 (golint)
    • Line 474: warning: don't use underscores in Go names; var partial_data1_t should be partialData1T (golint)
    • Line 475: warning: don't use underscores in Go names; var partial_data2_t should be partialData2T (golint)
    • Line 476: warning: don't use underscores in Go names; var partial_data3_t should be partialData3T (golint)
    • Line 477: warning: don't use underscores in Go names; var partial_data4_t should be partialData4T (golint)
    • Line 478: warning: don't use underscores in Go names; var partial_data5_t should be partialData5T (golint)
    • Line 479: warning: don't use underscores in Go names; var partial_data6_t should be partialData6T (golint)
    • Line 480: warning: don't use underscores in Go names; var t_lin should be tLin (golint)
    • Line 486: warning: don't use underscores in Go names; var partial_data1 should be partialData1 (golint)
    • Line 487: warning: don't use underscores in Go names; var partial_data2 should be partialData2 (golint)
    • Line 488: warning: don't use underscores in Go names; var partial_data3 should be partialData3 (golint)
    • Line 489: warning: don't use underscores in Go names; var partial_data4 should be partialData4 (golint)
    • Line 490: warning: don't use underscores in Go names; var partial_data5 should be partialData5 (golint)
    • Line 491: warning: don't use underscores in Go names; var partial_data6 should be partialData6 (golint)
    • Line 532: warning: don't use underscores in Go names; var comp_press should be compPress (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell75%

Misspell Finds commonly misspelled English words

    • go-bsbmp/bmp388.go
    • Line 44: warning: "coefficent" is a misspelling of "coefficient" (misspell)
    • Line 60: warning: "coefficent" is a misspelling of "coefficient" (misspell)