From 83055b04411ba5ff534290b1ecac7977e18e88d9 Mon Sep 17 00:00:00 2001 From: Nahshon Unna-Tsameret Date: Sun, 10 Jul 2022 09:18:59 +0300 Subject: [PATCH] rename 'checkes' => 'assertions' --- ginkgo_linter.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ginkgo_linter.go b/ginkgo_linter.go index d7b6c93..6b532b4 100644 --- a/ginkgo_linter.go +++ b/ginkgo_linter.go @@ -30,7 +30,8 @@ import ( var Analyzer = &analysis.Analyzer{ Name: "ginkgolinter", Doc: `enforces standards of using ginkgo and gomega -currently, the linter searches for wrong length checks; e.g. +currently, the linter searches for wrong length assertions. We want to assert the item rather than its length. +For example: Expect(len(x).Should(Equal(1)) This should be replaced with: Expect(x).Should(HavelLen(1)`,