Rename to Lint/NotNilAfterNoBang

This commit is contained in:
Sijawusz Pur Rahnama 2022-11-01 02:13:04 +01:00
parent 9515e624c3
commit 63407c1bd1
2 changed files with 4 additions and 4 deletions

View file

@ -1,9 +1,9 @@
require "../../../spec_helper"
module Ameba::Rule::Lint
subject = NotNilWithNoBang.new
subject = NotNilAfterNoBang.new
describe NotNilWithNoBang do
describe NotNilAfterNoBang do
it "passes for valid cases" do
expect_no_issues subject, <<-CRYSTAL
(1..3).index(1).not_nil!(:foo)

View file

@ -16,10 +16,10 @@ module Ameba::Rule::Lint
# YAML configuration example:
#
# ```
# Lint/NotNilWithNoBang:
# Lint/NotNilAfterNoBang:
# Enabled: true
# ```
class NotNilWithNoBang < Base
class NotNilAfterNoBang < Base
include AST::Util
properties do