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

Ban // autofix in linter #10491

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Ban // autofix in linter #10491

wants to merge 1 commit into from

Conversation

Jarred-Sumner
Copy link
Collaborator

What does this PR do?

Ban // autofix in linter

It is very lazy to commit // autofix comments

How did you verify your code works?

Copy link
Collaborator

@paperdave paperdave left a comment

Choose a reason for hiding this comment

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

great. autofix is an indication of forgetting something, be it using the variable or intentionally ignoring it.

@@ -3184,8 +3172,7 @@ pub const FileSink = struct {
return .{ .result = {} };
}

pub fn flushFromJS(this: *FileSink, globalThis: *JSGlobalObject, wait: bool) JSC.Maybe(JSValue) {
_ = wait; // autofix
pub fn flushFromJS(this: *FileSink, globalThis: *JSGlobalObject, _: bool) JSC.Maybe(JSValue) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think unused parameters should keep the variable name if comptime logic requires them. Makes it a little more clear what it would be used for. Otherwise the parameter should be completely removed from the function signature

Copy link
Collaborator

Choose a reason for hiding this comment

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

also interesting
Screenshot 2024-04-24 at 4 17 20 PM

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yeah

Copy link

@Jarred-Sumner, your commit has failing tests :(

💪 5 failing tests Darwin AARCH64

💻 2 failing tests Darwin x64 baseline

💻 1 failing tests Darwin x64

🐧💪 4 failing tests Linux AARCH64

🐧🖥 2 failing tests Linux x64 baseline

🐧🖥 2 failing tests Linux x64

🪟💻 12 failing tests Windows x64 baseline

View logs

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.

None yet

3 participants