Preparing report...

Report for github.com/c3sr/pytorch

A+    Excellent!    Found 2 issues across 20 files

Tweet

gofmt95%

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!


gocyclo95%

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.


golint95%

Golint is a linter for Go source code.

    • pytorch/builtin_models_static.go
    • Line 13: warning: don't use underscores in Go names; func bindata_read should be bindataRead (golint)
    • Line 38: warning: don't use underscores in Go names; var _caffe_resnet_101_yml should be _caffeResnet101Yml (golint)
    • Line 40: warning: don't use underscores in Go names; func caffe_resnet_101_yml should be caffeResnet101Yml (golint)
    • Line 47: warning: don't use underscores in Go names; var _dpn_107_yml should be _dpn107Yml (golint)
    • Line 49: warning: don't use underscores in Go names; func dpn_107_yml should be dpn107Yml (golint)
    • Line 56: warning: don't use underscores in Go names; var _dpn_131_yml should be _dpn131Yml (golint)
    • Line 58: warning: don't use underscores in Go names; func dpn_131_yml should be dpn131Yml (golint)
    • Line 65: warning: don't use underscores in Go names; var _dpn_68_v1_0_yml should be _dpn68V1_0Yml (golint)
    • Line 67: warning: don't use underscores in Go names; func dpn_68_v1_0_yml should be dpn68V1_0Yml (golint)
    • Line 74: warning: don't use underscores in Go names; var _dpn_68_v2_0_yml should be _dpn68V2_0Yml (golint)
    • Line 76: warning: don't use underscores in Go names; func dpn_68_v2_0_yml should be dpn68V2_0Yml (golint)
    • Line 83: warning: don't use underscores in Go names; var _dpn_92_yml should be _dpn92Yml (golint)
    • Line 85: warning: don't use underscores in Go names; func dpn_92_yml should be dpn92Yml (golint)
    • Line 92: warning: don't use underscores in Go names; var _dpn_98_yml should be _dpn98Yml (golint)
    • Line 94: warning: don't use underscores in Go names; func dpn_98_yml should be dpn98Yml (golint)
    • Line 101: warning: don't use underscores in Go names; var _inception_resnet_v2_0_yml should be _inceptionResnetV2_0Yml (golint)
    • Line 103: warning: don't use underscores in Go names; func inception_resnet_v2_0_yml should be inceptionResnetV2_0Yml (golint)
    • Line 110: warning: don't use underscores in Go names; var _inception_v3_0_yml should be _inceptionV3_0Yml (golint)
    • Line 112: warning: don't use underscores in Go names; func inception_v3_0_yml should be inceptionV3_0Yml (golint)
    • Line 119: warning: don't use underscores in Go names; var _mlperf_bert_yml should be _mlperfBertYml (golint)
    • Line 121: warning: don't use underscores in Go names; func mlperf_bert_yml should be mlperfBertYml (golint)
    • Line 128: warning: don't use underscores in Go names; var _mlperf_bert_gpu_yml should be _mlperfBertGpuYml (golint)
    • Line 130: warning: don't use underscores in Go names; func mlperf_bert_gpu_yml should be mlperfBertGpuYml (golint)
    • Line 137: warning: don't use underscores in Go names; var _mobilenet_ssd_lite_v2_0_yml should be _mobilenetSsdLiteV2_0Yml (golint)
    • Line 139: warning: don't use underscores in Go names; func mobilenet_ssd_lite_v2_0_yml should be mobilenetSsdLiteV2_0Yml (golint)
    • Line 146: warning: don't use underscores in Go names; var _mobilenet_ssd_v1_0_yml should be _mobilenetSsdV1_0Yml (golint)
    • Line 148: warning: don't use underscores in Go names; func mobilenet_ssd_v1_0_yml should be mobilenetSsdV1_0Yml (golint)
    • Line 155: warning: don't use underscores in Go names; var _nasnet_a_large_yml should be _nasnetALargeYml (golint)
    • Line 157: warning: don't use underscores in Go names; func nasnet_a_large_yml should be nasnetALargeYml (golint)
    • Line 164: warning: don't use underscores in Go names; var _nasnet_a_mobile_yml should be _nasnetAMobileYml (golint)
    • Line 166: warning: don't use underscores in Go names; func nasnet_a_mobile_yml should be nasnetAMobileYml (golint)
    • Line 173: warning: don't use underscores in Go names; var _pnasnet_5_large_yml should be _pnasnet5LargeYml (golint)
    • Line 175: warning: don't use underscores in Go names; func pnasnet_5_large_yml should be pnasnet5LargeYml (golint)
    • Line 182: warning: don't use underscores in Go names; var _polynet_yml should be _polynetYml (golint)
    • Line 184: warning: don't use underscores in Go names; func polynet_yml should be polynetYml (golint)
    • Line 191: warning: don't use underscores in Go names; var _resnext_101_32x4d_yml should be _resnext101_32x4dYml (golint)
    • Line 193: warning: don't use underscores in Go names; func resnext_101_32x4d_yml should be resnext101_32x4dYml (golint)
    • Line 200: warning: don't use underscores in Go names; var _resnext_101_64x4d_yml should be _resnext101_64x4dYml (golint)
    • Line 202: warning: don't use underscores in Go names; func resnext_101_64x4d_yml should be resnext101_64x4dYml (golint)
    • Line 209: warning: don't use underscores in Go names; var _senet_154_yml should be _senet154Yml (golint)
    • Line 211: warning: don't use underscores in Go names; func senet_154_yml should be senet154Yml (golint)
    • Line 218: warning: don't use underscores in Go names; var _se_resnet_101_yml should be _seResnet101Yml (golint)
    • Line 220: warning: don't use underscores in Go names; func se_resnet_101_yml should be seResnet101Yml (golint)
    • Line 227: warning: don't use underscores in Go names; var _se_resnet_152_yml should be _seResnet152Yml (golint)
    • Line 229: warning: don't use underscores in Go names; func se_resnet_152_yml should be seResnet152Yml (golint)
    • Line 236: warning: don't use underscores in Go names; var _se_resnet_50_yml should be _seResnet50Yml (golint)
    • Line 238: warning: don't use underscores in Go names; func se_resnet_50_yml should be seResnet50Yml (golint)
    • Line 245: warning: don't use underscores in Go names; var _se_resnext_101_32x4d_yml should be _seResnext101_32x4dYml (golint)
    • Line 247: warning: don't use underscores in Go names; func se_resnext_101_32x4d_yml should be seResnext101_32x4dYml (golint)
    • Line 254: warning: don't use underscores in Go names; var _se_resnext_50_32x4d_yml should be _seResnext50_32x4dYml (golint)
    • Line 256: warning: don't use underscores in Go names; func se_resnext_50_32x4d_yml should be seResnext50_32x4dYml (golint)
    • Line 263: warning: don't use underscores in Go names; var _srgan_v1_0_yml should be _srganV1_0Yml (golint)
    • Line 265: warning: don't use underscores in Go names; func srgan_v1_0_yml should be srganV1_0Yml (golint)
    • Line 272: warning: don't use underscores in Go names; var _torchvision_alexnet_yml should be _torchvisionAlexnetYml (golint)
    • Line 274: warning: don't use underscores in Go names; func torchvision_alexnet_yml should be torchvisionAlexnetYml (golint)
    • Line 281: warning: don't use underscores in Go names; var _torchvision_deeplabv3_resnet101_yml should be _torchvisionDeeplabv3Resnet101Yml (golint)
    • Line 283: warning: don't use underscores in Go names; func torchvision_deeplabv3_resnet101_yml should be torchvisionDeeplabv3Resnet101Yml (golint)
    • Line 290: warning: don't use underscores in Go names; var _torchvision_densenet_121_yml should be _torchvisionDensenet121Yml (golint)
    • Line 292: warning: don't use underscores in Go names; func torchvision_densenet_121_yml should be torchvisionDensenet121Yml (golint)
    • Line 299: warning: don't use underscores in Go names; var _torchvision_densenet_161_yml should be _torchvisionDensenet161Yml (golint)
    • Line 301: warning: don't use underscores in Go names; func torchvision_densenet_161_yml should be torchvisionDensenet161Yml (golint)
    • Line 308: warning: don't use underscores in Go names; var _torchvision_densenet_169_yml should be _torchvisionDensenet169Yml (golint)
    • Line 310: warning: don't use underscores in Go names; func torchvision_densenet_169_yml should be torchvisionDensenet169Yml (golint)
    • Line 317: warning: don't use underscores in Go names; var _torchvision_densenet_201_yml should be _torchvisionDensenet201Yml (golint)
    • Line 319: warning: don't use underscores in Go names; func torchvision_densenet_201_yml should be torchvisionDensenet201Yml (golint)
    • Line 326: warning: don't use underscores in Go names; var _torchvision_fcn_resnet101_yml should be _torchvisionFcnResnet101Yml (golint)
    • Line 328: warning: don't use underscores in Go names; func torchvision_fcn_resnet101_yml should be torchvisionFcnResnet101Yml (golint)
    • Line 335: warning: don't use underscores in Go names; var _torchvision_resnet_101_yml should be _torchvisionResnet101Yml (golint)
    • Line 337: warning: don't use underscores in Go names; func torchvision_resnet_101_yml should be torchvisionResnet101Yml (golint)
    • Line 344: warning: don't use underscores in Go names; var _torchvision_resnet_152_yml should be _torchvisionResnet152Yml (golint)
    • Line 346: warning: don't use underscores in Go names; func torchvision_resnet_152_yml should be torchvisionResnet152Yml (golint)
    • Line 353: warning: don't use underscores in Go names; var _torchvision_resnet_18_yml should be _torchvisionResnet18Yml (golint)
    • Line 355: warning: don't use underscores in Go names; func torchvision_resnet_18_yml should be torchvisionResnet18Yml (golint)
    • Line 362: warning: don't use underscores in Go names; var _torchvision_resnet_34_yml should be _torchvisionResnet34Yml (golint)
    • Line 364: warning: don't use underscores in Go names; func torchvision_resnet_34_yml should be torchvisionResnet34Yml (golint)
    • Line 371: warning: don't use underscores in Go names; var _torchvision_resnet_50_yml should be _torchvisionResnet50Yml (golint)
    • Line 373: warning: don't use underscores in Go names; func torchvision_resnet_50_yml should be torchvisionResnet50Yml (golint)
    • Line 380: warning: don't use underscores in Go names; var _torchvision_squeezenet_v1_0_yml should be _torchvisionSqueezenetV1_0Yml (golint)
    • Line 382: warning: don't use underscores in Go names; func torchvision_squeezenet_v1_0_yml should be torchvisionSqueezenetV1_0Yml (golint)
    • Line 389: warning: don't use underscores in Go names; var _torchvision_squeezenet_v1_1_yml should be _torchvisionSqueezenetV1_1Yml (golint)
    • Line 391: warning: don't use underscores in Go names; func torchvision_squeezenet_v1_1_yml should be torchvisionSqueezenetV1_1Yml (golint)
    • Line 398: warning: don't use underscores in Go names; var _torchvision_vgg_11_yml should be _torchvisionVgg11Yml (golint)
    • Line 400: warning: don't use underscores in Go names; func torchvision_vgg_11_yml should be torchvisionVgg11Yml (golint)
    • Line 407: warning: don't use underscores in Go names; var _torchvision_vgg_11_bn_yml should be _torchvisionVgg11BnYml (golint)
    • Line 409: warning: don't use underscores in Go names; func torchvision_vgg_11_bn_yml should be torchvisionVgg11BnYml (golint)
    • Line 416: warning: don't use underscores in Go names; var _torchvision_vgg_13_yml should be _torchvisionVgg13Yml (golint)
    • Line 418: warning: don't use underscores in Go names; func torchvision_vgg_13_yml should be torchvisionVgg13Yml (golint)
    • Line 425: warning: don't use underscores in Go names; var _torchvision_vgg_13_bn_yml should be _torchvisionVgg13BnYml (golint)
    • Line 427: warning: don't use underscores in Go names; func torchvision_vgg_13_bn_yml should be torchvisionVgg13BnYml (golint)
    • Line 434: warning: don't use underscores in Go names; var _torchvision_vgg_16_yml should be _torchvisionVgg16Yml (golint)
    • Line 436: warning: don't use underscores in Go names; func torchvision_vgg_16_yml should be torchvisionVgg16Yml (golint)
    • Line 443: warning: don't use underscores in Go names; var _torchvision_vgg_16_bn_yml should be _torchvisionVgg16BnYml (golint)
    • Line 445: warning: don't use underscores in Go names; func torchvision_vgg_16_bn_yml should be torchvisionVgg16BnYml (golint)
    • Line 452: warning: don't use underscores in Go names; var _torchvision_vgg_19_yml should be _torchvisionVgg19Yml (golint)
    • Line 454: warning: don't use underscores in Go names; func torchvision_vgg_19_yml should be torchvisionVgg19Yml (golint)
    • Line 461: warning: don't use underscores in Go names; var _torchvision_vgg_19_bn_yml should be _torchvisionVgg19BnYml (golint)
    • Line 463: warning: don't use underscores in Go names; func torchvision_vgg_19_bn_yml should be torchvisionVgg19BnYml (golint)
    • Line 470: warning: don't use underscores in Go names; var _xception_yml should be _xceptionYml (golint)
    • Line 472: warning: don't use underscores in Go names; func xception_yml should be xceptionYml (golint)
    • Line 586: warning: don't use underscores in Go names; type _bintree_t should be _bintreeT (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!