From f56f47db1e387e4dc90ad7487e540eaee7df712f Mon Sep 17 00:00:00 2001 From: goose Date: Fri, 5 Jan 2024 11:47:02 +0700 Subject: [PATCH] Debug_22 --- .rubocop.yml | 2 +- .template/addons/custom_cops/template.rb | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 5cde48d8..c9ebe87c 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -2,7 +2,7 @@ require: - rubocop-rails - rubocop-rspec - rubocop-performance - - ./custom_cops/required_inverse_of_relations.rb + - ./lib/custom_cops/required_inverse_of_relations.rb AllCops: Exclude: diff --git a/.template/addons/custom_cops/template.rb b/.template/addons/custom_cops/template.rb index 0a60781d..c7ced64f 100644 --- a/.template/addons/custom_cops/template.rb +++ b/.template/addons/custom_cops/template.rb @@ -2,8 +2,9 @@ require 'fileutils' -copy_file 'custom_cops/required_inverse_of_relations.rb', mode: :preserve +copy_file 'custom_cops/required_inverse_of_relations.rb', 'lib/custom_cops/required_inverse_of_relations.rb', + mode: :preserve -create_file 'lib/custom_cops/hello.world' do - '# No comment' -end +# create_file 'lib/custom_cops/hello.world' do +# '# No comment' +# end