Skip to content

Files

Latest commit

 

History

History
11 lines (6 loc) · 377 Bytes

string-of-int.md

File metadata and controls

11 lines (6 loc) · 377 Bytes

Pattern: Dubious conversion of integer to string

Issue: -

Description

Explicit type conversion string(i) where i has an integer type other than rune might behave not as expected by the developer (e.g. string(42) is not "42"). This rule spot that kind of suspicious conversions.

Further Reading