Open dylang opened 2 months ago
I suggest adding an optional option:
export type Options = {
dryRun: boolean;
fixMe: boolean;
customCommentCallback?: (args: { filename: string; ruleName: string; }) => string | boolean;
}
Which override the fixMe
option per file / rule and enable to use custom comments when returning a string.
I'm not sure to have the time to add this soon, but feel free to contribute
I like that even better, then the FIXME could include a ticket number or developer responsible. 😄
I can look into trying to add this possibly next week.
I'm using this programmatically, and it would be nice if we had control to sometimes not write the comment.
For example: