From 74ec4062364fc4fae0566a13f4acc954abd020fd Mon Sep 17 00:00:00 2001 From: Sebastian Pfitzner Date: Mon, 25 Sep 2023 10:45:52 +0200 Subject: [PATCH] fix: tweak isnothing msg --- src/linting/checks.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/linting/checks.jl b/src/linting/checks.jl index 97243cab..75f07c19 100644 --- a/src/linting/checks.jl +++ b/src/linting/checks.jl @@ -38,8 +38,8 @@ const LintCodeDescriptions = Dict{LintCodes,String}( IncorrectCallArgs => "Possible method call error.", IncorrectIterSpec => "A loop iterator has been used that will likely error.", - NothingEquality => "Compare against `nothing` using `isnothing`", - NothingNotEq => "Compare against `nothing` using `!isnothing`", + NothingEquality => "Compare against `nothing` using `isnothing` or `===`", + NothingNotEq => "Compare against `nothing` using `!isnothing` or `!==`", ConstIfCondition => "A boolean literal has been used as the conditional of an if statement - it will either always or never run.", EqInIfConditional => "Unbracketed assignment in if conditional statements is not allowed, did you mean to use ==?", PointlessOR => "The first argument of a `||` call is a boolean literal.",