From f9b85107c5c6fb822928ae79873cffd31006c2c0 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Tue, 12 Mar 2019 19:05:13 -0500 Subject: [PATCH] Tests are long for good reasons --- .rubocop.yml | 8 ++++++++ test/test_normalization.rb | 3 --- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index c9c7712..890bdce 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -4,6 +4,14 @@ AllCops: Metrics/LineLength: Max: 80 +Metrics/MethodLength: + Exclude: + - test/* + +Metrics/ClassLength: + Exclude: + - test/* + Layout/AlignHash: EnforcedHashRocketStyle: table EnforcedColonStyle: table diff --git a/test/test_normalization.rb b/test/test_normalization.rb index 97d3e83..cd379d3 100644 --- a/test/test_normalization.rb +++ b/test/test_normalization.rb @@ -10,8 +10,6 @@ require "dhall/normalize" DIRPATH = Pathname.new(File.dirname(__FILE__)) TESTS = DIRPATH + "normalization/" -# Tests are not the place for abstractions, but for concretions -# rubocop:disable Metrics/MethodLength class TestNormalization < Minitest::Test Pathname.glob(TESTS + "**/*A.dhallb").each do |path| test = path.relative_path_from(TESTS).to_s.sub(/A\.dhallb$/, "") @@ -112,4 +110,3 @@ class TestNormalization < Minitest::Test ) end end -# rubocop:enable Metrics/MethodLength -- 2.45.2