|
| 1 | +title: Add XXX linter |
| 2 | +body: |
| 3 | + - type: markdown |
| 4 | + attributes: |
| 5 | + value: | |
| 6 | + Inside `golangci-lint`, we differentiate two types of analyzers: |
| 7 | + - the linters (find problems with nearly zero false positives) |
| 8 | + - the detectors (detect potential problems and thus produce a majority of false positives) |
| 9 | +
|
| 10 | + The detectors are not allowed because of the number of false positives. |
| 11 | + - type: input |
| 12 | + id: repo-url |
| 13 | + attributes: |
| 14 | + label: Repository URL |
| 15 | + description: Add a link to the repository of the analyzer. |
| 16 | + validations: |
| 17 | + required: true |
| 18 | + - type: checkboxes |
| 19 | + id: analyzer-requirements |
| 20 | + attributes: |
| 21 | + label: Analyzer Requirements |
| 22 | + options: |
| 23 | + - label: The analyzer must be more than one month old. |
| 24 | + required: true |
| 25 | + - label: The usage of AI must be explicitly expressed inside the readme. |
| 26 | + required: true |
| 27 | + - label: It must use [`go/analysis`](https://golangci-lint.run/docs/contributing/new-linters/). |
| 28 | + required: true |
| 29 | + - label: It must not be a duplicate or too close to an existing analyzer. |
| 30 | + required: true |
| 31 | + - label: It must have a Go version inside the `go.mod` <= 1.25.0. |
| 32 | + required: true |
| 33 | + - label: The dependencies must be minimal. |
| 34 | + required: true |
| 35 | + - label: It must be available as a plugin. |
| 36 | + required: true |
| 37 | + - type: dropdown |
| 38 | + id: analyzer-goal |
| 39 | + attributes: |
| 40 | + label: Analyzer Goal |
| 41 | + description: What is the goal of the analyzer? |
| 42 | + options: |
| 43 | + - No goal |
| 44 | + - Finds bugs |
| 45 | + - Style |
| 46 | + - Other |
| 47 | + validations: |
| 48 | + required: true |
| 49 | + - type: textarea |
| 50 | + id: analyzer-description |
| 51 | + attributes: |
| 52 | + label: Analyzer Description |
| 53 | + description: A short description, no more than one or two lines. |
| 54 | + placeholder: Add the description here. |
| 55 | + validations: |
| 56 | + required: true |
| 57 | + - type: checkboxes |
| 58 | + id: license |
| 59 | + attributes: |
| 60 | + label: Analyzer License |
| 61 | + options: |
| 62 | + - label: AGPL is not allowed. |
| 63 | + required: true |
| 64 | + - label: The file must start with `LICENSE` (capitalized). |
| 65 | + required: true |
| 66 | + - label: 'The file must contain the required information by the license, e.g.: author, year, etc.' |
| 67 | + required: true |
| 68 | + - type: checkboxes |
| 69 | + id: analyzer-info |
| 70 | + attributes: |
| 71 | + label: Analyzer Details |
| 72 | + options: |
| 73 | + - label: It must have tests. |
| 74 | + required: true |
| 75 | + - label: It must not contain `init()`. |
| 76 | + required: true |
| 77 | + - label: It must not contain `panic()`. |
| 78 | + required: true |
| 79 | + - label: It must not contain `log.Fatal()`. |
| 80 | + required: true |
| 81 | + - label: It must not contain `os.Exit()`. |
| 82 | + required: true |
| 83 | + - label: It must not modify the AST. |
| 84 | + required: true |
| 85 | + - label: The configuration must not rely on external files. |
| 86 | + required: true |
| 87 | + - type: checkboxes |
| 88 | + id: repo-info |
| 89 | + attributes: |
| 90 | + label: Repository Details |
| 91 | + options: |
| 92 | + - label: 'It must have a [semver](https://semver.org/) tag, e.g.: `v1.0.0`, `v0.1.0` (`0.0.x` are not valid).' |
| 93 | + required: true |
| 94 | + - label: A tag must never be deleted or recreated. |
| 95 | + required: false |
| 96 | + - label: It must have a readme. |
| 97 | + required: true |
| 98 | + - label: The repository must have a CI. |
| 99 | + required: true |
| 100 | + - label: The CI must run on PR. |
| 101 | + required: true |
| 102 | + - label: The CI must run on the default branch. |
| 103 | + required: true |
| 104 | + - type: checkboxes |
| 105 | + id: repo-recommendations |
| 106 | + attributes: |
| 107 | + label: Repository Recommendations |
| 108 | + options: |
| 109 | + - label: It should have linting. |
| 110 | + required: false |
| 111 | + - label: It should have a `.gitignore` (IDE files, binaries, OS files, etc. should not be committed). |
| 112 | + required: false |
| 113 | + - label: Use `main` as the default branch name. |
| 114 | + required: false |
| 115 | + - type: checkboxes |
| 116 | + id: pr |
| 117 | + attributes: |
| 118 | + label: Pull Request |
| 119 | + description: You should not open a PR to add the analyzer before a maintainer approves your suggestion. |
| 120 | + options: |
| 121 | + - label: Yes, I will wait for the approval of a maintainer before creating a PR. |
| 122 | + required: true |
| 123 | + |
| 124 | + - type: markdown |
| 125 | + attributes: |
| 126 | + value: | |
| 127 | + **This checklist does not imply that we will accept the linter.** |
0 commit comments