org.sonar.l10n.py.rules.python.LongIntegerWithLowercaseSuffixUsage.html Maven / Gradle / Ivy
Why is this an issue?
The long suffix should always be written in uppercase, i.e. 'L', as the lowercase 'l' can easily be confused with the digit one '1'.
Noncompliant code example
return 10l // Noncompliant; easily confused with one zero one
Compliant solution
return 10L
© 2015 - 2024 Weber Informatics LLC | Privacy Policy