Skip to content

Support for i <= n #38

@ccoVeille

Description

@ccoVeille

The pattern is not common, but what about detecting

for i := 0 ; i <= 9 ; i++ {

}

and suggest fixing it with

for i := range 10 {

}

Here are some examples

https://github.com/search?q=%22for+i+%3A%3D+0+%3B+i+%3C%3D+5+%3B+i%2B%2B+%7B%22+language%3Ago&type=code
https://github.com/search?q=%22for+i+%3A%3D+0+%3B+i+%3C%3D+10+%3B+i%2B%2B+%7B%22+language%3Ago&type=code

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions