From b215b340601c7e3167e9afb7b0ab2826f7ae6d91 Mon Sep 17 00:00:00 2001 From: Vitalii Elenhaupt Date: Mon, 13 Apr 2020 10:11:15 +0300 Subject: [PATCH] Disable new rules before the coming bugfix release --- src/ameba/rule/lint/bad_directive.cr | 1 + src/ameba/rule/style/is_a_nil.cr | 1 + 2 files changed, 2 insertions(+) diff --git a/src/ameba/rule/lint/bad_directive.cr b/src/ameba/rule/lint/bad_directive.cr index 76b6d358..d5245164 100644 --- a/src/ameba/rule/lint/bad_directive.cr +++ b/src/ameba/rule/lint/bad_directive.cr @@ -21,6 +21,7 @@ module Ameba::Rule::Lint struct BadDirective < Base properties do description "Reports bad comment directives" + enabled false end AVAILABLE_ACTIONS = InlineComments::Action.names.map(&.downcase) diff --git a/src/ameba/rule/style/is_a_nil.cr b/src/ameba/rule/style/is_a_nil.cr index 18653bbc..0f19f1ae 100644 --- a/src/ameba/rule/style/is_a_nil.cr +++ b/src/ameba/rule/style/is_a_nil.cr @@ -23,6 +23,7 @@ module Ameba::Rule::Style struct IsANil < Base properties do description "Disallows calls to `is_a?(Nil)` in favor of `nil?`" + enabled false end MSG = "Use `nil?` instead of `is_a?(Nil)`"