Skip to content

[EC67] rule improvment : "++i" statement is not so bad #4

Open
@dedece35

Description

@dedece35

Describe the bug
The rule wants us to change "i++" to "++i" statement.
But often "i++" has a really functionnal usage like screenshot below.

Expected behavior
improve actual behaviour to detect if "i++" statement is used alone or not (example : in a concatenation string).
if alone, ok raise the issue. if not, don't raise issue because we don't know if "i++" has a functionnal usage or not.

Screenshots
i++

Software Versions

  • SonarQube Version: 10.3
  • Plugin Version: java plugin 1.4.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    🗃️ rulerule improvment or rule development or bug🚀 enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions