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
Add issue template for a rule change #2279
base: main
Are you sure you want to change the base?
Conversation
description: As rule could be improved or extended? | ||
title: "`rule-name` should do xyz" | ||
labels: | ||
- enhacement |
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.
- enhacement | |
- enhancement |
Alternatively, it could use a change request
label like we have in Refined GitHub. For example it would better cover stuff like:
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.
I would go with improvement
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.
improvement
is a synonym of enhancement
The choice would be between "change" and "improve". Technically every change is an improvement, but in this case I'm seeing "change" as I don't agree with this rule, please alter it
, like
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.
Let's go with "change request" then. Doesn't really matter that much.
@@ -0,0 +1,56 @@ | |||
name: Rule change | |||
description: As rule could be improved or extended? |
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 sentence doesn't read well to me
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.
description: As rule could be improved or extended? | ||
title: "`rule-name` should do xyz" | ||
labels: | ||
- enhacement |
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.
I would go with improvement
required: true | ||
attributes: | ||
label: Description | ||
description: Explain here what change or improvement you'd like. |
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.
description: Explain here what change or improvement you'd like. | |
description: Explain the improvement you would like to see. |
- type: textarea | ||
validations: | ||
required: true | ||
attributes: | ||
label: Fail | ||
description: Specify examples of code that should be detected | ||
value: | | ||
```js | ||
var replace = 'me'; | ||
``` | ||
|
||
```js | ||
function foo() { | ||
var replace = 'me'; | ||
return replace; | ||
} | ||
``` | ||
- type: textarea | ||
validations: | ||
required: true | ||
attributes: | ||
label: Pass | ||
description: Specify examples of code that would be accepted in its place | ||
value: | | ||
```js | ||
const replace = 'me'; | ||
``` | ||
|
||
```js | ||
function foo() { | ||
return 'me'; | ||
} | ||
``` |
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.
Is this really necessary for this type of issue?
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.
The "good code" isn't needed if the suggestion is:
- "Also detect this other way to do the same thing"
but it's definitely needed if it's:
- "Also autofix this other similar but unrelated method"
It looks like most open issues are to request changes or options to existing rules, so I thought I'd create a template.