From a8a8b52614d990fbba4543905561d35e2a79022e Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 11 Dec 2020 14:17:11 +0000 Subject: [PATCH] add Layout/LineLength to .rubocop.yml git-svn-id: http://svn.redmine.org/redmine/trunk@20619 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .rubocop.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.rubocop.yml b/.rubocop.yml index 1d6cc8fb5..d791b4d6e 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -45,6 +45,16 @@ Layout/EmptyLinesAroundAccessModifier: Layout/EmptyLineBetweenDefs: AllowAdjacentOneLineDefs: true +Layout/LineLength: + Enabled: true + IgnoredPatterns: ['\A\s+test \".+\" do\z', '\A\s*\#'] + Exclude: + - 'db/migrate/0*.rb' + - 'db/migrate/1*.rb' + - 'db/migrate/201*.rb' + - 'db/migrate/20200*.rb' + - 'lib/redmine/wiki_formatting/textile/redcloth3.rb' + Layout/RescueEnsureAlignment: Enabled: true Exclude: -- 2.39.5