@@ -178,7 +178,8 @@ Describe a new checker in [checkers section](./README.md#checkers).
178
178
179
179
** Autofix** : false. <br >
180
180
** Enabled by default** : true. <br >
181
- ** Reason** : The ` Error() ` method on the ` error ` interface exists for humans, not code.
181
+ ** Reason** : The ` Error() ` method on the ` error ` interface exists for humans, not code. <br >
182
+ ** Related issues** : [ #47 ] ( https://github.com/Antonboom/testifylint/issues/47 )
182
183
183
184
---
184
185
@@ -311,14 +312,16 @@ And similar idea for `assert.InEpsilonSlice` / `assert.InDeltaSlice`.
311
312
312
313
** Autofix** : true. <br >
313
314
** Enabled by default** : maybe? <br >
314
- ** Reason** : More appropriate ` testify ` API with clearer failure message.
315
+ ** Reason** : More appropriate ` testify ` API with clearer failure message. <br >
316
+ ** Related issues** : [ #76 ] ( https://github.com/Antonboom/testifylint/issues/76 )
315
317
316
318
---
317
319
318
320
### no-fmt-mess
319
321
320
322
** Autofix** : true. <br >
321
- ** Enabled by default** : maybe?
323
+ ** Enabled by default** : maybe? <br >
324
+ ** Related issues** : [ #33 ] ( https://github.com/Antonboom/testifylint/issues/33 )
322
325
323
326
Those who are new to ` testify ` may be discouraged by the duplicative API:
324
327
@@ -391,7 +394,8 @@ func (s *Suite) TestSomething() {
391
394
392
395
** Autofix** : true. <br >
393
396
** Enabled by default** : probably yes. <br >
394
- ** Reason** : Code simplification and consistency.
397
+ ** Reason** : Code simplification and consistency. <br >
398
+ ** Related issues** : [ #35 ] ( https://github.com/Antonboom/testifylint/issues/35 )
395
399
396
400
But need to investigate the technical difference and the reasons for the appearance of ` s.Run ` .
397
401
Also, maybe this case is already covered by [ suite-dont-use-pkg] ( README.md#suite-dont-use-pkg ) ?
@@ -422,7 +426,8 @@ type BalanceSubscriptionSuite struct {
422
426
423
427
** Autofix** : true. <br >
424
428
** Enabled by default** : false. <br >
425
- ** Reason** : Just unification of approach.
429
+ ** Reason** : Just unification of approach. <br >
430
+ ** Related issues** : [ #48 ] ( https://github.com/Antonboom/testifylint/issues/48 )
426
431
427
432
Also, maybe to check the configurable format of subtest name? Mess example:
428
433
@@ -470,7 +475,8 @@ assert.ErrorContains(t, err, "user") ❌
470
475
471
476
**Autofix**: true. <br>
472
477
**Enabled by default**: false. <br>
473
- **Reason**: Just for your reflection and suggestion.
478
+ **Reason**: Just for your reflection and suggestion. <br>
479
+ **Related issues**: [#75](https:// github.com/Antonboom/testifylint/issues/75)
474
480
475
481
I'm not sure if anyone uses `assert.Zero` – it looks strange and conflicts with `assert.Empty`:
476
482
0 commit comments