Skip to content

A new rule to warn against nesting Path.Combine. #226

@brian-reichle

Description

@brian-reichle

I encountered a couple of places where someone nested Path.Combine and thought we should probably have a rule that guides people to inline them.

so:

var path = Path.Combine(Path.Combine(rootPath, "Foo"), "Bar");

becomes:

var path = Path.Combine(rootPath, "Foo", "Bar");

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions