app/jobs/extract_github_profile.rb
Method perform
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def perform(id)
client = Octokit::Client.new
if ENV['TRAVIS'].blank? && client.ratelimit[:remaining] < 1000
# If we have less than 1000 request remaining, delay this job
# We leaving 1000 for more critical tasks