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

dev: clean up Executor #4404

Merged
merged 45 commits into from
Feb 23, 2024
Merged

dev: clean up Executor #4404

merged 45 commits into from
Feb 23, 2024

Conversation

ldez
Copy link
Member

@ldez ldez commented Feb 21, 2024

This is the first part of the rewrite of the command line (the Executor).
I split the changes into several PRs to ease the review.

This PR mainly moves, organizes, and splits the current code.
There are no major changes, but I spent a lot of time analyzing the code to be able to make the right changes to prepare for the new step.

I also removed all the deprecated flags.
They have been deprecated for multiple years (2018), so it is safe to remove them.

I made small commits to ease the review: each commit contains one change.
I recommend reviewing each commit first instead of the full change because it's easier to follow changes.

I already have the next PR, but this PR must be merged first.

related to #4397 (comment)

FYI with changes inside this PR, I can just move one line to fix the problem related to the configuration loading, but this will not fix the core of the problem: the maintainability of the code.
Also, this PR improves a bit the performance by removing one of the multiple builds of the linters (I will also fix that in another PR).

EDIT: --update-refs is the best rebase option ever!

@ldez ldez added topic: cleanup Related to code, process, or doc cleanup area: CLI Related to CLI labels Feb 21, 2024
@ldez ldez requested review from bombsimon and Antonboom February 21, 2024 14:18
@ldez ldez marked this pull request as draft February 21, 2024 14:20
@ldez

This comment was marked as outdated.

@ldez ldez marked this pull request as ready for review February 21, 2024 14:27
@ldez ldez force-pushed the feat/rewrite-executor-part1 branch from 4e28961 to 33416b2 Compare February 21, 2024 15:01
Copy link
Member

@bombsimon bombsimon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exceptionally good PR, really easy to review with the separate commits with small changes and the fact that this PR only includes refactoring. 5/5, would review again.

Added some comments but approving since I don't see them as blocking.

pkg/commands/executor.go Show resolved Hide resolved
pkg/lint/lintersdb/manager.go Outdated Show resolved Hide resolved
pkg/commands/run.go Show resolved Hide resolved
@ldez ldez merged commit 8c51979 into golangci:master Feb 23, 2024
12 checks passed
@ldez ldez deleted the feat/rewrite-executor-part1 branch February 23, 2024 19:38
This was referenced Feb 23, 2024
Copy link
Contributor

@Antonboom Antonboom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for 🐌
Fantastic job!

pkg/commands/executor.go Show resolved Hide resolved
pkg/commands/root.go Outdated Show resolved Hide resolved
pkg/lint/lintersdb/manager.go Show resolved Hide resolved
pkg/commands/executor.go Outdated Show resolved Hide resolved
@ldez ldez mentioned this pull request Mar 2, 2024
Antonboom pushed a commit to Antonboom/golangci-lint that referenced this pull request Mar 3, 2024
@ldez ldez added this to the next milestone Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: CLI Related to CLI topic: cleanup Related to code, process, or doc cleanup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants