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

Add issue template for a rule change #2279

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

Add issue template for a rule change #2279

wants to merge 1 commit into from

Conversation

fregante
Copy link
Collaborator

It looks like most open issues are to request changes or options to existing rules, so I thought I'd create a template.

description: As rule could be improved or extended?
title: "`rule-name` should do xyz"
labels:
- enhacement
Copy link
Collaborator Author

@fregante fregante Feb 10, 2024

Choose a reason for hiding this comment

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

Suggested change
- enhacement
- enhancement

Alternatively, it could use a change request label like we have in Refined GitHub. For example it would better cover stuff like:

Copy link
Owner

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

Copy link
Collaborator Author

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

Copy link
Owner

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?
Copy link
Owner

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

"A rule"

This follows the "Bug report" format

Screenshot 3

description: As rule could be improved or extended?
title: "`rule-name` should do xyz"
labels:
- enhacement
Copy link
Owner

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.
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
description: Explain here what change or improvement you'd like.
description: Explain the improvement you would like to see.

Comment on lines +20 to +52
- 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';
}
```
Copy link
Owner

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?

Copy link
Collaborator Author

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:

but it's definitely needed if it's:

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

2 participants