From 3c3341de50b45ad237ec5565172ac17dc3162379 Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Mon, 1 Jul 2024 18:48:25 +0200 Subject: [PATCH] Update CONTRIBUTING.md --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7b191c06..e6d9bb07 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -187,7 +187,7 @@ Describe a new checker in [checkers section](./README.md#checkers). **Autofix**: true.
**Enabled by default**: true.
-**Reason**: The `Error()` method on the `error` interface exists for humans, not code.
+**Reason**: Using testify methods will avoid the risk of null pointer exception that might happen with the use of the `Error()` method on the `error` interface.
**Related issues**: [#47](https://github.com/Antonboom/testifylint/issues/47) ---