Skip to content

Break out lints into a separate binary #1027

Closed
@kamalmarhubi

Description

@kamalmarhubi

I just skimmed the open 1.0 blockers to get an idea of what's out there. #209 (Check for license) jumped out as one that is more like linting than formatting. This goes along with TODO / FIXME checking in my opinion.

From my perspective as a user, this functionality should be in a separate tool, let's say rustlint for lack of a better name.

In #798 (comment), @nrc said

Yeah, I have been considering a less monolithic vision recently. I'm not exactly how it should work and how to make it ergonomic though.

I understand an overarching motivation from @nrc's point of view is to replace make tidy in the rust repo (#20). We can still get there by breaking out those lints into a separate binary that lives under the rustfmt repo—most easily in the same crate. I haven't looked at control flow to see how mixed in these features are, but it seems like it should be possible given the code is already there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions