Preparing report...

Report for github.com/grokify/swaggman

A    Great!    Found 83 issues across 88 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!


gocyclo89%

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.


golint5%

Golint is a linter for Go source code.

    • swaggman/postman2/url.go
    • Line 37: warning: exported method URL.IsRawOnly should have comment or be unexported (golint)
    • Line 47: warning: exported type URLQuery should have comment or be unexported (golint)
    • Line 54: warning: exported type URLVariable should have comment or be unexported (golint)
    • Line 62: warning: exported type URLVariableDescription should have comment or be unexported (golint)
    • Line 67: warning: exported function NewURLForGoUrl should have comment or be unexported (golint)
    • Line 92: warning: exported function NewURL should have comment or be unexported (golint)
    • Line 119: warning: receiver name pmURL should be consistent with previous receiver name url for URL (golint)
    • Line 132: warning: comment on exported function ApiUrlOasToPostman should be of the form "ApiUrlOasToPostman ..." (golint)
    • swaggman/openapi3/spec_meta.go
    • Line 12: warning: exported const OASVersionLatest should have comment (or a comment on this block) or be unexported (golint)
    • Line 35: warning: exported type SpecMetas should have comment or be unexported (golint)
    • Line 39: warning: exported method SpecMetas.Filepaths should have comment or be unexported (golint)
    • Line 53: warning: exported type SpecMeta should have comment or be unexported (golint)
    • Line 60: warning: exported function ReadSpecMetasDir should have comment or be unexported (golint)
    • Line 71: warning: exported function ReadSpecMetasFiles should have comment or be unexported (golint)
    • Line 89: warning: exported method SpecMetas.Merge should have comment or be unexported (golint)
    • Line 93: warning: exported function MergeSpecMetas should have comment or be unexported (golint)
    • swaggman/openapi3lint/lintutil/scope.go
    • Line 9: warning: exported const ScopeOperation should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported function ParseScope should have comment or be unexported (golint)
    • Line 30: warning: exported function ScopeMatch should have comment or be unexported (golint)
    • swaggman/openapi2/openapi2csv/spec-to-csv.go
    • Line 12: warning: exported function TableFromSpecFiles should have comment or be unexported (golint)
    • Line 35: warning: exported function TableAddOpenAPI2Spec should have comment or be unexported (golint)
    • Line 42: warning: comment on exported function TableAddOpenAPI2Path should be of the form "TableAddOpenAPI2Path ..." (golint)
    • swaggman/postman2/simple/postman_collection_v2_simple.go
    • Line 13: warning: exported type Collection should have comment or be unexported (golint)
    • Line 18: warning: exported function NewCollectionFromBytes should have comment or be unexported (golint)
    • Line 27: warning: exported function NewCanonicalCollectionFromBytes should have comment or be unexported (golint)
    • Line 44: warning: comment on exported function ReadCanonicalCollection should be of the form "ReadCanonicalCollection ..." (golint)
    • Line 54: warning: exported method Collection.ToCanonical should have comment or be unexported (golint)
    • Line 64: warning: exported type Item should have comment or be unexported (golint)
    • Line 72: warning: exported method Item.ToCanonical should have comment or be unexported (golint)
    • Line 91: warning: exported type APIItem should have comment or be unexported (golint)
    • Line 97: warning: exported method APIItem.ToCanonical should have comment or be unexported (golint)
    • Line 105: warning: exported type Request should have comment or be unexported (golint)
    • Line 113: warning: exported method Request.ToCanonical should have comment or be unexported (golint)
    • swaggman/postman2/headers_util.go
    • Line 12: warning: exported const DefaultMediaTypePreferences should have comment or be unexported (golint)
    • Line 14: warning: comment on exported function DefaultMediaTypePreferencesSlice should be of the form "DefaultMediaTypePreferencesSlice ..." (golint)
    • Line 19: warning: exported function AppendPostmanHeaderValueLower should have comment or be unexported (golint)
    • Line 30: warning: comment on exported function AddOperationReqResMediaTypeHeaders should be of the form "AddOperationReqResMediaTypeHeaders ..." (golint)
    • swaggman/postman2/request.go
    • Line 3: warning: exported type Request should have comment or be unexported (golint)
    • Line 11: warning: exported type Header should have comment or be unexported (golint)
    • Line 17: warning: exported type RequestBody should have comment or be unexported (golint)
    • Line 23: warning: exported type URLEncodedParam should have comment or be unexported (golint)
    • swaggman/openapi3/openapi3postman2/convert.go
    • Line 201: warning: exported function Openapi3OperationToPostman2APIItem should have comment or be unexported (golint)
    • Line 245: warning: exported function BuildPostmanURL should have comment or be unexported (golint)
    • Line 268: warning: exported function PostmanUrlAddDefaultsOAS3 should have comment or be unexported (golint)
    • Line 348: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • swaggman/openapi3edit/delete.go
    • Line 10: warning: exported function SpecDeleteProperties should have comment or be unexported (golint)
    • Line 42: warning: exported function SpecDeleteOperations should have comment or be unexported (golint)
    • Line 84: warning: exported function PathItemHasEndpoints should have comment or be unexported (golint)
    • swaggman/openapi3lint/lintutil/violations.go
    • Line 10: warning: exported type PolicyViolationsSets should have comment or be unexported (golint)
    • Line 14: warning: exported function NewPolicyViolationsSets should have comment or be unexported (golint)
    • Line 19: warning: exported method PolicyViolationsSets.AddViolations should have comment or be unexported (golint)
    • Line 25: warning: exported method PolicyViolationsSets.AddViolation should have comment or be unexported (golint)
    • Line 34: warning: exported method PolicyViolationsSets.AddSimple should have comment or be unexported (golint)
    • Line 47: warning: exported method PolicyViolationsSets.UpsertSet should have comment or be unexported (golint)
    • Line 68: warning: exported method PolicyViolationsSets.UpsertSets should have comment or be unexported (golint)
    • Line 84: warning: exported method PolicyViolationsSets.LocationsByRule should have comment or be unexported (golint)
    • Line 106: warning: exported method PolicyViolationsSets.Count should have comment or be unexported (golint)
    • Line 114: warning: exported type PolicyRule should have comment or be unexported (golint)
    • Line 119: warning: exported type PolicyViolationsSet should have comment or be unexported (golint)
    • Line 124: warning: exported function NewPolicyViolationsSet should have comment or be unexported (golint)
    • Line 130: warning: exported method PolicyViolationsSet.Locations should have comment or be unexported (golint)
    • Line 141: warning: exported method PolicyViolationsSet.Count should have comment or be unexported (golint)
    • Line 145: warning: exported type PolicyViolationLocations should have comment or be unexported (golint)
    • Line 150: warning: exported method PolicyViolationLocations.Finalize should have comment or be unexported (golint)
    • Line 154: warning: exported type PolicyViolation should have comment or be unexported (golint)
    • Line 163: warning: exported type ViolationLocationsByRuleSet should have comment or be unexported (golint)
    • Line 167: warning: exported method ViolationLocationsByRuleSet.Condense should have comment or be unexported (golint)
    • Line 174: warning: exported method ViolationLocationsByRuleSet.Count should have comment or be unexported (golint)
    • swaggman/openapi3/extension_props.go
    • Line 11: warning: exported const XTagGroups should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: exported type ExtensionPropsParent should have comment or be unexported (golint)
    • swaggman/openapi2/count.go
    • Line 14: warning: exported function CountEndpointsByTag should have comment or be unexported (golint)
    • Line 56: warning: exported function WriteEndpointCountCSV should have comment or be unexported (golint)
    • swaggman/openapi3/merge.go
    • Line 20: warning: exported function MergeDirectory should have comment or be unexported (golint)
    • Line 37: warning: exported function MergeFiles should have comment or be unexported (golint)
    • Line 75: warning: exported function Merge should have comment or be unexported (golint)
    • Line 96: warning: exported function MergeTags should have comment or be unexported (golint)
    • Line 144: warning: exported function MergePaths should have comment or be unexported (golint)
    • Line 216: warning: exported function MergeParameters should have comment or be unexported (golint)
    • Line 247: warning: exported function MergeResponses should have comment or be unexported (golint)
    • Line 276: warning: exported function MergeSchemas should have comment or be unexported (golint)
    • Line 310: warning: exported function MergeRequestBodies should have comment or be unexported (golint)
    • Line 333: warning: exported function WriteFileDirMerge should have comment or be unexported (golint)
    • swaggman/spectrum.go
    • Line 16: warning: exported type Options should have comment or be unexported (golint)
    • Line 24: warning: exported method Options.TrimSpace should have comment or be unexported (golint)
    • swaggman/openapi3lint/ruleopsummaryexist/rule_operation_summary_exist.go
    • Line 12: warning: exported type RuleOperationSummaryExist should have comment or be unexported (golint)
    • Line 17: warning: exported function NewRule should have comment or be unexported (golint)
    • Line 23: warning: exported method RuleOperationSummaryExist.Name should have comment or be unexported (golint)
    • Line 27: warning: exported method RuleOperationSummaryExist.Scope should have comment or be unexported (golint)
    • Line 31: warning: exported method RuleOperationSummaryExist.Severity should have comment or be unexported (golint)
    • Line 35: warning: exported method RuleOperationSummaryExist.ProcessOperation should have comment or be unexported (golint)
    • Line 52: warning: exported method RuleOperationSummaryExist.ProcessSpec should have comment or be unexported (golint)
    • swaggman/openapi3lint/rule.go
    • Line 24: warning: exported type Rule should have comment or be unexported (golint)
    • Line 32: warning: exported type RulesMap should have comment or be unexported (golint)
    • Line 34: warning: exported function ValidateRules should have comment or be unexported (golint)
    • Line 53: warning: exported type EmptyRule should have comment or be unexported (golint)
    • Line 55: warning: exported method EmptyRule.Name should have comment or be unexported (golint)
    • Line 56: warning: exported method EmptyRule.Scope should have comment or be unexported (golint)
    • Line 57: warning: exported method EmptyRule.Severity should have comment or be unexported (golint)
    • Line 58: warning: exported method EmptyRule.ProcessSpec should have comment or be unexported (golint)
    • Line 61: warning: exported method EmptyRule.ProcessOperation should have comment or be unexported (golint)
    • Line 65: warning: exported function StandardRuleNames should have comment or be unexported (golint)
    • Line 91: warning: exported function NewStandardRule should have comment or be unexported (golint)
    • swaggman/openapi3lint/rulepathparamstyle/rule_path_param_style.go
    • Line 15: warning: exported type RulePathParamStyle should have comment or be unexported (golint)
    • Line 21: warning: exported function NewRule should have comment or be unexported (golint)
    • Line 45: warning: exported method RulePathParamStyle.Name should have comment or be unexported (golint)
    • Line 49: warning: exported method RulePathParamStyle.Scope should have comment or be unexported (golint)
    • Line 53: warning: exported method RulePathParamStyle.Severity should have comment or be unexported (golint)
    • Line 57: warning: exported method RulePathParamStyle.ProcessOperation should have comment or be unexported (golint)
    • Line 63: warning: exported method RulePathParamStyle.ProcessSpec should have comment or be unexported (golint)
    • swaggman/openapi3edit/security.go
    • Line 14: warning: exported const SecuritySchemeApikeyDefaultName should have comment (or a comment on this block) or be unexported (golint)
    • Line 31: warning: exported function SecuritySchemeBearertokenAddOperationsByTags should have comment or be unexported (golint)
    • Line 78: warning: exported function SecuritySchemeBearertokenAddDefinition should have comment or be unexported (golint)
    • Line 94: warning: comment on exported function SecuritySchemeApikeyAddDefinition should be of the form "SecuritySchemeApikeyAddDefinition ..." (golint)
    • Line 124: warning: exported function SecuritySchemeApikeyAddOperations should have comment or be unexported (golint)
    • Line 157: warning: exported function MapSliceIntersectionExists should have comment or be unexported (golint)
    • swaggman/openapi3lint/openapi3lint1/rules.go
    • Line 13: warning: comment on exported const RuleDatatypeIntFormatIsInt32OrInt64 should be of the form "RuleDatatypeIntFormatIsInt32OrInt64 ..." (golint)
    • Line 15: warning: exported const RuleOpDescExist should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: comment on exported const RuleOpParameterNameNonEmpty should be of the form "RuleOpParameterNameNonEmpty ..." (golint)
    • Line 31: warning: comment on exported const PrefixPathParam should be of the form "PrefixPathParam ..." (golint)
    • Line 42: warning: exported const SeverityDisabled should have comment (or a comment on this block) or be unexported (golint)
    • Line 49: warning: exported function RuleToCaseStyle should have comment or be unexported (golint)
    • Line 58: warning: exported type Rule should have comment or be unexported (golint)
    • Line 66: warning: exported function PointerCondense should have comment or be unexported (golint)
    • Line 70: warning: exported function PointerSubEscapeAll should have comment or be unexported (golint)
    • swaggman/openapi3lint/openapi3lint1/check_enums.go
    • Line 11: warning: exported function SpecCheckSchemas should have comment or be unexported (golint)
    • Line 34: warning: exported function SpecCheckSchemaObjectPropsExist should have comment or be unexported (golint)
    • Line 51: warning: exported function SpecCheckSchemaPropertyEnumCaseStyle should have comment or be unexported (golint)
    • swaggman/openapi3lint/openapi3lint1/policy.go
    • Line 9: warning: exported type Policy should have comment or be unexported (golint)
    • Line 13: warning: exported function NewPolicySimple should have comment or be unexported (golint)
    • Line 25: warning: exported method Policy.Validate should have comment or be unexported (golint)
    • Line 37: warning: exported method Policy.HasRule should have comment or be unexported (golint)
    • Line 45: warning: exported method Policy.HasPathItemRules should have comment or be unexported (golint)
    • Line 49: warning: exported method Policy.HasSchemaEnumStyleRules should have comment or be unexported (golint)
    • Line 53: warning: exported method Policy.HasRulePrefix should have comment or be unexported (golint)
    • Line 62: warning: exported method Policy.RulesWithPrefix should have comment or be unexported (golint)
    • swaggman/openapi3edit/tags.go
    • Line 13: warning: exported function SpecTagsModify should have comment or be unexported (golint)
    • Line 120: warning: exported type UpdateTagsOpts should have comment or be unexported (golint)
    • Line 126: warning: exported method UpdateTagsOpts.ModifyTagsOperationFunc should have comment or be unexported (golint)
    • swaggman/openapi3/visit.go
    • Line 18: warning: exported function VisitTypesFormats should have comment or be unexported (golint)
    • Line 66: warning: exported function VisitOperations should have comment or be unexported (golint)
    • swaggman/openapi3edit/operations.go
    • Line 20: warning: exported method OperationMore.AddExternalDocs should have comment or be unexported (golint)
    • Line 24: warning: exported method OperationMore.AddRequestBodySchemaRef should have comment or be unexported (golint)
    • Line 28: warning: exported method OperationMore.AddResponseBodySchemaRef should have comment or be unexported (golint)
    • Line 32: warning: exported method OperationMore.HasParameter should have comment or be unexported (golint)
    • Line 135: warning: exported function SpecOperationsCount should have comment or be unexported (golint)
    • Line 178: warning: exported function SpecOperationIds should have comment or be unexported (golint)
    • Line 190: warning: exported function SpecOperationIdsFromSummaries should have comment or be unexported (golint)
    • Line 205: warning: exported function SpecAddCustomProperties should have comment or be unexported (golint)
    • Line 227: warning: exported function SpecAddOperationMetas should have comment or be unexported (golint)
    • Line 269: warning: exported type OperationMoreSet should have comment or be unexported (golint)
    • Line 273: warning: exported function QueryOperationsByTags should have comment or be unexported (golint)
    • swaggman/openapi3/schemas.go
    • Line 9: warning: exported const PointerComponentsSchemas should have comment or be unexported (golint)
    • Line 11: warning: exported function SchemaPointerExpand should have comment or be unexported (golint)
    • swaggman/openapi3/spec_more.go
    • Line 19: warning: exported type SpecMore should have comment or be unexported (golint)
    • Line 23: warning: exported function ReadSpecMore should have comment or be unexported (golint)
    • Line 31: warning: exported method SpecMore.SchemasCount should have comment or be unexported (golint)
    • Line 40: warning: exported method SpecMore.OperationsTable should have comment or be unexported (golint)
    • Line 99: warning: exported function OpTableColumnsDefault should have comment or be unexported (golint)
    • Line 139: warning: exported function OpTableColumnsRingCentral should have comment or be unexported (golint)
    • Line 164: warning: exported method SpecMore.OperationMetas should have comment or be unexported (golint)
    • Line 202: warning: exported method SpecMore.OperationsCount should have comment or be unexported (golint)
    • Line 217: warning: exported method SpecMore.OperationsIDs should have comment or be unexported (golint)
    • Line 229: warning: exported method SpecMore.OperationByID should have comment or be unexported (golint)
    • Line 247: warning: exported method SpecMore.SetOperation should have comment or be unexported (golint)
    • Line 284: warning: exported method SpecMore.SchemaNames should have comment or be unexported (golint)
    • Line 294: warning: exported method SpecMore.SchemaPointers should have comment or be unexported (golint)
    • Line 313: warning: exported method SpecMore.SchemaNamesStatus should have comment or be unexported (golint)
    • Line 323: warning: exported method SpecMore.SchemaNameExists should have comment or be unexported (golint)
    • Line 337: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 345: warning: exported method SpecMore.SchemaRef should have comment or be unexported (golint)
    • Line 354: warning: exported method SpecMore.SetSchemaRef should have comment or be unexported (golint)
    • Line 394: warning: exported method SpecMore.Tags should have comment or be unexported (golint)
    • Line 433: warning: exported type SpecStats should have comment or be unexported (golint)
    • Line 438: warning: exported method SpecMore.Stats should have comment or be unexported (golint)
    • Line 445: warning: exported method SpecMore.MarshalJSON should have comment or be unexported (golint)
    • Line 460: warning: exported method SpecMore.PrintJSON should have comment or be unexported (golint)
    • Line 469: warning: exported method SpecMore.WriteFileCSV should have comment or be unexported (golint)
    • Line 477: warning: exported method SpecMore.WriteFileJSON should have comment or be unexported (golint)
    • Line 485: warning: exported method SpecMore.WriteFileXLSX should have comment or be unexported (golint)
    • Line 497: warning: exported type TagsMore should have comment or be unexported (golint)
    • Line 501: warning: exported method TagsMore.Get should have comment or be unexported (golint)
    • swaggman/openapi3edit/intersection.go
    • Line 11: warning: exported type SpecMetadata should have comment or be unexported (golint)
    • Line 17: warning: exported function NewSpecMetadata should have comment or be unexported (golint)
    • Line 33: warning: exported method SpecMetadata.Intersection should have comment or be unexported (golint)
    • Line 41: warning: exported method SpecMetadata.IsEmpty should have comment or be unexported (golint)
    • Line 50: warning: exported method SpecMetadata.Sort should have comment or be unexported (golint)
    • Line 56: warning: exported type IntersectionData should have comment or be unexported (golint)
    • Line 62: warning: exported method IntersectionData.Sort should have comment or be unexported (golint)
    • Line 68: warning: exported function NewIntersectionData should have comment or be unexported (golint)
    • Line 75: warning: exported function SpecsIntersection should have comment or be unexported (golint)
    • swaggman/openapi3lint/openapi3lint1/violations.go
    • Line 11: warning: exported type SpecCheckViolationsFunc should have comment or be unexported (golint)
    • Line 13: warning: exported function SpecCheckViolations should have comment or be unexported (golint)
    • Line 33: warning: exported type PolicyViolationsSets should have comment or be unexported (golint)
    • Line 37: warning: exported function NewPolicyViolationsSets should have comment or be unexported (golint)
    • Line 42: warning: exported method PolicyViolationsSets.AddSimple should have comment or be unexported (golint)
    • Line 55: warning: exported method PolicyViolationsSets.UpsertSet should have comment or be unexported (golint)
    • Line 76: warning: exported method PolicyViolationsSets.UpsertSets should have comment or be unexported (golint)
    • Line 89: warning: exported method PolicyViolationsSets.LocationsByRule should have comment or be unexported (golint)
    • Line 111: warning: exported method PolicyViolationsSets.Count should have comment or be unexported (golint)
    • Line 119: warning: exported type PolicyRule should have comment or be unexported (golint)
    • Line 124: warning: exported type PolicyViolationsSet should have comment or be unexported (golint)
    • Line 129: warning: exported function NewPolicyViolationsSet should have comment or be unexported (golint)
    • Line 135: warning: exported method PolicyViolationsSet.Locations should have comment or be unexported (golint)
    • Line 146: warning: exported method PolicyViolationsSet.Count should have comment or be unexported (golint)
    • Line 150: warning: exported type PolicyViolationLocations should have comment or be unexported (golint)
    • Line 155: warning: exported method PolicyViolationLocations.Finalize should have comment or be unexported (golint)
    • Line 159: warning: exported type PolicyViolation should have comment or be unexported (golint)
    • Line 168: warning: exported type ViolationLocationsByRuleSet should have comment or be unexported (golint)
    • Line 172: warning: exported method ViolationLocationsByRuleSet.Condense should have comment or be unexported (golint)
    • Line 179: warning: exported method ViolationLocationsByRuleSet.Count should have comment or be unexported (golint)
    • swaggman/openapi3/openapi3html/apiregistry/main.go
    • Line 22: warning: exported type Server should have comment or be unexported (golint)
    • Line 27: warning: exported function NewServer should have comment or be unexported (golint)
    • Line 33: warning: exported method Server.HandleAPIRegistryNetHTTP should have comment or be unexported (golint)
    • Line 38: warning: exported method Server.HandleAPIRegistryFastHTTP should have comment or be unexported (golint)
    • Line 43: warning: exported method Server.HandleAPIRegistryAnyEngine should have comment or be unexported (golint)
    • Line 90: warning: exported function SetResponseError should have comment or be unexported (golint)
    • Line 99: warning: exported const ErrorPage should have comment or be unexported (golint)
    • Line 104: warning: exported method Server.PortInt should have comment or be unexported (golint)
    • Line 104: warning: receiver name svr should be consistent with previous receiver name svc for Server (golint)
    • Line 105: warning: exported method Server.HttpEngine should have comment or be unexported (golint)
    • Line 105: warning: receiver name svr should be consistent with previous receiver name svc for Server (golint)
    • Line 106: warning: exported method Server.RouterFast should have comment or be unexported (golint)
    • Line 106: warning: receiver name svr should be consistent with previous receiver name svc for Server (golint)
    • Line 108: warning: exported method Server.Router should have comment or be unexported (golint)
    • swaggman/openapi3/operation_meta.go
    • Line 13: warning: exported function OperationToMeta should have comment or be unexported (golint)
    • Line 38: warning: exported method OperationMeta.TrimSpace should have comment or be unexported (golint)
    • Line 47: warning: exported function OperationSetRequestBodySchemaRef should have comment or be unexported (golint)
    • Line 73: warning: exported function OperationSetResponseBodySchemaRef should have comment or be unexported (golint)
    • swaggman/openapi3lint/policy.go
    • Line 20: warning: exported type PolicyConfig should have comment or be unexported (golint)
    • Line 24: warning: exported function NewPolicyConfigFile should have comment or be unexported (golint)
    • Line 34: warning: exported type RuleConfig should have comment or be unexported (golint)
    • Line 38: warning: exported method PolicyConfig.StandardPolicy should have comment or be unexported (golint)
    • Line 50: warning: exported type Policy should have comment or be unexported (golint)
    • Line 61: warning: exported method Policy.AddRule should have comment or be unexported (golint)
    • Line 77: warning: exported method Policy.RuleNames should have comment or be unexported (golint)
    • Line 85: warning: exported method Policy.ValidateSpec should have comment or be unexported (golint)
    • swaggman/openapi3/merge_options.go
    • Line 11: warning: exported type CollisionCheckResult should have comment or be unexported (golint)
    • Line 14: warning: exported const CollisionCheckSame should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported type MergeOptions should have comment or be unexported (golint)
    • Line 30: warning: exported function NewMergeOptionsSkip should have comment or be unexported (golint)
    • Line 36: warning: exported method MergeOptions.CheckSchemaCollision should have comment or be unexported (golint)
    • Line 45: warning: exported function SchemaCheckCollisionDefault should have comment or be unexported (golint)
    • Line 52: warning: exported function SchemaCheckCollisionSkip should have comment or be unexported (golint)
    • swaggman/postman2/collection.go
    • Line 12: warning: exported const SchemaURL210 should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: exported type Collection should have comment or be unexported (golint)
    • Line 22: warning: exported function NewCollectionFromBytes should have comment or be unexported (golint)
    • Line 33: warning: exported method Collection.GetOrNewFolder should have comment or be unexported (golint)
    • Line 44: warning: exported method Collection.SetFolder should have comment or be unexported (golint)
    • Line 57: warning: exported method Collection.Inflate should have comment or be unexported (golint)
    • Line 65: warning: exported method Collection.InflateRawURLs should have comment or be unexported (golint)
    • Line 79: warning: exported type CollectionInfo should have comment or be unexported (golint)
    • Line 96: warning: exported method Item.UpsertSubItem should have comment or be unexported (golint)
    • Line 110: warning: exported type Description should have comment or be unexported (golint)
    • Line 116: warning: exported method Description.Inflate should have comment or be unexported (golint)
    • Line 124: warning: exported type Event should have comment or be unexported (golint)
    • Line 129: warning: exported type Script should have comment or be unexported (golint)
    • swaggman/openapi2/read.go
    • Line 13: warning: exported function ReadOpenAPI2SpecFile should have comment or be unexported (golint)
    • Line 18: warning: exported function ReadSwagger2SpecFile should have comment or be unexported (golint)
    • Line 22: warning: exported function ReadOpenAPI2SpecFileDirect should have comment or be unexported (golint)
    • Line 45: warning: exported function ReadOpenAPI2KinSpecFile should have comment or be unexported (golint)
    • swaggman/openapi3edit/deprecated.go
    • Line 10: warning: exported function SpecSchemasSetDeprecated should have comment or be unexported (golint)
    • Line 18: warning: exported function SpecOperationsSetDeprecated should have comment or be unexported (golint)
    • Line 31: warning: exported function SpecSetDeprecatedImplicit should have comment or be unexported (golint)
    • swaggman/openapi3edit/paths.go
    • Line 12: warning: exported type SpecPaths should have comment or be unexported (golint)
    • Line 17: warning: exported function InspectPaths should have comment or be unexported (golint)
    • Line 28: warning: exported type PathMeta should have comment or be unexported (golint)
    • Line 33: warning: exported type SpecPathsModifyOpts should have comment or be unexported (golint)
    • Line 42: warning: exported function SpecPathsModify should have comment or be unexported (golint)
    • Line 89: warning: exported function SpecEndpoints should have comment or be unexported (golint)
    • Line 103: warning: exported type Endpoint should have comment or be unexported (golint)
    • Line 115: warning: exported function PathEndpoints should have comment or be unexported (golint)
    • Line 156: warning: exported function PathMethods should have comment or be unexported (golint)
    • Line 190: warning: exported function PathVarsToGeneric should have comment or be unexported (golint)
    • Line 194: warning: exported function PathMatchGeneric should have comment or be unexported (golint)
    • swaggman/openapi3lint/ruleschemapropenumstyle/rule_schema_prop_enum_style.go
    • Line 13: warning: exported type RuleSchemaPropEnumStyle should have comment or be unexported (golint)
    • Line 19: warning: exported function NewRule should have comment or be unexported (golint)
    • Line 43: warning: exported method RuleSchemaPropEnumStyle.Name should have comment or be unexported (golint)
    • Line 47: warning: exported method RuleSchemaPropEnumStyle.Scope should have comment or be unexported (golint)
    • Line 51: warning: exported method RuleSchemaPropEnumStyle.Severity should have comment or be unexported (golint)
    • Line 55: warning: exported method RuleSchemaPropEnumStyle.ProcessOperation should have comment or be unexported (golint)
    • Line 59: warning: exported method RuleSchemaPropEnumStyle.ProcessSpec should have comment or be unexported (golint)
    • swaggman/openapi3lint/ruleopsummarystylefirstuppercase/rule_operation_summary_first_uppercase.go
    • Line 13: warning: exported type RuleOperationSummaryStyleFirstUpperCase should have comment or be unexported (golint)
    • Line 18: warning: exported function NewRule should have comment or be unexported (golint)
    • Line 24: warning: exported method RuleOperationSummaryStyleFirstUpperCase.Name should have comment or be unexported (golint)
    • Line 28: warning: exported method RuleOperationSummaryStyleFirstUpperCase.Scope should have comment or be unexported (golint)
    • Line 32: warning: exported method RuleOperationSummaryStyleFirstUpperCase.Severity should have comment or be unexported (golint)
    • Line 36: warning: exported method RuleOperationSummaryStyleFirstUpperCase.ProcessOperation should have comment or be unexported (golint)
    • Line 59: warning: exported method RuleOperationSummaryStyleFirstUpperCase.ProcessSpec should have comment or be unexported (golint)
    • swaggman/openapi2/swagger_specification_v2.go
    • Line 75: warning: exported method Path.HasMethodWithTag should have comment or be unexported (golint)
    • Line 101: warning: exported method Path.SetEndpoint should have comment or be unexported (golint)
    • Line 137: warning: exported method Endpoint.IsEmpty should have comment or be unexported (golint)
    • Line 151: warning: exported type Response should have comment or be unexported (golint)
    • Line 158: warning: exported type Schema should have comment or be unexported (golint)
    • Line 162: warning: exported type Header should have comment or be unexported (golint)
    • Line 167: warning: exported type Definition should have comment or be unexported (golint)
    • Line 172: warning: exported type Property should have comment or be unexported (golint)
    • Line 180: warning: exported type Items should have comment or be unexported (golint)
    • Line 185: warning: exported method Items.IsEmpty should have comment or be unexported (golint)
    • Line 192: warning: exported type XAmazonApigatewayIntegration should have comment or be unexported (golint)
    • Line 199: warning: exported type XAmazonApigatewayIntegrationResponse should have comment or be unexported (golint)
    • Line 205: warning: exported type XAmazonApigatewayDocumentation should have comment or be unexported (golint)
    • Line 211: warning: exported type DocumentationPart should have comment or be unexported (golint)
    • Line 216: warning: exported type XAmazonApigatewayDocumentationPartLocation should have comment or be unexported (golint)
    • Line 224: warning: exported type XAmazonApigatewayDocumentationPartProperties should have comment or be unexported (golint)
    • Line 231: warning: exported type XAmazonApigatewayDocumentationPartInfo should have comment or be unexported (golint)
    • Line 249: warning: exported function GetJsonBodyParameterExampleForKey should have comment or be unexported (golint)
    • Line 263: 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)
    • swaggman/openapi3lint/ruletagstylefirstuppercase/rule_tag_style_first_uppercase.go
    • Line 13: warning: exported type RuleTagStyleFirstUpperCase should have comment or be unexported (golint)
    • Line 18: warning: exported function NewRule should have comment or be unexported (golint)
    • Line 24: warning: exported method RuleTagStyleFirstUpperCase.Name should have comment or be unexported (golint)
    • Line 28: warning: exported method RuleTagStyleFirstUpperCase.Scope should have comment or be unexported (golint)
    • Line 32: warning: exported method RuleTagStyleFirstUpperCase.Severity should have comment or be unexported (golint)
    • Line 36: warning: exported method RuleTagStyleFirstUpperCase.ProcessOperation should have comment or be unexported (golint)
    • Line 40: warning: exported method RuleTagStyleFirstUpperCase.ProcessSpec should have comment or be unexported (golint)
    • swaggman/openapi3lint/openapi3lint1/violations_by_file.go
    • Line 5: warning: exported type PolicyViolationsSetsByFile should have comment or be unexported (golint)
    • Line 9: warning: exported function NewPolicyViolationsSetsByFile should have comment or be unexported (golint)
    • Line 14: warning: exported method PolicyViolationsSetsByFile.LocationsByRule should have comment or be unexported (golint)
    • Line 30: warning: exported method PolicyViolationsSetsByFile.Count should have comment or be unexported (golint)
    • swaggman/openapi3lint/ruleopidstyle/rule_operation_operationid_style_camelcase.go
    • Line 12: warning: exported type RuleOperationOperationIdStyle should have comment or be unexported (golint)
    • Line 18: warning: exported function NewRule should have comment or be unexported (golint)
    • Line 42: warning: exported method RuleOperationOperationIdStyle.Name should have comment or be unexported (golint)
    • Line 46: warning: exported method RuleOperationOperationIdStyle.Scope should have comment or be unexported (golint)
    • Line 50: warning: exported method RuleOperationOperationIdStyle.Severity should have comment or be unexported (golint)
    • Line 54: warning: exported method RuleOperationOperationIdStyle.ProcessOperation should have comment or be unexported (golint)
    • Line 73: warning: exported method RuleOperationOperationIdStyle.ProcessSpec should have comment or be unexported (golint)
    • swaggman/openapi3/descriptions.go
    • Line 13: warning: exported const DescStatusIsEmpty should have comment (or a comment on this block) or be unexported (golint)
    • Line 104: warning: exported method SpecMore.OperationParametersWithoutDescriptionsWriteFile should have comment or be unexported (golint)
    • Line 122: warning: exported method SpecMore.SchemaPropertiesWithoutDescriptionsWriteFile should have comment or be unexported (golint)
    • swaggman/openapi3/read.go
    • Line 18: warning: exported function ReadURL should have comment or be unexported (golint)
    • Line 72: warning: exported function ReadAndValidateFile should have comment or be unexported (golint)
    • Line 85: warning: exported type ValidationStatus should have comment or be unexported (golint)
    • Line 104: warning: exported function ValidateMore should have comment or be unexported (golint)
    • Line 122: warning: exported function Copy should have comment or be unexported (golint)
    • swaggman/openapi3lint/ruleschemareferences/rule_schema_references_exist.go
    • Line 12: warning: exported type RuleSchemaReferences should have comment or be unexported (golint)
    • Line 17: warning: exported function NewRule should have comment or be unexported (golint)
    • Line 29: warning: exported method RuleSchemaReferences.Name should have comment or be unexported (golint)
    • Line 33: warning: exported method RuleSchemaReferences.Scope should have comment or be unexported (golint)
    • Line 37: warning: exported method RuleSchemaReferences.Severity should have comment or be unexported (golint)
    • Line 41: warning: exported method RuleSchemaReferences.ProcessOperation should have comment or be unexported (golint)
    • Line 45: warning: exported method RuleSchemaReferences.ProcessSpec should have comment or be unexported (golint)
    • swaggman/openapi2/convert.go
    • Line 13: warning: exported function ConvertSpectrumOAS2ToKinOAS2 should have comment or be unexported (golint)
    • Line 23: warning: exported function ConvertOAS2FileToOAS3File should have comment or be unexported (golint)
    • swaggman/openapi3/extension_taggroups.go
    • Line 13: warning: exported const XTagGroupsPropertyName should have comment or be unexported (golint)
    • Line 15: warning: exported type TagGroupSet should have comment or be unexported (golint)
    • Line 19: warning: exported function NewTagGroupSet should have comment or be unexported (golint)
    • Line 23: warning: exported method TagGroupSet.Exists should have comment or be unexported (golint)
    • Line 34: warning: exported method TagGroupSet.GetTagGroupNamesForTagNames should have comment or be unexported (golint)
    • Line 48: warning: exported method TagGroupSet.AddToSpec should have comment or be unexported (golint)
    • Line 60: warning: exported type TagGroup should have comment or be unexported (golint)
    • Line 85: warning: exported function TagsWithoutGroups should have comment or be unexported (golint)
    • swaggman/openapi3lint/ruleintstdformat/rule_datatype_int_format_standard_exist.go
    • Line 10: warning: exported type RuleDatatypeIntFormatStandardExist should have comment or be unexported (golint)
    • Line 15: warning: exported function NewRule should have comment or be unexported (golint)
    • Line 21: warning: exported method RuleDatatypeIntFormatStandardExist.Name should have comment or be unexported (golint)
    • Line 25: warning: exported method RuleDatatypeIntFormatStandardExist.Severity should have comment or be unexported (golint)
    • Line 29: warning: exported method RuleDatatypeIntFormatStandardExist.Scope should have comment or be unexported (golint)
    • Line 33: warning: exported method RuleDatatypeIntFormatStandardExist.ProcessOperation should have comment or be unexported (golint)
    • Line 37: warning: exported method RuleDatatypeIntFormatStandardExist.ProcessSpec should have comment or be unexported (golint)
    • swaggman/openapi3/openapi3html/pageparams.go
    • Line 16: warning: exported type PageParams should have comment or be unexported (golint)
    • Line 26: warning: exported method PageParams.PageLinkHTML should have comment or be unexported (golint)
    • Line 35: warning: exported method PageParams.AddSpec should have comment or be unexported (golint)
    • Line 44: warning: exported method PageParams.AddOperationsTable should have comment or be unexported (golint)
    • Line 54: warning: exported method PageParams.TableJSONBytesOrEmpty should have comment or be unexported (golint)
    • Line 65: warning: exported method PageParams.TabulatorColumnsJSONBytesOrEmpty should have comment or be unexported (golint)
    • Line 75: warning: exported method PageParams.WriteFile should have comment or be unexported (golint)
    • Line 85: warning: exported function DefaultColumns should have comment or be unexported (golint)
    • swaggman/openapi2/merge.go
    • Line 16: warning: exported function MergeDirectory should have comment or be unexported (golint)
    • Line 40: warning: exported function MergeFilepaths should have comment or be unexported (golint)
    • Line 57: warning: exported function Merge should have comment or be unexported (golint)
    • Line 63: warning: exported function MergeTags should have comment or be unexported (golint)
    • Line 77: warning: exported function MergePaths should have comment or be unexported (golint)
    • Line 84: warning: exported function MergeDefinitions should have comment or be unexported (golint)
    • Line 94: warning: exported function WriteFileDirMerge should have comment or be unexported (golint)
    • swaggman/openapi3lint/ruleschemaobjectpropsexist/rule_schema_object_props_exist.go
    • Line 10: warning: exported type RuleSchemaObjectPropsExist should have comment or be unexported (golint)
    • Line 15: warning: exported function NewRule should have comment or be unexported (golint)
    • Line 21: warning: exported method RuleSchemaObjectPropsExist.Name should have comment or be unexported (golint)
    • Line 25: warning: exported method RuleSchemaObjectPropsExist.Scope should have comment or be unexported (golint)
    • Line 29: warning: exported method RuleSchemaObjectPropsExist.Severity should have comment or be unexported (golint)
    • Line 33: warning: exported method RuleSchemaObjectPropsExist.ProcessOperation should have comment or be unexported (golint)
    • Line 37: warning: exported method RuleSchemaObjectPropsExist.ProcessSpec should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!