Preparing report...

Report for github.com/go-playground/locales

(v0.14.1)

A    Great!    Found 811 issues across 1533 files

Tweet

gofmt53%

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!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo93%

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.

    • sk_SK/sk_SK.go
    • Line 125: warning: cyclomatic complexity 27 of function (*sk_SK).RangePluralRule() is high (> 15) (gocyclo)
    • az_Latn/az_Latn.go
    • Line 111: warning: cyclomatic complexity 26 of function (*az_Latn).OrdinalPluralRule() is high (> 15) (gocyclo)
    • ar_LY/ar_LY.go
    • Line 125: warning: cyclomatic complexity 45 of function (*ar_LY).RangePluralRule() is high (> 15) (gocyclo)
    • ar_AE/ar_AE.go
    • Line 125: warning: cyclomatic complexity 45 of function (*ar_AE).RangePluralRule() is high (> 15) (gocyclo)
    • ar_SY/ar_SY.go
    • Line 125: warning: cyclomatic complexity 45 of function (*ar_SY).RangePluralRule() is high (> 15) (gocyclo)
    • ga_GB/ga_GB.go
    • Line 127: warning: cyclomatic complexity 33 of function (*ga_GB).RangePluralRule() is high (> 15) (gocyclo)
    • sk/sk.go
    • Line 125: warning: cyclomatic complexity 27 of function (*sk).RangePluralRule() is high (> 15) (gocyclo)
    • fa/fa.go
    • Line 329: warning: cyclomatic complexity 17 of function (*fa).FmtAccounting() is high (> 15) (gocyclo)
    • ar_OM/ar_OM.go
    • Line 125: warning: cyclomatic complexity 45 of function (*ar_OM).RangePluralRule() is high (> 15) (gocyclo)
    • ar_EG/ar_EG.go
    • Line 125: warning: cyclomatic complexity 45 of function (*ar_EG).RangePluralRule() is high (> 15) (gocyclo)
    • ar_ER/ar_ER.go
    • Line 125: warning: cyclomatic complexity 45 of function (*ar_ER).RangePluralRule() is high (> 15) (gocyclo)
    • lt/lt.go
    • Line 125: warning: cyclomatic complexity 31 of function (*lt).RangePluralRule() is high (> 15) (gocyclo)
    • nb/nb.go
    • Line 354: warning: cyclomatic complexity 16 of function (*nb).FmtAccounting() is high (> 15) (gocyclo)
    • ru/ru.go
    • Line 123: warning: cyclomatic complexity 31 of function (*ru).RangePluralRule() is high (> 15) (gocyclo)
    • Line 99: warning: cyclomatic complexity 17 of function (*ru).CardinalPluralRule() is high (> 15) (gocyclo)
    • cs/cs.go
    • Line 123: warning: cyclomatic complexity 27 of function (*cs).RangePluralRule() is high (> 15) (gocyclo)
    • br/br.go
    • Line 101: warning: cyclomatic complexity 20 of function (*br).CardinalPluralRule() is high (> 15) (gocyclo)
    • ar_KM/ar_KM.go
    • Line 125: warning: cyclomatic complexity 45 of function (*ar_KM).RangePluralRule() is high (> 15) (gocyclo)
    • ar_DZ/ar_DZ.go
    • Line 125: warning: cyclomatic complexity 45 of function (*ar_DZ).RangePluralRule() is high (> 15) (gocyclo)
    • ar_MR/ar_MR.go
    • Line 125: warning: cyclomatic complexity 45 of function (*ar_MR).RangePluralRule() is high (> 15) (gocyclo)
    • ru_UA/ru_UA.go
    • Line 123: warning: cyclomatic complexity 31 of function (*ru_UA).RangePluralRule() is high (> 15) (gocyclo)
    • Line 99: warning: cyclomatic complexity 17 of function (*ru_UA).CardinalPluralRule() is high (> 15) (gocyclo)
    • lt_LT/lt_LT.go
    • Line 125: warning: cyclomatic complexity 31 of function (*lt_LT).RangePluralRule() is high (> 15) (gocyclo)
    • hr_HR/hr_HR.go
    • Line 126: warning: cyclomatic complexity 17 of function (*hr_HR).RangePluralRule() is high (> 15) (gocyclo)
    • ar_LB/ar_LB.go
    • Line 125: warning: cyclomatic complexity 45 of function (*ar_LB).RangePluralRule() is high (> 15) (gocyclo)
    • ar_001/ar_001.go
    • Line 125: warning: cyclomatic complexity 45 of function (*ar_001).RangePluralRule() is high (> 15) (gocyclo)
    • ar_SD/ar_SD.go
    • Line 125: warning: cyclomatic complexity 45 of function (*ar_SD).RangePluralRule() is high (> 15) (gocyclo)
    • be/be.go
    • Line 133: warning: cyclomatic complexity 31 of function (*be).RangePluralRule() is high (> 15) (gocyclo)
    • pl_PL/pl_PL.go
    • Line 125: warning: cyclomatic complexity 27 of function (*pl_PL).RangePluralRule() is high (> 15) (gocyclo)
    • Line 101: warning: cyclomatic complexity 18 of function (*pl_PL).CardinalPluralRule() is high (> 15) (gocyclo)
    • ar_JO/ar_JO.go
    • Line 125: warning: cyclomatic complexity 45 of function (*ar_JO).RangePluralRule() is high (> 15) (gocyclo)
    • ar_EH/ar_EH.go
    • Line 125: warning: cyclomatic complexity 45 of function (*ar_EH).RangePluralRule() is high (> 15) (gocyclo)
    • sl/sl.go
    • Line 126: warning: cyclomatic complexity 31 of function (*sl).RangePluralRule() is high (> 15) (gocyclo)
    • kw/kw.go
    • Line 85: warning: cyclomatic complexity 27 of function (*kw).CardinalPluralRule() is high (> 15) (gocyclo)
    • hr_BA/hr_BA.go
    • Line 126: warning: cyclomatic complexity 17 of function (*hr_BA).RangePluralRule() is high (> 15) (gocyclo)
    • ar_QA/ar_QA.go
    • Line 125: warning: cyclomatic complexity 45 of function (*ar_QA).RangePluralRule() is high (> 15) (gocyclo)
    • uk_UA/uk_UA.go
    • Line 132: warning: cyclomatic complexity 31 of function (*uk_UA).RangePluralRule() is high (> 15) (gocyclo)
    • Line 99: warning: cyclomatic complexity 17 of function (*uk_UA).CardinalPluralRule() is high (> 15) (gocyclo)
    • lv_LV/lv_LV.go
    • Line 123: warning: cyclomatic complexity 17 of function (*lv_LV).RangePluralRule() is high (> 15) (gocyclo)
    • he_IL/he_IL.go
    • Line 122: warning: cyclomatic complexity 21 of function (*he_IL).RangePluralRule() is high (> 15) (gocyclo)
    • he/he.go
    • Line 122: warning: cyclomatic complexity 21 of function (*he).RangePluralRule() is high (> 15) (gocyclo)
    • ar_SA/ar_SA.go
    • Line 125: warning: cyclomatic complexity 45 of function (*ar_SA).RangePluralRule() is high (> 15) (gocyclo)
    • fa_AF/fa_AF.go
    • Line 329: warning: cyclomatic complexity 17 of function (*fa_AF).FmtAccounting() is high (> 15) (gocyclo)
    • ar_TD/ar_TD.go
    • Line 125: warning: cyclomatic complexity 45 of function (*ar_TD).RangePluralRule() is high (> 15) (gocyclo)
    • ar_DJ/ar_DJ.go
    • Line 125: warning: cyclomatic complexity 45 of function (*ar_DJ).RangePluralRule() is high (> 15) (gocyclo)
    • sr_Cyrl/sr_Cyrl.go
    • Line 126: warning: cyclomatic complexity 17 of function (*sr_Cyrl).RangePluralRule() is high (> 15) (gocyclo)
    • ar_TN/ar_TN.go
    • Line 125: warning: cyclomatic complexity 45 of function (*ar_TN).RangePluralRule() is high (> 15) (gocyclo)
    • ar_IL/ar_IL.go
    • Line 125: warning: cyclomatic complexity 45 of function (*ar_IL).RangePluralRule() is high (> 15) (gocyclo)
    • ga/ga.go
    • Line 127: warning: cyclomatic complexity 33 of function (*ga).RangePluralRule() is high (> 15) (gocyclo)
    • kw_GB/kw_GB.go
    • Line 85: warning: cyclomatic complexity 27 of function (*kw_GB).CardinalPluralRule() is high (> 15) (gocyclo)
    • nb_NO/nb_NO.go
    • Line 354: warning: cyclomatic complexity 16 of function (*nb_NO).FmtAccounting() is high (> 15) (gocyclo)
    • be_BY/be_BY.go
    • Line 133: warning: cyclomatic complexity 31 of function (*be_BY).RangePluralRule() is high (> 15) (gocyclo)
    • ru_BY/ru_BY.go
    • Line 123: warning: cyclomatic complexity 31 of function (*ru_BY).RangePluralRule() is high (> 15) (gocyclo)
    • Line 99: warning: cyclomatic complexity 17 of function (*ru_BY).CardinalPluralRule() is high (> 15) (gocyclo)
    • sr_Latn/sr_Latn.go
    • Line 126: warning: cyclomatic complexity 17 of function (*sr_Latn).RangePluralRule() is high (> 15) (gocyclo)
    • ru_KG/ru_KG.go
    • Line 123: warning: cyclomatic complexity 31 of function (*ru_KG).RangePluralRule() is high (> 15) (gocyclo)
    • Line 99: warning: cyclomatic complexity 17 of function (*ru_KG).CardinalPluralRule() is high (> 15) (gocyclo)
    • br_FR/br_FR.go
    • Line 101: warning: cyclomatic complexity 20 of function (*br_FR).CardinalPluralRule() is high (> 15) (gocyclo)
    • bs_Latn/bs_Latn.go
    • Line 126: warning: cyclomatic complexity 17 of function (*bs_Latn).RangePluralRule() is high (> 15) (gocyclo)
    • ar_PS/ar_PS.go
    • Line 125: warning: cyclomatic complexity 45 of function (*ar_PS).RangePluralRule() is high (> 15) (gocyclo)
    • ar_KW/ar_KW.go
    • Line 125: warning: cyclomatic complexity 45 of function (*ar_KW).RangePluralRule() is high (> 15) (gocyclo)
    • ar_BH/ar_BH.go
    • Line 125: warning: cyclomatic complexity 45 of function (*ar_BH).RangePluralRule() is high (> 15) (gocyclo)
    • cy_GB/cy_GB.go
    • Line 139: warning: cyclomatic complexity 39 of function (*cy_GB).RangePluralRule() is high (> 15) (gocyclo)
    • fa_IR/fa_IR.go
    • Line 329: warning: cyclomatic complexity 17 of function (*fa_IR).FmtAccounting() is high (> 15) (gocyclo)
    • ur_IN/ur_IN.go
    • Line 356: warning: cyclomatic complexity 16 of function (*ur_IN).FmtAccounting() is high (> 15) (gocyclo)
    • az/az.go
    • Line 111: warning: cyclomatic complexity 26 of function (*az).OrdinalPluralRule() is high (> 15) (gocyclo)
    • lv/lv.go
    • Line 123: warning: cyclomatic complexity 17 of function (*lv).RangePluralRule() is high (> 15) (gocyclo)
    • ar/ar.go
    • Line 125: warning: cyclomatic complexity 45 of function (*ar).RangePluralRule() is high (> 15) (gocyclo)
    • ru_RU/ru_RU.go
    • Line 123: warning: cyclomatic complexity 31 of function (*ru_RU).RangePluralRule() is high (> 15) (gocyclo)
    • Line 99: warning: cyclomatic complexity 17 of function (*ru_RU).CardinalPluralRule() is high (> 15) (gocyclo)
    • ru_MD/ru_MD.go
    • Line 123: warning: cyclomatic complexity 31 of function (*ru_MD).RangePluralRule() is high (> 15) (gocyclo)
    • Line 99: warning: cyclomatic complexity 17 of function (*ru_MD).CardinalPluralRule() is high (> 15) (gocyclo)
    • pl/pl.go
    • Line 125: warning: cyclomatic complexity 27 of function (*pl).RangePluralRule() is high (> 15) (gocyclo)
    • Line 101: warning: cyclomatic complexity 18 of function (*pl).CardinalPluralRule() is high (> 15) (gocyclo)
    • cmd/generate_resources.go
    • Line 331: warning: cyclomatic complexity 168 of function postProcess() is high (> 15) (gocyclo)
    • Line 816: warning: cyclomatic complexity 132 of function preProcess() is high (> 15) (gocyclo)
    • Line 1321: warning: cyclomatic complexity 70 of function parseDateTimeFormat() is high (> 15) (gocyclo)
    • Line 2458: warning: cyclomatic complexity 44 of function parseCardinalPluralRuleFunc() is high (> 15) (gocyclo)
    • Line 2174: warning: cyclomatic complexity 43 of function parseOrdinalPluralRuleFunc() is high (> 15) (gocyclo)
    • Line 1779: warning: cyclomatic complexity 30 of function parseCurrencyNumberFormat() is high (> 15) (gocyclo)
    • Line 196: warning: cyclomatic complexity 21 of function main() is high (> 15) (gocyclo)
    • Line 2062: warning: cyclomatic complexity 17 of function parseRangePluralRuleFunc() is high (> 15) (gocyclo)
    • Line 1932: warning: cyclomatic complexity 17 of function parsePercentNumberFormat() is high (> 15) (gocyclo)
    • Line 2744: warning: cyclomatic complexity 16 of function manyToSingleVars() is high (> 15) (gocyclo)
    • ar_MA/ar_MA.go
    • Line 125: warning: cyclomatic complexity 45 of function (*ar_MA).RangePluralRule() is high (> 15) (gocyclo)
    • ru_KZ/ru_KZ.go
    • Line 123: warning: cyclomatic complexity 31 of function (*ru_KZ).RangePluralRule() is high (> 15) (gocyclo)
    • Line 99: warning: cyclomatic complexity 17 of function (*ru_KZ).CardinalPluralRule() is high (> 15) (gocyclo)
    • uk/uk.go
    • Line 132: warning: cyclomatic complexity 31 of function (*uk).RangePluralRule() is high (> 15) (gocyclo)
    • Line 99: warning: cyclomatic complexity 17 of function (*uk).CardinalPluralRule() is high (> 15) (gocyclo)
    • nb_SJ/nb_SJ.go
    • Line 354: warning: cyclomatic complexity 16 of function (*nb_SJ).FmtAccounting() is high (> 15) (gocyclo)
    • cy/cy.go
    • Line 139: warning: cyclomatic complexity 39 of function (*cy).RangePluralRule() is high (> 15) (gocyclo)
    • cs_CZ/cs_CZ.go
    • Line 123: warning: cyclomatic complexity 27 of function (*cs_CZ).RangePluralRule() is high (> 15) (gocyclo)
    • az_Cyrl/az_Cyrl.go
    • Line 111: warning: cyclomatic complexity 26 of function (*az_Cyrl).OrdinalPluralRule() is high (> 15) (gocyclo)
    • bs/bs.go
    • Line 126: warning: cyclomatic complexity 17 of function (*bs).RangePluralRule() is high (> 15) (gocyclo)
    • ga_IE/ga_IE.go
    • Line 127: warning: cyclomatic complexity 33 of function (*ga_IE).RangePluralRule() is high (> 15) (gocyclo)
    • sl_SI/sl_SI.go
    • Line 126: warning: cyclomatic complexity 31 of function (*sl_SI).RangePluralRule() is high (> 15) (gocyclo)
    • sr/sr.go
    • Line 126: warning: cyclomatic complexity 17 of function (*sr).RangePluralRule() is high (> 15) (gocyclo)
    • ar_SS/ar_SS.go
    • Line 125: warning: cyclomatic complexity 45 of function (*ar_SS).RangePluralRule() is high (> 15) (gocyclo)
    • ar_YE/ar_YE.go
    • Line 125: warning: cyclomatic complexity 45 of function (*ar_YE).RangePluralRule() is high (> 15) (gocyclo)
    • ar_IQ/ar_IQ.go
    • Line 125: warning: cyclomatic complexity 45 of function (*ar_IQ).RangePluralRule() is high (> 15) (gocyclo)
    • ar_SO/ar_SO.go
    • Line 125: warning: cyclomatic complexity 45 of function (*ar_SO).RangePluralRule() is high (> 15) (gocyclo)
    • bs_Cyrl/bs_Cyrl.go
    • Line 124: warning: cyclomatic complexity 17 of function (*bs_Cyrl).RangePluralRule() is high (> 15) (gocyclo)
    • hr/hr.go
    • Line 126: warning: cyclomatic complexity 17 of function (*hr).RangePluralRule() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!