|
1 | 1 | # Generated by internal/generate/servicesemgrep/main.go; DO NOT EDIT. |
2 | 2 | rules: |
3 | | - - id: redshift-in-test-name |
4 | | - languages: |
5 | | - - go |
6 | | - message: Include "Redshift" in test name |
7 | | - paths: |
8 | | - include: |
9 | | - - internal/service/redshift/*_test.go |
10 | | - patterns: |
11 | | - - pattern: func $NAME( ... ) |
12 | | - - metavariable-pattern: |
13 | | - metavariable: $NAME |
14 | | - patterns: |
15 | | - - pattern-not-regex: "^TestAccRedshift" |
16 | | - - pattern-regex: ^TestAcc.* |
17 | | - severity: WARNING |
18 | | - - id: redshift-in-const-name |
19 | | - languages: |
20 | | - - go |
21 | | - message: Do not use "Redshift" in const name inside redshift package |
22 | | - paths: |
23 | | - include: |
24 | | - - internal/service/redshift |
25 | | - patterns: |
26 | | - - pattern: const $NAME = ... |
27 | | - - metavariable-pattern: |
28 | | - metavariable: $NAME |
29 | | - patterns: |
30 | | - - pattern-regex: "(?i)Redshift" |
31 | | - severity: WARNING |
32 | | - - id: redshift-in-var-name |
33 | | - languages: |
34 | | - - go |
35 | | - message: Do not use "Redshift" in var name inside redshift package |
36 | | - paths: |
37 | | - include: |
38 | | - - internal/service/redshift |
39 | | - patterns: |
40 | | - - pattern: var $NAME = ... |
41 | | - - metavariable-pattern: |
42 | | - metavariable: $NAME |
43 | | - patterns: |
44 | | - - pattern-regex: "(?i)Redshift" |
45 | | - severity: WARNING |
46 | 3 | - id: redshiftdata-in-func-name |
47 | 4 | languages: |
48 | 5 | - go |
@@ -3293,6 +3250,67 @@ rules: |
3293 | 3250 | patterns: |
3294 | 3251 | - pattern-regex: "(?i)Synthetics" |
3295 | 3252 | severity: WARNING |
| 3253 | + - id: taxsettings-in-func-name |
| 3254 | + languages: |
| 3255 | + - go |
| 3256 | + message: Do not use "TaxSettings" in func name inside taxsettings package |
| 3257 | + paths: |
| 3258 | + include: |
| 3259 | + - internal/service/taxsettings |
| 3260 | + exclude: |
| 3261 | + - internal/service/taxsettings/list_pages_gen.go |
| 3262 | + patterns: |
| 3263 | + - pattern: func $NAME( ... ) |
| 3264 | + - metavariable-pattern: |
| 3265 | + metavariable: $NAME |
| 3266 | + patterns: |
| 3267 | + - pattern-regex: "(?i)TaxSettings" |
| 3268 | + - focus-metavariable: $NAME |
| 3269 | + - pattern-not: func $NAME($T *testing.T) |
| 3270 | + severity: WARNING |
| 3271 | + - id: taxsettings-in-test-name |
| 3272 | + languages: |
| 3273 | + - go |
| 3274 | + message: Include "TaxSettings" in test name |
| 3275 | + paths: |
| 3276 | + include: |
| 3277 | + - internal/service/taxsettings/*_test.go |
| 3278 | + patterns: |
| 3279 | + - pattern: func $NAME( ... ) |
| 3280 | + - metavariable-pattern: |
| 3281 | + metavariable: $NAME |
| 3282 | + patterns: |
| 3283 | + - pattern-not-regex: "^TestAccTaxSettings" |
| 3284 | + - pattern-regex: ^TestAcc.* |
| 3285 | + severity: WARNING |
| 3286 | + - id: taxsettings-in-const-name |
| 3287 | + languages: |
| 3288 | + - go |
| 3289 | + message: Do not use "TaxSettings" in const name inside taxsettings package |
| 3290 | + paths: |
| 3291 | + include: |
| 3292 | + - internal/service/taxsettings |
| 3293 | + patterns: |
| 3294 | + - pattern: const $NAME = ... |
| 3295 | + - metavariable-pattern: |
| 3296 | + metavariable: $NAME |
| 3297 | + patterns: |
| 3298 | + - pattern-regex: "(?i)TaxSettings" |
| 3299 | + severity: WARNING |
| 3300 | + - id: taxsettings-in-var-name |
| 3301 | + languages: |
| 3302 | + - go |
| 3303 | + message: Do not use "TaxSettings" in var name inside taxsettings package |
| 3304 | + paths: |
| 3305 | + include: |
| 3306 | + - internal/service/taxsettings |
| 3307 | + patterns: |
| 3308 | + - pattern: var $NAME = ... |
| 3309 | + - metavariable-pattern: |
| 3310 | + metavariable: $NAME |
| 3311 | + patterns: |
| 3312 | + - pattern-regex: "(?i)TaxSettings" |
| 3313 | + severity: WARNING |
3296 | 3314 | - id: timestreaminfluxdb-in-func-name |
3297 | 3315 | languages: |
3298 | 3316 | - go |
|
0 commit comments