From 23c23c9968230fa5f1fa2a6ff5e41f3228da4dc9 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Tue, 6 Jul 2021 08:51:52 +0200 Subject: ci: skip the vendor directory for rubocop MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- .github/workflows/ci.yml | 2 +- .rubocop.yml | 13 +++++-------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 277577c..0319d98 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,7 +55,7 @@ jobs: - name: "Run tests" run: bundle exec rake - - name: "Produce tarball" + - name: "Create tarball" run: tar czvf site.tar.gz _site - name: "Upload tarball" diff --git a/.rubocop.yml b/.rubocop.yml index 3d4067a..f750353 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,7 +1,3 @@ -require: - - rubocop-performance - - rubocop-rake - AllCops: TargetRubyVersion: 3.0 @@ -12,6 +8,11 @@ AllCops: Exclude: - './_site/**/*' + - vendor/**/* + +require: + - rubocop-performance + - rubocop-rake Layout/HashAlignment: EnforcedHashRocketStyle: table @@ -23,10 +24,6 @@ Metrics/AbcSize: Metrics/MethodLength: Max: 20 -# This forces us to create a new object for no real reason. -Style/MultipleComparison: - Enabled: false - # It's actually quite cool to spell my own name correctly... Style/AsciiComments: Enabled: false -- cgit v1.2.3