fork/cargo

git clone https://git.julia.blue/fork/cargo

Weihang Lochore(gh): Add new-lint issue template (#15575)68db37499

0.90.0
1.1 KiB48 linesraw
1name: New lint suggestion
2description: Suggest a new Cargo lint.
3labels: ["A-new-lint", "S-triage"]
4body:
5  - type: markdown
6    attributes:
7      value: Thank you for your lint idea!
8  - type: textarea
9    id: what
10    attributes:
11      label: What it does
12      description: What does this lint do?
13    validations:
14      required: true
15  - type: textarea
16    id: advantage
17    attributes:
18      label: Advantage
19      description: >
20        What is the advantage of the recommended code over the original code?
21      placeholder: |
22        - Remove bounds check inserted by ...
23        - Remove the need to duplicate/store ...
24        - Remove typo ...
25  - type: textarea
26    id: drawbacks
27    attributes:
28      label: Drawbacks
29      description: What might be possible drawbacks of such a lint?
30  - type: textarea
31    id: example
32    attributes:
33      label: Example
34      description: >
35        Include a short example showing when the lint should trigger together
36        with the improved code.
37      value: |
38        ```toml
39        <code>
40        ```
41
42        Could be written as:
43
44        ```toml
45        <code>
46        ```
47    validations:
48      required: true