Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linting - API #2149

Merged
merged 35 commits into from
Oct 21, 2024
Merged

Linting - API #2149

merged 35 commits into from
Oct 21, 2024

Conversation

nedtwigg
Copy link
Member

Spotless is still primarily a formatter, not a linter. But when formatting fails, it's more flexible to model those failures as lints so that the formatting can continue. For example, issues like

are difficult to resolve with our current model, because the only channel we have to communicate with the user is "this is the formatted content". Now we have two channels: "this is the formatted content" and "these are the problems we had".

At this point, the purpose of these lints is just to do formatting better. They are an implementation detail. If people start submitting PRs for more linters, perhaps it will turn into something more. Who knows!

@nedtwigg nedtwigg marked this pull request as draft May 30, 2024 19:28
@nedtwigg nedtwigg changed the title Linting API (take 2) Linting - API Jun 4, 2024
@nedtwigg nedtwigg marked this pull request as ready for review October 17, 2024 05:09
Base automatically changed from feat/prepare-for-lint-take-2 to main October 17, 2024 05:12
@nedtwigg nedtwigg marked this pull request as draft October 17, 2024 06:32
@nedtwigg nedtwigg marked this pull request as ready for review October 21, 2024 15:06
@nedtwigg
Copy link
Member Author

The next PR adapts all our existing steps and tests to use the Lint infrastructure

This PR shows the API, that API shows the fallout from it. I'm going to merge this one broken, then that one to fix it. Next up is a PR to add a "lint suppression" mechanism, and then it will be ready for the last beta before release!

@nedtwigg nedtwigg merged commit b2cbba2 into main Oct 21, 2024
3 of 5 checks passed
@nedtwigg nedtwigg deleted the feat/lint-take-2 branch October 21, 2024 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants