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

Rule validaton request template (github issue) #1903

Merged
merged 5 commits into from
Jun 24, 2020
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/ISSUE_TEMPLATE/validation-rule-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
name : Validation rule request
about : A detailed specification for a new SARIF validation rule to add to the Sarif.Multitool validate command.
title : "[RULE REQUEST] Concise description of new analysis"
labels : validation-rule-request
assignees : ''

---

***********************************************************************************************************

# Rule Proposal: [Friendly Rule Name]
- *Synopsis* : [Brief summary of the rule, include code snippets if possible.]

- *[Violation Example]* : [Optional, Include code snippet which should trigger the violation.]

- *[No Violation Example]* : [Optional, Include code snippet which demostrates ideal condition (no violation).]

***********************************************************************************************************

### Rule metadata
- [*Id*] : [Should be formatted as `SARIF1nnn`, leave blank if unsure]
- *Name* : [Provide a friendly symbolic name for the rule in PascalCase.]
- *Level* : [Possible values are: `error`, `warning`, or `note`.]
- *Short description* : [Short description of the rule.]
Copy link

@ghost ghost Jun 4, 2020

Choose a reason for hiding this comment

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

No short description. Taken from the first sentence of the full description. #Closed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok. i will include this detail in the instruction so that the rule requester knows.


In reply to: 435554545 [](ancestors = 435554545)

Copy link

Choose a reason for hiding this comment

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

good idea.


In reply to: 435563131 [](ancestors = 435563131,435554545)

- *Full description* : [Full description, should describe usage of the rule and any other relevant information.]

- User-facing strings:
Each rule has one or more result message strings, each with symbolic name in PascalCase.
Copy link

@ghost ghost Jun 4, 2020

Choose a reason for hiding this comment

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

E [](start = 2, length = 1)

As authored, this will appear on the same line as "User-facing strings". Is that what you intended? If so, did you mean to enclose it in square brackets as you did for the other field descriptions? #Closed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh, yes - this is supposed to be an instruction! thanks, will fix.


In reply to: 435556107 [](ancestors = 435556107)


- *FirstMessage* : [Default user facing string.]
- *[SecondMessage]* : [Optional, Any conditional user facing string(s).]
- *[ThirdMessage]* : [Optional, Any conditional user facing string(s).]

***********************************************************************************************************

### Links/Additional Information
*[Optional, any Links/Additional Information.]*

### Implementation Notes
*[Optional, any suggestions regarding implementation.]*

### How to resolve
*[Optional, any tips on how to resolve the violation.]*


Copy link

@ghost ghost Jun 4, 2020

Choose a reason for hiding this comment

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

While you're at it, remove extra blank line. #Closed

***********************************************************************************************************
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would suggest to link a rule that we consider an example, or at least, write one as sample.