Preparing report...

Report for github.com/RobCherry/govips

A+    Excellent!    Found 4 issues across 9 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!


gocyclo88%

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.


golint66%

Golint is a linter for Go source code.

    • govips/decode_test.go
    • Line 162: warning: don't use underscores in Go names; func benchmark_DecodeVips should be benchmarkDecodeVips (golint)
    • Line 174: warning: don't use underscores in Go names; func test_DecodeVips should be testDecodeVips (golint)
    • Line 198: warning: don't use underscores in Go names; func test_DecodeGifVips should be testDecodeGifVips (golint)
    • Line 204: warning: don't use underscores in Go names; func test_DecodeJpegVips should be testDecodeJpegVips (golint)
    • Line 210: warning: don't use underscores in Go names; func test_DecodePngVips should be testDecodePngVips (golint)
    • Line 216: warning: don't use underscores in Go names; func test_DecodeWebpVips should be testDecodeWebpVips (golint)
    • Line 222: warning: don't use underscores in Go names; func test_DecodeMagickVips should be testDecodeMagickVips (golint)
    • Line 228: warning: don't use underscores in Go names; func benchmark_DecodeNative should be benchmarkDecodeNative (golint)
    • Line 246: warning: don't use underscores in Go names; func benchmark_DecodeConfigNative should be benchmarkDecodeConfigNative (golint)
    • govips/vips.go
    • Line 35: warning: exported var ErrInitialize should have comment or be unexported (golint)
    • Line 55: warning: exported var VIPS_BACKGROUND_BLACK should have comment or be unexported (golint)
    • Line 59: warning: exported type Config should have comment or be unexported (golint)
    • Line 71: warning: exported function Initialize should have comment or be unexported (golint)
    • Line 84: warning: exported function InitializeWithConfig should have comment or be unexported (golint)
    • Line 92: warning: exported function Configure should have comment or be unexported (golint)
    • Line 121: warning: exported function Shutdown should have comment or be unexported (golint)
    • Line 130: warning: exported function ThreadShutdown should have comment or be unexported (golint)
    • Line 134: warning: exported function ErrorBuffer should have comment or be unexported (golint)
    • Line 149: warning: don't use underscores in Go names; var cVIPS_META_ICC_NAME should be cVIPSMETAICCNAME (golint)
    • Line 152: warning: exported type VipsInterpretation should have comment or be unexported (golint)
    • Line 159: warning: exported const VIPS_INTERPRETATION_ERROR should have comment (or a comment on this block) or be unexported (golint)
    • Line 171: warning: don't use underscores in Go names; const VIPS_INTERPRETATION_sRGB should be VIPSINTERPRETATIONSRGB (golint)
    • Line 177: warning: don't use underscores in Go names; const VIPS_INTERPRETATION_scRGB should be VIPSINTERPRETATIONScRGB (golint)
    • Line 182: warning: exported type VipsAccess should have comment or be unexported (golint)
    • Line 200: warning: exported const VIPS_ACCESS_RANDOM should have comment (or a comment on this block) or be unexported (golint)
    • Line 207: warning: exported const JPEG_QUANTIZATION_TABLE_DEFAULT should have comment (or a comment on this block) or be unexported (golint)
    • Line 214: warning: exported type PngFilter should have comment or be unexported (golint)
    • Line 236: warning: exported const VIPS_PNG_FILTER_DEFAULT should have comment (or a comment on this block) or be unexported (golint)
    • Line 245: warning: exported type WebpPreset should have comment or be unexported (golint)
    • Line 267: warning: exported const VIPS_WEBP_PRESET_DEFAULT should have comment (or a comment on this block) or be unexported (golint)
    • Line 276: warning: exported type VipsExtend should have comment or be unexported (golint)
    • Line 298: warning: exported const VIPS_EXTEND_BLACK should have comment (or a comment on this block) or be unexported (golint)
    • Line 306: warning: exported type VipsKernel should have comment or be unexported (golint)
    • Line 328: warning: exported const VIPS_KERNEL_NEAREST should have comment (or a comment on this block) or be unexported (golint)
    • Line 336: warning: exported type VipsPrecision should have comment or be unexported (golint)
    • Line 354: warning: exported const VIPS_PRECISION_INTEGER should have comment (or a comment on this block) or be unexported (golint)
    • Line 360: warning: exported type VipsIntent should have comment or be unexported (golint)
    • Line 380: warning: exported const VIPS_INTENT_PERCEPTUAL should have comment (or a comment on this block) or be unexported (golint)
    • Line 389: warning: exported type VipsImage should have comment or be unexported (golint)
    • Line 394: warning: exported method VipsImage.Bounds should have comment or be unexported (golint)
    • Line 401: warning: exported method VipsImage.Interpretation should have comment or be unexported (golint)
    • Line 408: warning: exported method VipsImage.Bands should have comment or be unexported (golint)
    • Line 415: warning: exported method VipsImage.HasProfile should have comment or be unexported (golint)
    • Line 422: warning: exported method VipsImage.RemoveProfile should have comment or be unexported (golint)
    • Line 426: warning: exported method VipsImage.Free should have comment or be unexported (golint)
    • Line 442: warning: exported type DecodeOptions should have comment or be unexported (golint)
    • Line 462: warning: exported type DecodeGifOptions should have comment or be unexported (golint)
    • Line 483: warning: exported type DecodeJpegOptions should have comment or be unexported (golint)
    • Line 519: warning: exported type DecodeMagickOptions should have comment or be unexported (golint)
    • Line 556: warning: exported type DecodeWebpOptions should have comment or be unexported (golint)
    • Line 580: warning: exported function DecodeGifReader should have comment or be unexported (golint)
    • Line 588: warning: exported function DecodeGifBytes should have comment or be unexported (golint)
    • Line 601: warning: exported function DecodeJpegReader should have comment or be unexported (golint)
    • Line 609: warning: exported function DecodeJpegBytes should have comment or be unexported (golint)
    • Line 622: warning: exported function DecodeMagickReader should have comment or be unexported (golint)
    • Line 630: warning: exported function DecodeMagickBytes should have comment or be unexported (golint)
    • Line 643: warning: exported function DecodePngReader should have comment or be unexported (golint)
    • Line 651: warning: exported function DecodePngBytes should have comment or be unexported (golint)
    • Line 663: warning: exported function DecodeWebpReader should have comment or be unexported (golint)
    • Line 671: warning: exported function DecodeWebpBytes should have comment or be unexported (golint)
    • Line 686: warning: exported type EncodeJpegOptions should have comment or be unexported (golint)
    • Line 745: warning: exported function EncodeJpegFile should have comment or be unexported (golint)
    • Line 759: warning: exported function EncodeJpegBytes should have comment or be unexported (golint)
    • Line 775: warning: exported type EncodePngOptions should have comment or be unexported (golint)
    • Line 816: warning: exported function EncodePngFile should have comment or be unexported (golint)
    • Line 830: warning: exported function EncodePngBytes should have comment or be unexported (golint)
    • Line 846: warning: exported type EncodeWebpOptions should have comment or be unexported (golint)
    • Line 886: warning: exported function EncodeWebpFile should have comment or be unexported (golint)
    • Line 900: warning: exported function EncodeWebpBytes should have comment or be unexported (golint)
    • Line 918: warning: exported type EmbedOptions should have comment or be unexported (golint)
    • Line 946: warning: exported function Embed should have comment or be unexported (golint)
    • Line 959: warning: exported function ExtractArea should have comment or be unexported (golint)
    • Line 967: warning: exported function Crop should have comment or be unexported (golint)
    • Line 971: warning: exported function Shrink should have comment or be unexported (golint)
    • Line 979: warning: exported function ShrinkH should have comment or be unexported (golint)
    • Line 987: warning: exported function ShrinkV should have comment or be unexported (golint)
    • Line 995: warning: exported function Reduce should have comment or be unexported (golint)
    • Line 1003: warning: exported function ReduceH should have comment or be unexported (golint)
    • Line 1011: warning: exported function ReduceV should have comment or be unexported (golint)
    • Line 1019: warning: exported function Resize should have comment or be unexported (golint)
    • Line 1027: warning: exported type SimilarityOptions should have comment or be unexported (golint)
    • Line 1078: warning: exported function Similarity should have comment or be unexported (golint)
    • Line 1091: warning: exported type AffineOptions should have comment or be unexported (golint)
    • Line 1139: warning: exported function Affine should have comment or be unexported (golint)
    • Line 1152: warning: exported type BlurOptions should have comment or be unexported (golint)
    • Line 1175: warning: exported function Blur should have comment or be unexported (golint)
    • Line 1188: warning: exported type SharpenOptions should have comment or be unexported (golint)
    • Line 1246: warning: exported function Sharpen should have comment or be unexported (golint)
    • Line 1259: warning: exported type FlattenOptions should have comment or be unexported (golint)
    • Line 1292: warning: exported function Flatten should have comment or be unexported (golint)
    • Line 1305: warning: exported type ColourspaceOptions should have comment or be unexported (golint)
    • Line 1322: warning: exported function Colourspace should have comment or be unexported (golint)
    • Line 1337: warning: exported function ColourspaceIsSupported should have comment or be unexported (golint)
    • Line 1341: warning: exported type ICCTransformOptions should have comment or be unexported (golint)
    • Line 1382: warning: exported function ICCTransform should have comment or be unexported (golint)
    • Line 1399: warning: exported type VipsInterpolate should have comment or be unexported (golint)
    • Line 1404: warning: exported method VipsInterpolate.Free should have comment or be unexported (golint)
    • Line 1412: warning: exported function NewVipsInterpolator should have comment or be unexported (golint)
    • Line 1422: warning: exported function NewNearestVipsInterpolator should have comment or be unexported (golint)
    • Line 1427: warning: exported function NewBilinearVipsInterpolator should have comment or be unexported (golint)
    • Line 1432: warning: exported function NewBicubicVipsInterpolator should have comment or be unexported (golint)
    • Line 1437: warning: exported function NewLBBVipsInterpolator should have comment or be unexported (golint)
    • Line 1442: warning: exported function NewNohaloVipsInterpolator should have comment or be unexported (golint)
    • Line 1447: warning: exported function NewVSQBSVipsInterpolator should have comment or be unexported (golint)
    • Line 1461: warning: exported type NRGBAVipsImage should have comment or be unexported (golint)
    • Line 1467: warning: exported method NRGBAVipsImage.ColorModel should have comment or be unexported (golint)
    • Line 1471: warning: exported method NRGBAVipsImage.At should have comment or be unexported (golint)
    • Line 1487: warning: exported method NRGBAVipsImage.Free should have comment or be unexported (golint)
    • Line 1495: warning: exported function NewNRGBAVipsImage should have comment or be unexported (golint)
    • Line 1512: warning: exported type CMYKVipsImage should have comment or be unexported (golint)
    • Line 1517: warning: exported method CMYKVipsImage.ColorModel should have comment or be unexported (golint)
    • Line 1521: warning: exported method CMYKVipsImage.At should have comment or be unexported (golint)
    • Line 1533: warning: exported method CMYKVipsImage.Free should have comment or be unexported (golint)
    • Line 1541: warning: exported function NewCMYKVipsImage should have comment or be unexported (golint)
    • Line 1558: warning: exported type GrayVipsImage should have comment or be unexported (golint)
    • Line 1563: warning: exported method GrayVipsImage.ColorModel should have comment or be unexported (golint)
    • Line 1567: warning: exported method GrayVipsImage.At should have comment or be unexported (golint)
    • Line 1575: warning: exported method GrayVipsImage.Free should have comment or be unexported (golint)
    • Line 1583: warning: exported function NewGrayVipsImage should have comment or be unexported (golint)

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!