Skip to content

Commit

Permalink
#185 ruby lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Mar 4, 2024
1 parent c73d95e commit 9975da4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
8 changes: 7 additions & 1 deletion .rubocop.yml
Expand Up @@ -5,4 +5,10 @@ AllCops:
Layout/EmptyLineAfterGuardClause:
Enabled: false
Metrics/BlockLength:
Max: 30
Max: 30
Layout/ElseAlignment:
Enabled: false
Layout/EndAlignment:
Enabled: false
Layout/IndentationWidth:
Enabled: false
8 changes: 4 additions & 4 deletions steps/discover-repos.rb
Expand Up @@ -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],
Expand Down

0 comments on commit 9975da4

Please sign in to comment.