All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.l10n.py.rules.python.PreIncrementDecrement.html Maven / Gradle / Ivy

Python has no pre/post increment/decrement operator. For instance, x++ and x-- will fail to parse. More importantly, ++x and --x will do nothing. To increment a number, simply write x += 1.

Noncompliant Code Example

++x # Noncompliant

Compliant Solution

x += 1




© 2015 - 2025 Weber Informatics LLC | Privacy Policy