Preparing report...

Report for github.com/moov-io/irs

A+    Excellent!    Found 61 issues across 125 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!


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.

    • irs/pkg/file/person.go
    • Line 346: warning: cyclomatic complexity 23 of function (*paymentPerson).validatePaymentCodes() is high (> 15) (gocyclo)
    • Line 208: warning: cyclomatic complexity 21 of function (*paymentPerson).UnmarshalJSON() is high (> 15) (gocyclo)
    • Line 134: warning: cyclomatic complexity 20 of function (*paymentPerson).Parse() is high (> 15) (gocyclo)
    • Line 645: warning: cyclomatic complexity 17 of function fillRecipient() is high (> 15) (gocyclo)
    • irs/pkg/client/api_irs_files.go
    • Line 46: warning: cyclomatic complexity 23 of function (*IrsFilesApiService).Convert() is high (> 15) (gocyclo)
    • Line 383: warning: cyclomatic complexity 19 of function (*IrsFilesApiService).Validator() is high (> 15) (gocyclo)
    • Line 264: warning: cyclomatic complexity 19 of function (*IrsFilesApiService).Print() is high (> 15) (gocyclo)

golint52%

Golint is a linter for Go source code.

    • irs/pkg/subrecords/1099_s.go
    • Line 16: warning: exported type Sub1099S should have comment or be unexported (golint)
    • Line 75: warning: comment on exported method Sub1099S.FederalState should be of the form "FederalState ..." (golint)
    • Line 121: warning: exported method Sub1099S.ValidatePropertyServicesIndicator should have comment or be unexported (golint)
    • Line 129: warning: exported method Sub1099S.ValidateForeignTransferor should have comment or be unexported (golint)
    • irs/pkg/pdf_generator/Pdf1099Misc.go
    • Line 5: warning: don't use an underscore in package name (golint)
    • Line 21: warning: comment on exported const PdfMscCopyB should be of the form "PdfMscCopyB ..." (golint)
    • Line 23: warning: comment on exported const PdfMscCopyC should be of the form "PdfMscCopyC ..." (golint)
    • Line 25: warning: comment on exported const PdfNecCopyB should be of the form "PdfNecCopyB ..." (golint)
    • Line 27: warning: comment on exported const PdfNecCopyC should be of the form "PdfNecCopyC ..." (golint)
    • Line 31: warning: comment on exported type Pdf1099Misc should be of the form "Pdf1099Misc ..." (with optional leading article) (golint)
    • Line 278: warning: comment on exported function GeneratePdf should be of the form "GeneratePdf ..." (golint)
    • Line 310: warning: comment on exported function MergePdfs should be of the form "MergePdfs ..." (golint)
    • irs/cmd/irs/main.go
    • Line 29: warning: exported var WebCmd should have comment or be unexported (golint)
    • Line 57: warning: exported var Validate should have comment or be unexported (golint)
    • Line 70: warning: exported var Print should have comment or be unexported (golint)
    • Line 107: warning: exported var Convert should have comment or be unexported (golint)
    • irs/pkg/records/transmitter_record.go
    • Line 16: warning: exported type TRecord should have comment or be unexported (golint)
    • Line 199: warning: comment on exported method TRecord.SetSequenceNumber should be of the form "SetSequenceNumber ..." (golint)
    • Line 207: warning: exported method TRecord.ValidateRecordSequenceNumber should have comment or be unexported (golint)
    • Line 214: warning: exported method TRecord.ValidatePriorYearDataIndicator should have comment or be unexported (golint)
    • Line 221: warning: exported method TRecord.ValidateTestFileIndicator should have comment or be unexported (golint)
    • Line 228: warning: exported method TRecord.ValidateForeignEntityIndicator should have comment or be unexported (golint)
    • Line 235: warning: exported method TRecord.ValidateCompanyState should have comment or be unexported (golint)
    • Line 242: warning: exported method TRecord.ValidateVendorIndicator should have comment or be unexported (golint)
    • Line 249: warning: exported method TRecord.ValidateVendorState should have comment or be unexported (golint)
    • Line 256: warning: exported method TRecord.ValidateVendorForeignEntityIndicator should have comment or be unexported (golint)
    • Line 263: warning: exported method TRecord.ValidateCompanyZipCode should have comment or be unexported (golint)
    • Line 270: warning: exported method TRecord.ValidateVendorZipCode should have comment or be unexported (golint)
    • irs/pkg/subrecords/1098_t.go
    • Line 16: warning: exported type Sub1098T should have comment or be unexported (golint)
    • Line 65: warning: comment on exported method Sub1098T.FederalState should be of the form "FederalState ..." (golint)
    • Line 111: warning: exported method Sub1098T.ValidateIdentificationNumber should have comment or be unexported (golint)
    • Line 119: warning: exported method Sub1098T.ValidateHalfTimeStudentIndicator should have comment or be unexported (golint)
    • Line 127: warning: exported method Sub1098T.ValidateGraduateStudentIndicator should have comment or be unexported (golint)
    • Line 135: warning: exported method Sub1098T.ValidateAcademicPeriodIndicator should have comment or be unexported (golint)
    • irs/pkg/subrecords/1099_a.go
    • Line 17: warning: exported type Sub1099A should have comment or be unexported (golint)
    • Line 53: warning: comment on exported method Sub1099A.FederalState should be of the form "FederalState ..." (golint)
    • Line 99: warning: exported method Sub1099A.ValidatePersonalLiabilityIndicator should have comment or be unexported (golint)
    • irs/pkg/subrecords/3922.go
    • Line 17: warning: exported type Sub3922 should have comment or be unexported (golint)
    • Line 52: warning: comment on exported method Sub3922.FederalState should be of the form "FederalState ..." (golint)
    • irs/pkg/subrecords/5498_esa.go
    • Line 16: warning: exported type Sub5498ESA should have comment or be unexported (golint)
    • Line 30: warning: comment on exported method Sub5498ESA.FederalState should be of the form "FederalState ..." (golint)
    • irs/pkg/subrecords/1097_btc.go
    • Line 16: warning: exported type Sub1097BTC should have comment or be unexported (golint)
    • Line 59: warning: comment on exported method Sub1097BTC.FederalState should be of the form "FederalState ..." (golint)
    • Line 105: warning: exported method Sub1097BTC.ValidateIssuerIndicator should have comment or be unexported (golint)
    • Line 112: warning: exported method Sub1097BTC.ValidateCode should have comment or be unexported (golint)
    • Line 119: warning: exported method Sub1097BTC.ValidateBondType should have comment or be unexported (golint)
    • irs/pkg/subrecords/1099_int.go
    • Line 16: warning: exported type Sub1099INT should have comment or be unexported (golint)
    • Line 71: warning: comment on exported method Sub1099INT.FederalState should be of the form "FederalState ..." (golint)
    • Line 117: warning: exported method Sub1099INT.ValidateSecondTinNotice should have comment or be unexported (golint)
    • Line 125: warning: exported method Sub1099INT.ValidateFATCA should have comment or be unexported (golint)
    • Line 133: warning: exported method Sub1099INT.ValidateCombinedFSCode should have comment or be unexported (golint)
    • irs/pkg/subrecords/1099_patr.go
    • Line 16: warning: exported type Sub1099PATR should have comment or be unexported (golint)
    • Line 55: warning: comment on exported method Sub1099PATR.FederalState should be of the form "FederalState ..." (golint)
    • Line 101: warning: exported method Sub1099PATR.ValidateSecondTinNotice should have comment or be unexported (golint)
    • Line 109: warning: exported method Sub1099PATR.ValidateCombinedFSCode should have comment or be unexported (golint)
    • irs/pkg/subrecords/1098.go
    • Line 17: warning: exported type Sub1098 should have comment or be unexported (golint)
    • Line 70: warning: comment on exported method Sub1098.FederalState should be of the form "FederalState ..." (golint)
    • Line 116: warning: exported method Sub1098.ValidatePropertySecuringMortgageIndicator should have comment or be unexported (golint)
    • irs/pkg/subrecords/1098_q.go
    • Line 17: warning: exported type Sub1098Q should have comment or be unexported (golint)
    • Line 82: warning: comment on exported method Sub1098Q.FederalState should be of the form "FederalState ..." (golint)
    • Line 128: warning: exported method Sub1098Q.ValidateAcceleratedIndicator should have comment or be unexported (golint)
    • Line 136: warning: exported method Sub1098Q.ValidateJanuary should have comment or be unexported (golint)
    • Line 143: warning: exported method Sub1098Q.ValidateFebruary should have comment or be unexported (golint)
    • Line 150: warning: exported method Sub1098Q.ValidateMarch should have comment or be unexported (golint)
    • Line 157: warning: exported method Sub1098Q.ValidateApril should have comment or be unexported (golint)
    • Line 164: warning: exported method Sub1098Q.ValidateMay should have comment or be unexported (golint)
    • Line 171: warning: exported method Sub1098Q.ValidateJune should have comment or be unexported (golint)
    • Line 178: warning: exported method Sub1098Q.ValidateJuly should have comment or be unexported (golint)
    • Line 185: warning: exported method Sub1098Q.ValidateAugust should have comment or be unexported (golint)
    • Line 192: warning: exported method Sub1098Q.ValidateSeptember should have comment or be unexported (golint)
    • Line 199: warning: exported method Sub1098Q.ValidateOctober should have comment or be unexported (golint)
    • Line 206: warning: exported method Sub1098Q.ValidateNovember should have comment or be unexported (golint)
    • Line 213: warning: exported method Sub1098Q.ValidateDecember should have comment or be unexported (golint)
    • Line 220: warning: exported method Sub1098Q.ValidateEmployerIdentificationNumber should have comment or be unexported (golint)
    • irs/pkg/subrecords/1099_ltc.go
    • Line 16: warning: exported type Sub1099LTC should have comment or be unexported (golint)
    • Line 108: warning: comment on exported method Sub1099LTC.FederalState should be of the form "FederalState ..." (golint)
    • Line 154: warning: exported method Sub1099LTC.ValidateTypePaymentIndicator should have comment or be unexported (golint)
    • Line 162: warning: exported method Sub1099LTC.ValidateStatusIllnessIndicator should have comment or be unexported (golint)
    • Line 170: warning: exported method Sub1099LTC.ValidateQualifiedContractIndicator should have comment or be unexported (golint)
    • Line 178: warning: exported method Sub1099LTC.ValidateStateInsured should have comment or be unexported (golint)
    • irs/pkg/subrecords/1099_oid.go
    • Line 16: warning: exported type Sub1099OID should have comment or be unexported (golint)
    • Line 68: warning: comment on exported method Sub1099OID.FederalState should be of the form "FederalState ..." (golint)
    • Line 114: warning: exported method Sub1099OID.ValidateFATCA should have comment or be unexported (golint)
    • Line 122: warning: exported method Sub1099OID.ValidateCombinedFSCode should have comment or be unexported (golint)
    • irs/pkg/records/end_payer_record.go
    • Line 16: warning: exported type CRecord should have comment or be unexported (golint)
    • Line 118: warning: comment on exported method CRecord.SetSequenceNumber should be of the form "SetSequenceNumber ..." (golint)
    • Line 148: warning: exported method CRecord.ValidateRecordSequenceNumber should have comment or be unexported (golint)
    • irs/pkg/subrecords/1098_e.go
    • Line 16: warning: exported type Sub1098E should have comment or be unexported (golint)
    • Line 36: warning: comment on exported method Sub1098E.FederalState should be of the form "FederalState ..." (golint)
    • Line 82: warning: exported method Sub1098E.ValidateOriginationInterestIndicator should have comment or be unexported (golint)
    • irs/pkg/subrecords/1099_g.go
    • Line 16: warning: exported type Sub1099G should have comment or be unexported (golint)
    • Line 74: warning: comment on exported method Sub1099G.FederalState should be of the form "FederalState ..." (golint)
    • Line 120: warning: exported method Sub1099G.ValidateSecondTinNotice should have comment or be unexported (golint)
    • Line 128: warning: exported method Sub1099G.ValidateTradeBusinessIndicator should have comment or be unexported (golint)
    • Line 136: warning: exported method Sub1099G.ValidateCombinedFSCode should have comment or be unexported (golint)
    • Line 140: warning: exported method Sub1099G.ValidateTaxYearRefund should have comment or be unexported (golint)
    • irs/pkg/subrecords/1099_h.go
    • Line 16: warning: exported type Sub1099H should have comment or be unexported (golint)
    • Line 35: warning: comment on exported method Sub1099H.FederalState should be of the form "FederalState ..." (golint)
    • irs/pkg/subrecords/1099_k.go
    • Line 16: warning: exported type Sub1099K should have comment or be unexported (golint)
    • Line 85: warning: comment on exported method Sub1099K.FederalState should be of the form "FederalState ..." (golint)
    • Line 131: warning: exported method Sub1099K.ValidateSecondTinNotice should have comment or be unexported (golint)
    • Line 139: warning: exported method Sub1099K.ValidateTypeFilerIndicator should have comment or be unexported (golint)
    • Line 147: warning: exported method Sub1099K.ValidateTypePaymentIndicator should have comment or be unexported (golint)
    • Line 155: warning: exported method Sub1099K.ValidateCombinedFSCode should have comment or be unexported (golint)
    • irs/pkg/service/handlers.go
    • Line 117: warning: comment on exported function ConfigureHandlers should be of the form "ConfigureHandlers ..." (golint)
    • Line 126: warning: comment on exported function TestConfigureHandlers should be of the form "TestConfigureHandlers ..." (golint)
    • irs/pkg/encrypter/service.go
    • Line 15: warning: exported type EncryptService should have comment or be unexported (golint)
    • Line 22: warning: exported const GCM should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: exported function NewEncryptService should have comment or be unexported (golint)
    • Line 44: warning: exported function GenerateNonce should have comment or be unexported (golint)
    • Line 50: warning: exported function CreateKey should have comment or be unexported (golint)
    • irs/pkg/subrecords/1099_c.go
    • Line 17: warning: exported type Sub1099C should have comment or be unexported (golint)
    • Line 58: warning: comment on exported method Sub1099C.FederalState should be of the form "FederalState ..." (golint)
    • Line 104: warning: exported method Sub1099C.ValidateIdentifiableEventCode should have comment or be unexported (golint)
    • Line 116: warning: exported method Sub1099C.ValidatePersonalLiabilityIndicator should have comment or be unexported (golint)
    • irs/pkg/subrecords/5498_sa.go
    • Line 16: warning: exported type Sub5498SA should have comment or be unexported (golint)
    • Line 40: warning: comment on exported method Sub5498SA.FederalState should be of the form "FederalState ..." (golint)
    • Line 86: warning: exported method Sub5498SA.ValidateMedicareAdvantageMSAIndicator should have comment or be unexported (golint)
    • Line 94: warning: exported method Sub5498SA.ValidateHSAIndicator should have comment or be unexported (golint)
    • Line 102: warning: exported method Sub5498SA.ValidateArcherMSAIndicator should have comment or be unexported (golint)
    • irs/pkg/records/payer_record.go
    • Line 16: warning: exported type ARecord should have comment or be unexported (golint)
    • Line 202: warning: comment on exported method ARecord.SetSequenceNumber should be of the form "SetSequenceNumber ..." (golint)
    • Line 210: warning: exported method ARecord.ValidateRecordSequenceNumber should have comment or be unexported (golint)
    • Line 217: warning: exported method ARecord.ValidateCombinedFSFilingProgram should have comment or be unexported (golint)
    • Line 224: warning: exported method ARecord.ValidateLastFilingIndicator should have comment or be unexported (golint)
    • Line 231: warning: exported method ARecord.ValidateTypeOfReturn should have comment or be unexported (golint)
    • Line 238: warning: exported method ARecord.ValidateForeignEntityIndicator should have comment or be unexported (golint)
    • Line 245: warning: exported method ARecord.ValidateTransferAgentIndicator should have comment or be unexported (golint)
    • Line 252: warning: exported method ARecord.ValidatePayerState should have comment or be unexported (golint)
    • Line 259: warning: exported method ARecord.ValidateAmountCodes should have comment or be unexported (golint)
    • Line 276: warning: exported method ARecord.ValidatePayerZipCode should have comment or be unexported (golint)
    • irs/pkg/records/state_record.go
    • Line 16: warning: exported type KRecord should have comment or be unexported (golint)
    • Line 132: warning: comment on exported method KRecord.SetSequenceNumber should be of the form "SetSequenceNumber ..." (golint)
    • Line 146: warning: comment on exported method KRecord.PaymentCodes should be of the form "PaymentCodes ..." (golint)
    • Line 162: warning: exported method KRecord.ValidateRecordSequenceNumber should have comment or be unexported (golint)
    • Line 169: warning: exported method KRecord.ValidateCombinedFederalStateCode should have comment or be unexported (golint)
    • irs/pkg/subrecords/1098_c.go
    • Line 17: warning: exported type Sub1098C should have comment or be unexported (golint)
    • Line 101: warning: comment on exported method Sub1098C.FederalState should be of the form "FederalState ..." (golint)
    • Line 147: warning: exported method Sub1098C.ValidateTransactionIndicator should have comment or be unexported (golint)
    • Line 154: warning: exported method Sub1098C.ValidateTransferAfterImprovementsIndicator should have comment or be unexported (golint)
    • Line 161: warning: exported method Sub1098C.ValidateTransferMarketValueIndicator should have comment or be unexported (golint)
    • Line 168: warning: exported method Sub1098C.ValidateDoneeIndicator should have comment or be unexported (golint)
    • Line 175: warning: exported method Sub1098C.ValidateIntangibleReligiousBenefitsIndicator should have comment or be unexported (golint)
    • Line 182: warning: exported method Sub1098C.ValidateDeductionLessIndicator should have comment or be unexported (golint)
    • irs/pkg/subrecords/1099_div.go
    • Line 16: warning: exported type Sub1099DIV should have comment or be unexported (golint)
    • Line 64: warning: comment on exported method Sub1099DIV.FederalState should be of the form "FederalState ..." (golint)
    • Line 110: warning: exported method Sub1099DIV.ValidateSecondTinNotice should have comment or be unexported (golint)
    • Line 118: warning: exported method Sub1099DIV.ValidateFATCA should have comment or be unexported (golint)
    • Line 126: warning: exported method Sub1099DIV.ValidateCombinedFSCode should have comment or be unexported (golint)
    • irs/pkg/subrecords/1099_sb.go
    • Line 16: warning: exported type Sub1099SB should have comment or be unexported (golint)
    • Line 26: warning: comment on exported method Sub1099SB.FederalState should be of the form "FederalState ..." (golint)
    • irs/pkg/subrecords/3921.go
    • Line 17: warning: exported type Sub3921 should have comment or be unexported (golint)
    • Line 51: warning: comment on exported method Sub3921.FederalState should be of the form "FederalState ..." (golint)
    • irs/pkg/file/constants.go
    • Line 8: warning: comment on exported const FormatAscii should be of the form "FormatAscii ..." (golint)
    • Line 10: warning: comment on exported const FormatJson should be of the form "FormatJson ..." (golint)
    • Line 12: warning: comment on exported const MaximumTransmitterRecord should be of the form "MaximumTransmitterRecord ..." (golint)
    • irs/pkg/records/end_transmission_record.go
    • Line 16: warning: exported type FRecord should have comment or be unexported (golint)
    • Line 97: warning: comment on exported method FRecord.SetSequenceNumber should be of the form "SetSequenceNumber ..." (golint)
    • Line 105: warning: exported method FRecord.ValidateRecordSequenceNumber should have comment or be unexported (golint)
    • irs/pkg/subrecords/5498.go
    • Line 17: warning: exported type Sub5498 should have comment or be unexported (golint)
    • Line 109: warning: comment on exported method Sub5498.FederalState should be of the form "FederalState ..." (golint)
    • Line 155: warning: exported method Sub5498.ValidateIRAIndicator should have comment or be unexported (golint)
    • Line 163: warning: exported method Sub5498.ValidateSEPIndicator should have comment or be unexported (golint)
    • Line 171: warning: exported method Sub5498.ValidateSIMPLEIndicator should have comment or be unexported (golint)
    • Line 179: warning: exported method Sub5498.ValidateRothIRAIndicator should have comment or be unexported (golint)
    • Line 187: warning: exported method Sub5498.ValidateRMDIndicator should have comment or be unexported (golint)
    • Line 195: warning: exported method Sub5498.ValidatePostponedContributionCode should have comment or be unexported (golint)
    • Line 207: warning: exported method Sub5498.ValidateRepaymentCode should have comment or be unexported (golint)
    • Line 219: warning: exported method Sub5498.ValidateCodes should have comment or be unexported (golint)
    • Line 229: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 237: warning: exported method Sub5498.ValidateCombinedFSCode should have comment or be unexported (golint)
    • irs/pkg/documents/storage.go
    • Line 17: warning: comment on exported type DocumentInformation should be of the form "DocumentInformation ..." (with optional leading article) (golint)
    • Line 24: warning: comment on exported type StorageService should be of the form "StorageService ..." (with optional leading article) (golint)
    • Line 30: warning: comment on exported function NewStorageService should be of the form "NewStorageService ..." (golint)
    • irs/pkg/subrecords/w_2g.go
    • Line 17: warning: exported type SubW2G should have comment or be unexported (golint)
    • Line 100: warning: comment on exported method SubW2G.FederalState should be of the form "FederalState ..." (golint)
    • Line 146: warning: exported method SubW2G.ValidateTypeWagerCode should have comment or be unexported (golint)
    • irs/pkg/subrecords/1099_ls.go
    • Line 17: warning: exported type Sub1099LS should have comment or be unexported (golint)
    • Line 32: warning: comment on exported method Sub1099LS.FederalState should be of the form "FederalState ..." (golint)
    • irs/pkg/config/constants.go
    • Line 100: warning: comment on exported const DateFormat should be of the form "DateFormat ..." (golint)
    • Line 111: warning: comment on exported const VendorIndicatorPurchased should be of the form "VendorIndicatorPurchased ..." (golint)
    • Line 113: warning: comment on exported const VendorIndicatorProduced should be of the form "VendorIndicatorProduced ..." (golint)
    • Line 119: warning: comment on exported const TransferAgentIndicator should be of the form "TransferAgentIndicator ..." (golint)
    • Line 121: warning: comment on exported const NotTransferAgentIndicator should be of the form "NotTransferAgentIndicator ..." (golint)
    • Line 123: warning: comment on exported const CorrectedReturnIndicatorG should be of the form "CorrectedReturnIndicatorG ..." (golint)
    • Line 125: warning: comment on exported const CorrectedReturnIndicatorC should be of the form "CorrectedReturnIndicatorC ..." (golint)
    • Line 131: warning: comment on exported const ForeignCountryIndicator should be of the form "ForeignCountryIndicator ..." (golint)
    • Line 143: warning: comment on exported const PropertySecuringMortgageIndicator should be of the form "PropertySecuringMortgageIndicator ..." (golint)
    • Line 146: warning: comment on exported const GeneralOneIndicator should be of the form "GeneralOneIndicator ..." (golint)
    • Line 149: warning: comment on exported const GeneralTwoIndicator should be of the form "GeneralTwoIndicator ..." (golint)
    • Line 153: warning: comment on exported var StateAbbreviationCodes should be of the form "StateAbbreviationCodes ..." (golint)
    • Line 213: warning: comment on exported var ParticipateStateCodes should be of the form "ParticipateStateCodes ..." (golint)
    • Line 247: warning: comment on exported var TypeOfReturns should be of the form "TypeOfReturns ..." (golint)
    • Line 284: warning: comment on exported var BtcIssuerIndicator should be of the form "BtcIssuerIndicator ..." (golint)
    • Line 290: warning: comment on exported var BtcCode should be of the form "BtcCode ..." (golint)
    • Line 297: warning: comment on exported var BtcBondType should be of the form "BtcBondType ..." (golint)
    • Line 303: warning: comment on exported var AmountCodes should be of the form "AmountCodes ..." (golint)
    • Line 584: warning: comment on exported var PaymentCodes1098F should be of the form "PaymentCodes1098F ..." (golint)
    • Line 595: warning: exported var DistributionCodes should have comment or be unexported (golint)
    • Line 607: warning: exported const OutputJsonFormat should have comment (or a comment on this block) or be unexported (golint)
    • irs/pkg/utils/errors.go
    • Line 15: warning: comment on exported var ErrNumeric should be of the form "ErrNumeric ..." (golint)
    • Line 17: warning: comment on exported var ErrPhoneNumber should be of the form "ErrPhoneNumber ..." (golint)
    • Line 19: warning: comment on exported var ErrValidDate should be of the form "ErrValidDate ..." (golint)
    • Line 21: warning: comment on exported var ErrRecordLength should be of the form "ErrRecordLength ..." (golint)
    • irs/pkg/records/payee_record.go
    • Line 18: warning: exported type BRecord should have comment or be unexported (golint)
    • Line 293: warning: comment on exported method BRecord.SetSequenceNumber should be of the form "SetSequenceNumber ..." (golint)
    • Line 318: warning: comment on exported method BRecord.PaymentCodes should be of the form "PaymentCodes ..." (golint)
    • Line 331: warning: comment on exported method BRecord.TypeOfReturn should be of the form "TypeOfReturn ..." (golint)
    • Line 336: warning: comment on exported method BRecord.FederalState should be of the form "FederalState ..." (golint)
    • Line 341: warning: comment on exported method BRecord.MarshalJSON should be of the form "MarshalJSON ..." (golint)
    • Line 374: warning: comment on exported method BRecord.UnmarshalJSON should be of the form "UnmarshalJSON ..." (golint)
    • Line 391: warning: comment on exported method BRecord.Fatca should be of the form "Fatca ..." (golint)
    • Line 407: warning: comment on exported method BRecord.SecondTIN should be of the form "SecondTIN ..." (golint)
    • Line 423: warning: comment on exported method BRecord.DirectSales should be of the form "DirectSales ..." (golint)
    • Line 436: warning: comment on exported method BRecord.IncomeTax should be of the form "IncomeTax ..." (golint)
    • Line 452: warning: exported method BRecord.ValidateRecordSequenceNumber should have comment or be unexported (golint)
    • Line 459: warning: exported method BRecord.ValidateCorrectedReturnIndicator should have comment or be unexported (golint)
    • Line 468: warning: exported method BRecord.ValidateTypeOfTIN should have comment or be unexported (golint)
    • Line 477: warning: exported method BRecord.ValidateForeignCountryIndicator should have comment or be unexported (golint)
    • Line 484: warning: exported method BRecord.ValidatePayeeState should have comment or be unexported (golint)
    • Line 491: warning: exported method BRecord.ValidatePayeeZipCode should have comment or be unexported (golint)
    • irs/pkg/subrecords/1099_r.go
    • Line 18: warning: exported type Sub1099R should have comment or be unexported (golint)
    • Line 166: warning: comment on exported method Sub1099R.FederalState should be of the form "FederalState ..." (golint)
    • Line 209: warning: comment on exported method Sub1099R.UnmarshalJSON should be of the form "UnmarshalJSON ..." (golint)
    • Line 225: warning: exported method Sub1099R.ValidateDistributionCode should have comment or be unexported (golint)
    • Line 234: warning: exported method Sub1099R.ValidateISSIndicator should have comment or be unexported (golint)
    • Line 242: warning: exported method Sub1099R.ValidateTotalDistributionIndicator should have comment or be unexported (golint)
    • Line 250: warning: exported method Sub1099R.ValidateTaxableAmountNotDeterminedIndicator should have comment or be unexported (golint)
    • Line 258: warning: exported method Sub1099R.ValidateFATCA should have comment or be unexported (golint)
    • Line 266: warning: exported method Sub1099R.ValidateCombinedFSCode should have comment or be unexported (golint)
    • irs/pkg/subrecords/1099_cap.go
    • Line 17: warning: exported type Sub1099CAP should have comment or be unexported (golint)
    • Line 48: warning: comment on exported method Sub1099CAP.FederalState should be of the form "FederalState ..." (golint)
    • irs/pkg/subrecords/1099_sa.go
    • Line 16: warning: exported type Sub1099SA should have comment or be unexported (golint)
    • Line 69: warning: comment on exported method Sub1099SA.FederalState should be of the form "FederalState ..." (golint)
    • Line 115: warning: exported method Sub1099SA.ValidateDistributionCode should have comment or be unexported (golint)
    • Line 123: warning: exported method Sub1099SA.ValidateMedicareAdvantageMSAIndicator should have comment or be unexported (golint)
    • Line 131: warning: exported method Sub1099SA.ValidateHSAIndicator should have comment or be unexported (golint)
    • Line 139: warning: exported method Sub1099SA.ValidateArcherMSAIndicator should have comment or be unexported (golint)
    • irs/pkg/config/specification.go
    • Line 9: warning: exported type SpecField should have comment or be unexported (golint)
    • Line 16: warning: exported type SpecRecord should have comment or be unexported (golint)
    • Line 45: warning: comment on exported var TRecordLayout should be of the form "TRecordLayout ..." (golint)
    • Line 84: warning: comment on exported var ARecordLayout should be of the form "ARecordLayout ..." (golint)
    • Line 110: warning: comment on exported var BRecordLayout should be of the form "BRecordLayout ..." (golint)
    • Line 151: warning: comment on exported var CRecordLayout should be of the form "CRecordLayout ..." (golint)
    • Line 177: warning: comment on exported var KRecordLayout should be of the form "KRecordLayout ..." (golint)
    • Line 207: warning: comment on exported var FRecordLayout should be of the form "FRecordLayout ..." (golint)
    • Line 222: warning: comment on exported var Sub1097BTCLayout should be of the form "Sub1097BTCLayout ..." (golint)
    • Line 236: warning: comment on exported var Sub1098Layout should be of the form "Sub1098Layout ..." (golint)
    • Line 249: warning: comment on exported var Sub1098CLayout should be of the form "Sub1098CLayout ..." (golint)
    • Line 270: warning: comment on exported var Sub1098ELayout should be of the form "Sub1098ELayout ..." (golint)
    • Line 279: warning: comment on exported var Sub1098FLayout should be of the form "Sub1098FLayout ..." (golint)
    • Line 289: warning: comment on exported var Sub1098QLayout should be of the form "Sub1098QLayout ..." (golint)
    • Line 313: warning: comment on exported var Sub1098TLayout should be of the form "Sub1098TLayout ..." (golint)
    • Line 326: warning: comment on exported var Sub1099ALayout should be of the form "Sub1099ALayout ..." (golint)
    • Line 337: warning: comment on exported var Sub1099BLayout should be of the form "Sub1099BLayout ..." (golint)
    • Line 359: warning: comment on exported var Sub1099CLayout should be of the form "Sub1099CLayout ..." (golint)
    • Line 371: warning: comment on exported var Sub1099CAPLayout should be of the form "Sub1099CAPLayout ..." (golint)
    • Line 383: warning: comment on exported var Sub1099DIVLayout should be of the form "Sub1099DIVLayout ..." (golint)
    • Line 396: warning: comment on exported var Sub1099GLayout should be of the form "Sub1099GLayout ..." (golint)
    • Line 409: warning: comment on exported var Sub1099HLayout should be of the form "Sub1099HLayout ..." (golint)
    • Line 418: warning: comment on exported var Sub1099INTLayout should be of the form "Sub1099INTLayout ..." (golint)
    • Line 432: warning: comment on exported var Sub1099KLayout should be of the form "Sub1099KLayout ..." (golint)
    • Line 449: warning: comment on exported var Sub1099LSLayout should be of the form "Sub1099LSLayout ..." (golint)
    • Line 458: warning: comment on exported var Sub1099LTCLayout should be of the form "Sub1099LTCLayout ..." (golint)
    • Line 477: warning: comment on exported var Sub1099MISCLayout should be of the form "Sub1099MISCLayout ..." (golint)
    • Line 490: warning: comment on exported var Sub1099NECLayout should be of the form "Sub1099NECLayout ..." (golint)
    • Line 497: warning: comment on exported var Sub1099OIDLayout should be of the form "Sub1099OIDLayout ..." (golint)
    • Line 510: warning: comment on exported var Sub1099PATRLayout should be of the form "Sub1099PATRLayout ..." (golint)
    • Line 520: warning: comment on exported var Sub1099QLayout should be of the form "Sub1099QLayout ..." (golint)
    • Line 531: warning: comment on exported var Sub1099RLayout should be of the form "Sub1099RLayout ..." (golint)
    • Line 549: warning: comment on exported var Sub1099SLayout should be of the form "Sub1099SLayout ..." (golint)
    • Line 563: warning: comment on exported var Sub1099SALayout should be of the form "Sub1099SALayout ..." (golint)
    • Line 578: warning: comment on exported var Sub1099SBLayout should be of the form "Sub1099SBLayout ..." (golint)
    • Line 585: warning: comment on exported var Sub3921Layout should be of the form "Sub3921Layout ..." (golint)
    • Line 598: warning: comment on exported var Sub3922Layout should be of the form "Sub3922Layout ..." (golint)
    • Line 610: warning: comment on exported var Sub5498Layout should be of the form "Sub5498Layout ..." (golint)
    • Line 630: warning: comment on exported var Sub5498ESALayout should be of the form "Sub5498ESALayout ..." (golint)
    • Line 637: warning: comment on exported var Sub5498SALayout should be of the form "Sub5498SALayout ..." (golint)
    • Line 648: warning: comment on exported var SubW2GLayout should be of the form "SubW2GLayout ..." (golint)
    • Line 668: warning: exported function ToSpecifications should have comment or be unexported (golint)
    • irs/pkg/subrecords/1099_b.go
    • Line 17: warning: exported type Sub1099B should have comment or be unexported (golint)
    • Line 117: warning: comment on exported method Sub1099B.FederalState should be of the form "FederalState ..." (golint)
    • Line 163: warning: exported method Sub1099B.ValidateSecondTinNotice should have comment or be unexported (golint)
    • Line 171: warning: exported method Sub1099B.ValidateNoncoveredSecurityIndicator should have comment or be unexported (golint)
    • Line 179: warning: exported method Sub1099B.ValidateTypeGainLossIndicator should have comment or be unexported (golint)
    • Line 191: warning: exported method Sub1099B.ValidateGrossProceedsIndicator should have comment or be unexported (golint)
    • Line 199: warning: exported method Sub1099B.ValidateLossNotAllowedIndicator should have comment or be unexported (golint)
    • Line 207: warning: exported method Sub1099B.ValidateApplicableCheckboxForm8949 should have comment or be unexported (golint)
    • Line 219: warning: exported method Sub1099B.ValidateApplicableCheckboxCollectables should have comment or be unexported (golint)
    • Line 227: warning: exported method Sub1099B.ValidateFATCA should have comment or be unexported (golint)
    • Line 235: warning: exported method Sub1099B.ValidateApplicableCheckboxQOF should have comment or be unexported (golint)
    • irs/pkg/subrecords/1099_q.go
    • Line 16: warning: exported type Sub1099Q should have comment or be unexported (golint)
    • Line 47: warning: comment on exported method Sub1099Q.FederalState should be of the form "FederalState ..." (golint)
    • Line 93: warning: exported method Sub1099Q.ValidateTrusteeTransferIndicator should have comment or be unexported (golint)
    • Line 101: warning: exported method Sub1099Q.ValidateDesignatedBeneficiary should have comment or be unexported (golint)
    • Line 109: warning: exported method Sub1099Q.ValidateTypeTuitionPayment should have comment or be unexported (golint)
    • irs/pkg/subrecords/1099_nec.go
    • Line 16: warning: exported type Sub1099NEC should have comment or be unexported (golint)
    • Line 32: warning: comment on exported method Sub1099NEC.FederalState should be of the form "FederalState ..." (golint)
    • Line 78: warning: exported method Sub1099NEC.ValidateFATCA should have comment or be unexported (golint)
    • irs/pkg/subrecords/1098_f.go
    • Line 17: warning: exported type Sub1098F should have comment or be unexported (golint)
    • Line 56: warning: comment on exported method Sub1098F.FederalState should be of the form "FederalState ..." (golint)
    • Line 102: warning: exported method Sub1098F.ValidatePaymentCode should have comment or be unexported (golint)
    • irs/pkg/subrecords/1099_misc.go
    • Line 16: warning: exported type Sub1099MISC should have comment or be unexported (golint)
    • Line 69: warning: comment on exported method Sub1099MISC.FederalState should be of the form "FederalState ..." (golint)
    • Line 115: warning: exported method Sub1099MISC.ValidateFATCA should have comment or be unexported (golint)
    • Line 123: warning: exported method Sub1099MISC.ValidateDirectSalesIndicator should have comment or be unexported (golint)
    • Line 131: warning: exported method Sub1099MISC.ValidateCombinedFSCode should have comment or be unexported (golint)
    • irs/pkg/utils/fields.go
    • Line 29: warning: comment on exported function ParseValue should be of the form "ParseValue ..." (golint)
    • Line 60: warning: comment on exported function ToString should be of the form "ToString ..." (golint)
    • Line 102: warning: comment on exported function Validate should be of the form "Validate ..." (golint)
    • Line 143: warning: comment on exported function GetField should be of the form "GetField ..." (golint)
    • Line 156: warning: comment on exported function CopyStruct should be of the form "CopyStruct ..." (golint)
    • Line 174: warning: comment on exported function CheckAvailableCodes should be of the form "CheckAvailableCodes ..." (golint)
    • Line 243: warning: exported function IsNumeric should have comment or be unexported (golint)
    • Line 335: warning: exported function ValidateCombinedFSCode should have comment or be unexported (golint)
    • irs/pkg/file/file.go
    • Line 13: warning: comment on exported type File should be of the form "File ..." (with optional leading article) (golint)
    • irs/version.go
    • Line 7: warning: exported const Version should have comment or be unexported (golint)
    • irs/pkg/records/record.go
    • Line 7: warning: comment on exported type Record should be of the form "Record ..." (with optional leading article) (golint)
    • Line 17: warning: exported function NewARecord should have comment or be unexported (golint)
    • Line 21: warning: exported function NewBRecord should have comment or be unexported (golint)
    • Line 26: warning: exported function NewCRecord should have comment or be unexported (golint)
    • Line 30: warning: exported function NewTRecord should have comment or be unexported (golint)
    • Line 34: warning: exported function NewFRecord should have comment or be unexported (golint)
    • Line 38: warning: exported function NewKRecord should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign99%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!