-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
spec(rubocop): Add rubocop autocomplete #2189
Conversation
Overviewsrc/rubocop.ts:Info:Single Functions:postProcess: function (out) {
const cops = out.split("\n\n").map((cop) => {
const lines = cop.split("\n");
const nameIndex = lines.findIndex((line) => !line.startsWith("#"));
const autocorrect = lines
.slice(0, nameIndex)
.find((line) => line === "# Supports --autocorrect");
const restOfLines = lines.slice(nameIndex);
return {
autocorrect,
name: restOfLines[0].slice(0, -1),
enabled:
restOfLines
.find((line) => line.includes("Enabled:"))
?.split("Enabled:")?.[1]
?.trim() === "true",
};
});
return cops.map((cop) => ({ name: cop.name }));
} URLs:
|
Hello @Zeko369,
Please add a 👍 as a reaction to this comment to show that you read this. |
@@ -1,7 +1,7 @@ | |||
{ | |||
"editor.defaultFormatter": "esbenp.prettier-vscode", | |||
"editor.codeActionsOnSave": { | |||
"source.fixAll.eslint": true | |||
"source.fixAll.eslint": "explicit" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was done by vscode automatically
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.