From 9975da490a1bd32835ba2ea96ec78b4e472f0440 Mon Sep 17 00:00:00 2001 From: Yegor Bugayenko Date: Mon, 4 Mar 2024 06:02:22 +0300 Subject: [PATCH] #185 ruby lint fix --- .rubocop.yml | 8 +++++++- steps/discover-repos.rb | 8 ++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index f30120ce..e22de1ae 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -5,4 +5,10 @@ AllCops: Layout/EmptyLineAfterGuardClause: Enabled: false Metrics/BlockLength: - Max: 30 \ No newline at end of file + Max: 30 +Layout/ElseAlignment: + Enabled: false +Layout/EndAlignment: + Enabled: false +Layout/IndentationWidth: + Enabled: false diff --git a/steps/discover-repos.rb b/steps/discover-repos.rb index 05858162..cd3fac79 100755 --- a/steps/discover-repos.rb +++ b/steps/discover-repos.rb @@ -75,10 +75,10 @@ break end json = if opts[:dry] - { items: page > 100 ? [] : [{ full_name: "foo/#{Random.hex(5)}", created_at: Time.now }] } - else - github.search_repositories(query, per_page: size, page: page) - end + { items: page > 100 ? [] : [{ full_name: "foo/#{Random.hex(5)}", created_at: Time.now }] } + else + github.search_repositories(query, per_page: size, page: page) + end json[:items].each do |i| found[i[:full_name]] = { full_name: i[:full_name],