Skip to content

This should be detected as unnecessary variable #681

@Luro02

Description

@Luro02

Summary

See code example, where it would make sense to inline the variable

Lint Name

No response

Reproducer

Terrain terrain = new Terrain(width, height, fieldMatrix, rover, target);
this.navSystem.terrain = terrain;

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfalse-negativeA lint should trigger on code that is wrong.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions