voxpupuli/vox-pupuli-tasks

View on GitHub
app/models/travis.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method update_with_travis_payload has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def self.update_with_travis_payload(payload)
    Travis.where(travis_id: payload['id']).first_or_initialize.tap do |travis|
      travis.type                = payload['type']
      travis.state               = payload['state']
      travis.status              = payload['status']
Severity: Minor
Found in app/models/travis.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status