From 17234443480bbd7d042a25df90c6d4667595af4e Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Fri, 6 Oct 2023 00:10:57 +0200 Subject: [PATCH] Make all RuboCop failed checks a TODO See the .rubocop_todo.yml. See also https://docs.rubocop.org/rubocop/usage/basic_usage.html#command-line-flags --- .rubocop.yml | 2 ++ .rubocop_todo.yml | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 .rubocop_todo.yml diff --git a/.rubocop.yml b/.rubocop.yml index 095f8b58..cee0b4d4 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,3 +1,5 @@ +inherit_from: .rubocop_todo.yml + # The behavior of RuboCop can be controlled via the .rubocop.yml # configuration file. It makes it possible to enable/disable # certain cops (checks) and to alter their behavior if they accept diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml new file mode 100644 index 00000000..7cfc3644 --- /dev/null +++ b/.rubocop_todo.yml @@ -0,0 +1,20 @@ +# This configuration was generated by +# `rubocop --auto-gen-config` +# on 2023-10-05 22:09:56 UTC using RuboCop version 1.56.4. +# The point is for the user to remove these configuration records +# one by one as the offenses are removed from the code base. +# Note that changes in the inspected code, or installation of new +# versions of RuboCop, may require this file to be generated again. + +# Offense count: 5 +Security/Eval: + Exclude: + - 'lib/slim/command.rb' + - 'lib/slim/translator.rb' + - 'test/literate/run.rb' + +# Offense count: 1 +# This cop supports unsafe autocorrection (--autocorrect-all). +Security/YAMLLoad: + Exclude: + - 'lib/slim/command.rb'