Cane Results
Cane reports code quality threshold violations.
Methods exceeding allowed Abc complexity (23)
File | Method | Complexity |
---|---|---|
app/jobs/archive_petition_job.rb | ArchivePetitionJob#perform | 117 |
app/jobs/archive_signatures_job.rb | ArchiveSignaturesJob#perform | 61 |
app/models/signature.rb | Signature#search | 37 |
app/models/archived/signature.rb | Archived::Signature#search | 36 |
app/lib/deprecated_attributes.rb | DeprecatedAttributes::(anon)#deprecate_attribute | 30 |
app/models/constituency/api_query.rb | Constituency::ApiQuery#parse | 25 |
app/models/signature.rb | Signature#validate! | 23 |
app/jobs/update_signature_counts_job.rb | UpdateSignatureCountsJob#perform | 23 |
app/models/invalidation.rb | Invalidation#matching_signatures | 22 |
app/helpers/auto_link_helper.rb | AutoLinkHelper::AutoLinker#auto_link_urls | 22 |
app/models/petition_creator.rb | PetitionCreator#validate_creator | 20 |
app/models/invalidation.rb | Invalidation#invalidate! | 19 |
app/models/debate_outcome.rb | DebateOutcome#validate_commons_image_dimensions | 18 |
app/models/petition_creator.rb | PetitionCreator#save | 18 |
app/models/archived/debate_outcome.rb | Archived::DebateOutcome#validate_commons_image_dimensions | 18 |
app/lib/email_reminder.rb | EmailReminder.threshold_email_reminder | 17 |
app/jobs/backfill_constituencies_job.rb | BackfillConstituenciesJob#perform | 17 |
app/models/signature.rb | Signature#trending_ips_by_petition | 16 |
app/models/rate_limit.rb | RateLimit#exceeded? | 16 |
app/jobs/refresh_constituency_party_job.rb | RefreshConstituencyPartyJob#parse | 16 |
app/helpers/search_helper.rb | SearchHelper#paginate | 16 |
app/models/petition.rb | Petition#increment_signature_count! | 16 |
app/lib/email_reminder.rb | EmailReminder.special_resend_of_signature_email_validation | 16 |
Lines violating style requirements (3904)
Class definitions requiring comments (204)
Generated on 2019-09-22 14:30:40 -0400