Hotspot Results
Meta analysis of your metrics to find hotspots in your code.
Files | Classes | Methods |
---|---|---|
app/jobs/archive_petition_job.rb:6-110
«
annotate
»
Flog: complexity is 187.8 |
lib/tasks/data-generator.rake:10-103 : namespace(data)::task
«
annotate
»
Flog: complexity is 159.3 |
app/jobs/archive_petition_job.rb : ArchivePetitionJob#perform
«
annotate
»
Reek: found 13 code smells Saikuro: complexity is 19.0 Flog: complexity is 187.8 |
lib/tasks/data-generator.rake:10-103
«
annotate
»
Flog: complexity is 159.3 |
app/models/archived/signature.rb:122-159 : search
«
annotate
»
Flog: complexity is 75.7 |
lib/tasks/data-generator.rake:10-103 : namespace(data)#task#generate
«
annotate
»
Flog: complexity is 159.3 |
app/jobs/archive_signatures_job.rb:4-67
«
annotate
»
Flog: complexity is 105.3 |
app/jobs/archive_petition_job.rb : ArchivePetitionJob
«
annotate
»
Reek: found 15 code smells Saikuro: average complexity is 10.0 Flog: average complexity is 63.7 |
: Petition#none
Flog: average complexity is 152.2 |
app/models/signature.rb:200-239
«
annotate
»
Flog: complexity is 78.2 |
app/lib/deprecated_attributes.rb : DeprecatedAttributes
«
annotate
»
Reek: found 11 code smells Saikuro: complexity is 8.0 Flog: average complexity is 37.9 |
app/jobs/archive_signatures_job.rb : ArchiveSignaturesJob#perform
«
annotate
»
Reek: found 8 code smells Saikuro: complexity is 10.0 Flog: complexity is 105.3 |
app/models/archived/signature.rb:122-159
«
annotate
»
Flog: complexity is 75.7 |
app/jobs/archive_signatures_job.rb : ArchiveSignaturesJob
«
annotate
»
Reek: found 11 code smells Saikuro: average complexity is 5.5 Flog: average complexity is 37.9 |
: main#none
Flog: complexity is 115.6 |
app/lib/deprecated_attributes.rb:7-24
«
annotate
»
Flog: complexity is 72.3 |
: main
Flog: average complexity is 40.4 |
: Invalidation#none
Flog: complexity is 112.2 |
app/models/petition_creator.rb:168-192
«
annotate
»
Flog: complexity is 58.7 |
app/helpers/admin_helper.rb : AdminHelper
«
annotate
»
Reek: found 19 code smells Saikuro: average complexity is 20.0 Flog: average complexity is 5.4 |
: RateLimit#none
Flog: complexity is 88.0 |
app/helpers/auto_link_helper.rb:72-99
«
annotate
»
Flog: complexity is 50.3 |
app/lib/email_reminder.rb : EmailReminder
«
annotate
»
Reek: found 1 code smells Saikuro: average complexity is 3.3 Flog: average complexity is 17.5 |
app/lib/deprecated_attributes.rb : DeprecatedAttributes#deprecate_attribute
«
annotate
»
Reek: found 10 code smells Saikuro: complexity is 8.0 Flog: complexity is 72.3 |
app/models/archived/petition.rb:350-361
«
annotate
»
Flog: complexity is 45.5 |
app/models/signature.rb:46-55 : Signature::before_create
«
annotate
»
Flog: complexity is 19.2 |
app/models/signature.rb : Signature#search
«
annotate
»
Reek: found 4 code smells Flog: complexity is 78.2 |
app/models/petition.rb:326-337
«
annotate
»
Flog: complexity is 45.5 |
app/controllers/concerns/flash_render.rb : FlashRender
«
annotate
»
Reek: found 4 code smells Saikuro: complexity is 6.0 Flog: average complexity is 11.8 |
app/models/petition_creator.rb : PetitionCreator#validate_creator
«
annotate
»
Reek: found 3 code smells Saikuro: complexity is 13.0 Flog: complexity is 58.7 |
app/models/signature.rb:532-582
«
annotate
»
Flog: complexity is 43.6 |
app/models/debate_outcome.rb : DebateOutcome
«
annotate
»
Reek: found 14 code smells Saikuro: average complexity is 1.8 Flog: average complexity is 15.7 |
: Site#none
Flog: complexity is 70.7 |
app/models/archived/debate_outcome.rb:53-73
«
annotate
»
Flog: complexity is 42.9 |
app/models/archived/signature.rb:172-183 : unsubscribe!
«
annotate
»
Flog: complexity is 16.2 |
app/helpers/auto_link_helper.rb : AutoLinker#auto_link_urls
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 8.0 Flog: complexity is 50.3 |
app/helpers/admin_helper.rb:8-10
«
annotate
»
Saikuro: complexity is 39.0 Flog: complexity is 2.2 |
app/models/constituency/api_query.rb : ApiQuery
«
annotate
»
Reek: found 7 code smells Saikuro: average complexity is 2.8 Flog: average complexity is 11.9 |
app/jobs/update_signature_counts_job.rb : UpdateSignatureCountsJob#perform
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 8.0 Flog: complexity is 38.2 |
app/models/debate_outcome.rb:50-70
«
annotate
»
Flog: complexity is 39.6 |
app/models/constituency.rb:27-33 : Constituency::validate
«
annotate
»
Flog: complexity is 15.1 |
app/models/debate_outcome.rb : DebateOutcome#validate_commons_image_dimensions
«
annotate
»
Reek: found 10 code smells Saikuro: average complexity is 4.0 Flog: average complexity is 41.2 |
app/models/petition_creator.rb:38-71
«
annotate
»
Flog: complexity is 39.2 |
app/jobs/backfill_canonical_emails_job.rb : BackfillCanonicalEmailsJob
«
annotate
»
Reek: found 3 code smells Saikuro: complexity is 5.0 Flog: average complexity is 9.3 |
app/models/petition_creator.rb : PetitionCreator#save
«
annotate
»
Reek: found 4 code smells Saikuro: complexity is 6.0 Flog: complexity is 39.2 |
app/models/signature.rb:254-261
«
annotate
»
Flog: complexity is 38.7 |
app/jobs/backfill_signature_uuids_job.rb : BackfillSignatureUuidsJob
«
annotate
»
Reek: found 3 code smells Saikuro: complexity is 5.0 Flog: average complexity is 9.3 |
app/models/petition.rb : Petition#open_at_dissolution
«
annotate
»
Reek: found 1 code smells Flog: complexity is 45.5 |
app/models/signature.rb:308-324
«
annotate
»
Flog: complexity is 38.3 |
app/helpers/auto_link_helper.rb : AutoLinker
«
annotate
»
Reek: found 11 code smells Saikuro: average complexity is 2.5 Flog: average complexity is 10.5 |
app/models/archived/petition.rb:350-361 : Petition#calculate_petition_duration
«
annotate
»
Flog: complexity is 45.5 |
app/jobs/update_signature_counts_job.rb:15-57
«
annotate
»
Flog: complexity is 38.2 |
app/helpers/social_meta_helper.rb : SocialMetaHelper
«
annotate
»
Reek: found 1 code smells Saikuro: average complexity is 3.0 Flog: average complexity is 10.1 |
app/models/petition_creator.rb : PetitionCreator#validate_petition
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 7.0 Flog: complexity is 34.6 |
lib/tasks/errors.rake:3-37
«
annotate
»
Flog: complexity is 38.1 |
app/models/archived/signature.rb:45-46 : batch
«
annotate
»
Flog: complexity is 13.1 |
: AdminUser#none
Flog: complexity is 42.2 |
app/models/concerns/browseable.rb:158-165
«
annotate
»
Flog: complexity is 37.3 |
app/helpers/form_helper.rb : FormHelper
«
annotate
»
Reek: found 5 code smells Saikuro: average complexity is 2.0 Flog: average complexity is 10.3 |
app/models/concerns/browseable.rb : Search#inspect
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 4.0 Flog: complexity is 37.3 |
app/models/signature.rb:284-291
«
annotate
»
Flog: complexity is 37.1 |
app/models/signature_logs.rb : SignatureLogs
«
annotate
»
Reek: found 12 code smells Saikuro: average complexity is 2.0 Flog: average complexity is 10.1 |
app/helpers/admin_helper.rb:8-10 : AdminHelper#mandatory_field
«
annotate
»
Saikuro: complexity is 39.0 Flog: complexity is 2.2 |
app/models/signature.rb:274-281
«
annotate
»
Flog: complexity is 37.1 |
app/models/invalidation.rb : Invalidation
«
annotate
»
Reek: found 16 code smells Saikuro: average complexity is 2.0 Flog: average complexity is 9.9 |
app/models/constituency/api_query.rb : ApiQuery#parse
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 5.0 Flog: complexity is 35.1 |
app/models/petition.rb:472-508
«
annotate
»
Flog: complexity is 35.1 |
app/models/archived/signature.rb:97-99 : for_timestamp
«
annotate
»
Flog: complexity is 12.7 |
app/models/signature.rb : Signature#trending_ips_by_petition
«
annotate
»
Reek: found 3 code smells Flog: complexity is 38.3 |
app/models/constituency/api_query.rb:41-56
«
annotate
»
Flog: complexity is 35.1 |
app/models/archived/signature.rb:220-221 : normalize_user
«
annotate
»
Flog: complexity is 12.6 |
app/models/signature.rb:254-261 : Signature#fraudulent_domains
«
annotate
»
Flog: complexity is 38.7 |
app/models/petition_creator.rb:156-164
«
annotate
»
Flog: complexity is 34.6 |
app/helpers/search_helper.rb : SearchHelper
«
annotate
»
Reek: found 4 code smells Saikuro: average complexity is 2.7 Flog: average complexity is 9.1 |
lib/tasks/errors.rake:3-37 : namespace(errors)#task#precompile
«
annotate
»
Flog: complexity is 38.1 |
app/models/signature.rb:294-304
«
annotate
»
Flog: complexity is 33.8 |
app/models/government_response.rb : GovernmentResponse
«
annotate
»
Reek: found 4 code smells Saikuro: average complexity is 2.2 Flog: average complexity is 9.4 |
app/models/signature.rb:284-291 : Signature#trending_ips
«
annotate
»
Flog: complexity is 37.1 |
app/models/petition.rb:796-810
«
annotate
»
Flog: complexity is 33.5 |
app/controllers/concerns/flash_i18n.rb : FlashI18n
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 4.0 Flog: average complexity is 7.6 |
app/models/signature.rb:274-281 : Signature#trending_domains
«
annotate
»
Flog: complexity is 37.1 |
app/models/admin_user.rb:50-68
«
annotate
»
Flog: complexity is 30.4 |
app/models/archived/signature.rb:81-82 : for_name
«
annotate
»
Flog: complexity is 12.0 |
app/models/invalidation.rb : Invalidation#matching_signatures
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 10.0 Flog: complexity is 26.7 |
app/controllers/admin/parliaments_controller.rb:8-26
«
annotate
»
Flog: complexity is 30.3 |
lib/tasks/errors.rake:3-37 : namespace(errors)::task
«
annotate
»
Flog: average complexity is 11.9 |
app/models/admin_user.rb : AdminUser#update_with_password
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 6.0 Flog: complexity is 30.4 |
app/controllers/admin/archived/petitions_controller.rb:43-54
«
annotate
»
Flog: complexity is 28.9 |
app/lib/active_support/cache/atomic_dalli_store.rb : AtomicDalliStore
«
annotate
»
Reek: found 20 code smells Saikuro: average complexity is 3.5 Flog: average complexity is 7.5 |
: DebateOutcome#none
Flog: average complexity is 36.3 |
app/models/signature.rb:264-271
«
annotate
»
Flog: complexity is 28.7 |
app/jobs/stop_petitions_early_job.rb : StopPetitionsEarlyJob
«
annotate
»
Reek: found 4 code smells Saikuro: average complexity is 3.5 Flog: average complexity is 7.6 |
: Signature#none
Flog: average complexity is 36.2 |
lib/package_builder.rb:352-376
«
annotate
»
Flog: complexity is 28.2 |
app/presenters/petitions_csv_presenter.rb : PetitionsCSVPresenter
«
annotate
»
Reek: found 3 code smells Saikuro: average complexity is 2.0 Flog: average complexity is 9.2 |
app/models/petition.rb : Petition#increment_signature_count!
«
annotate
»
Reek: found 2 code smells Flog: complexity is 35.1 |
app/models/signature.rb:101-102
«
annotate
»
Flog: complexity is 28.0 |
app/helpers/page_title_helper.rb : PageTitleBuilder
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.8 Flog: average complexity is 9.3 |
lib/package_builder.rb : PackageBuilder#track_progress
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 6.0 Flog: complexity is 28.2 |
lib/package_builder.rb:409-417
«
annotate
»
Flog: complexity is 27.2 |
app/jobs/deliver_debate_outcome_email_job.rb : DeliverDebateOutcomeEmailJob
«
annotate
»
Reek: found 4 code smells Saikuro: average complexity is 2.0 Flog: average complexity is 8.6 |
app/models/signature.rb : Signature#trending_domains_by_petition
«
annotate
»
Reek: found 2 code smells Flog: complexity is 33.8 |
app/models/site.rb:146-165
«
annotate
»
Flog: complexity is 27.2 |
app/jobs/deliver_debate_scheduled_email_job.rb : DeliverDebateScheduledEmailJob
«
annotate
»
Reek: found 4 code smells Saikuro: average complexity is 2.0 Flog: average complexity is 8.6 |
app/models/petition.rb : Petition#cache_key
«
annotate
»
Reek: found 7 code smells Flog: complexity is 33.5 |
app/models/petition.rb:208-217
«
annotate
»
Flog: complexity is 26.8 |
app/jobs/deliver_threshold_response_email_job.rb : DeliverThresholdResponseEmailJob
«
annotate
»
Reek: found 4 code smells Saikuro: average complexity is 2.0 Flog: average complexity is 8.6 |
: PageTitleBuilder#none
Flog: complexity is 33.9 |
app/models/invalidation.rb:153-165
«
annotate
»
Flog: complexity is 26.7 |
app/models/signature.rb : Signature
«
annotate
»
Reek: found 51 code smells Saikuro: average complexity is 1.5 Flog: average complexity is 8.6 |
app/models/invalidation.rb : Invalidation#invalidate!
«
annotate
»
Reek: found 3 code smells Saikuro: complexity is 6.0 Flog: complexity is 26.3 |
app/models/invalidation.rb:168-188
«
annotate
»
Flog: complexity is 26.3 |
app/jobs/concerns/rate_limiting.rb : RateLimiting
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 2.0 Flog: average complexity is 8.7 |
app/helpers/page_title_helper.rb : PageTitleBuilder#options
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 7.0 Flog: complexity is 25.9 |
app/models/petition.rb:284-292
«
annotate
»
Flog: complexity is 26.1 |
app/jobs/fetch_country_register_job.rb : FetchCountryRegisterJob
«
annotate
»
Reek: found 8 code smells Saikuro: average complexity is 2.2 Flog: average complexity is 7.8 |
app/jobs/trending_ips_by_petition_job.rb : TrendingIpsByPetitionJob#perform
«
annotate
»
Reek: found 3 code smells Saikuro: complexity is 8.0 Flog: complexity is 23.6 |
app/lib/email_reminder.rb:3-20
«
annotate
»
Flog: complexity is 26.0 |
app/models/task.rb : Task
«
annotate
»
Reek: found 4 code smells Saikuro: average complexity is 2.7 Flog: average complexity is 7.4 |
app/jobs/trending_domains_by_petition_job.rb : TrendingDomainsByPetitionJob#perform
«
annotate
»
Reek: found 3 code smells Saikuro: complexity is 8.0 Flog: complexity is 23.6 |
app/helpers/page_title_helper.rb:38-55
«
annotate
»
Flog: complexity is 25.9 |
app/jobs/update_signature_counts_job.rb : UpdateSignatureCountsJob
«
annotate
»
Reek: found 4 code smells Saikuro: average complexity is 1.9 Flog: average complexity is 8.2 |
app/controllers/admin/parliaments_controller.rb : ParliamentsController#update
«
annotate
»
Reek: found 1 code smells Flog: complexity is 30.3 |
app/models/constituency.rb:82-98
«
annotate
»
Flog: complexity is 24.8 |
app/jobs/refresh_constituency_party_job.rb : RefreshConstituencyPartyJob
«
annotate
»
Reek: found 13 code smells Saikuro: average complexity is 2.3 Flog: average complexity is 7.5 |
lib/package_builder.rb : PackageBuilder#write_scripts
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 27.2 |
app/models/petition.rb:419-427
«
annotate
»
Flog: complexity is 24.5 |
app/jobs/backfill_constituencies_job.rb : BackfillConstituenciesJob
«
annotate
»
Reek: found 4 code smells Saikuro: average complexity is 2.7 Flog: average complexity is 6.9 |
: PetitionCSVPresenter#none
Flog: complexity is 29.5 |
app/jobs/trending_ips_by_petition_job.rb:9-27
«
annotate
»
Flog: complexity is 23.6 |
app/helpers/archived_petition_helper.rb : ArchivedPetitionHelper
«
annotate
»
Reek: found 6 code smells Saikuro: average complexity is 1.8 Flog: average complexity is 7.7 |
app/models/signature.rb:264-271 : Signature#fraudulent_ips
«
annotate
»
Flog: complexity is 28.7 |
app/jobs/trending_domains_by_petition_job.rb:8-26
«
annotate
»
Flog: complexity is 23.6 |
app/validators/postcode_validator.rb : PostcodeValidator
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 7.9 |
app/models/rate_limit.rb : RateLimit#exceeded?
«
annotate
»
Reek: found 3 code smells Saikuro: complexity is 8.0 Flog: complexity is 19.5 |
app/models/signature_logs.rb:139-155
«
annotate
»
Flog: complexity is 23.5 |
app/models/tag.rb : Tag
«
annotate
»
Reek: found 1 code smells Saikuro: average complexity is 1.0 Flog: average complexity is 8.8 |
app/models/signature_logs.rb : SignatureLogs#fetch_validate_events
«
annotate
»
Reek: found 3 code smells Saikuro: complexity is 4.0 Flog: complexity is 23.5 |
app/presenters/petitions_csv_presenter.rb:10-15
«
annotate
»
Flog: complexity is 23.3 |
app/lib/admin/task_runner.rb : TaskRunner
«
annotate
»
Reek: found 3 code smells Saikuro: average complexity is 1.6 Flog: average complexity is 7.9 |
app/models/signature.rb:101-102 : Signature#duplicate_emails
«
annotate
»
Flog: complexity is 28.0 |
app/controllers/admin/petitions_controller.rb:38-49
«
annotate
»
Flog: complexity is 23.2 |
app/models/petition_creator.rb : PetitionCreator
«
annotate
»
Reek: found 15 code smells Saikuro: average complexity is 1.7 Flog: average complexity is 7.4 |
app/jobs/backfill_constituencies_job.rb : BackfillConstituenciesJob#perform
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 6.0 Flog: complexity is 21.2 |
app/models/concerns/browseable.rb:192-201
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 20.9 |
app/models/trending_ip.rb:11-17 : TrendingIp::before_validation
«
annotate
»
Flog: complexity is 10.0 |
app/models/signature.rb : Signature#validate!
«
annotate
»
Reek: found 5 code smells Flog: average complexity is 26.6 |
app/presenters/api_pagination_links_presenter.rb:51-62
«
annotate
»
Saikuro: complexity is 4.0 Flog: complexity is 18.3 |
app/helpers/debate_outcome_helper.rb : DebateOutcomeHelper
«
annotate
»
Reek: found 5 code smells Saikuro: average complexity is 2.3 Flog: average complexity is 6.9 |
app/models/site.rb:146-165 : Site#defaults
«
annotate
»
Flog: complexity is 27.2 |
app/helpers/application_helper.rb:56-62
«
annotate
»
Flog: complexity is 22.1 |
app/models/admin_user.rb : AdminUser
«
annotate
»
Reek: found 6 code smells Saikuro: average complexity is 1.6 Flog: average complexity is 7.6 |
app/presenters/petitions_csv_presenter.rb : PetitionsCSVPresenter#render
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 3.0 Flog: complexity is 23.3 |
app/helpers/form_helper.rb:2-7
«
annotate
»
Flog: complexity is 21.8 |
app/presenters/petition_csv_presenter.rb : PetitionCSVPresenter
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.2 Flog: average complexity is 8.2 |
app/controllers/admin/petitions_controller.rb : PetitionsController#scope
«
annotate
»
Reek: found 5 code smells Flog: average complexity is 26.1 |
app/lib/email_reminder.rb:22-35
«
annotate
»
Flog: complexity is 21.6 |
app/jobs/import_constituencies_job.rb : ImportConstituenciesJob
«
annotate
»
Reek: found 11 code smells Saikuro: average complexity is 2.0 Flog: average complexity is 7.0 |
app/helpers/application_helper.rb : ApplicationHelper#referer_url
«
annotate
»
Reek: found 4 code smells Saikuro: complexity is 4.0 Flog: complexity is 22.1 |
app/controllers/admin/searches_controller.rb:22-35
«
annotate
»
Flog: complexity is 21.5 |
app/mailers/sponsor_mailer.rb : SponsorMailer
«
annotate
»
Reek: found 3 code smells Saikuro: average complexity is 1.0 Flog: average complexity is 7.9 |
app/models/petition.rb : Petition#in_moderation
«
annotate
»
Reek: found 1 code smells Flog: complexity is 26.8 |
app/jobs/backfill_constituencies_job.rb:4-20
«
annotate
»
Flog: complexity is 21.2 |
app/controllers/sponsors_controller.rb : SponsorsController
«
annotate
»
Reek: found 4 code smells Saikuro: average complexity is 2.1 Flog: average complexity is 6.4 |
app/controllers/concerns/flash_render.rb : FlashRender#render
«
annotate
»
Reek: found 3 code smells Saikuro: complexity is 6.0 Flog: complexity is 19.6 |
app/controllers/application_controller.rb:39-45
«
annotate
»
Flog: complexity is 21.1 |
app/models/archived/petition.rb:183-184 : in_need_of_marking_as_debated
«
annotate
»
Flog: complexity is 9.1 |
: Parliament#none
Flog: complexity is 26.1 |
app/models/statistics.rb:3-43
«
annotate
»
Flog: complexity is 20.9 |
app/models/archived/rejection.rb : Rejection
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.5 Flog: average complexity is 7.2 |
app/models/petition.rb:284-292 : Petition#trending
«
annotate
»
Flog: complexity is 26.1 |
app/models/signature_logs.rb:124-137
«
annotate
»
Flog: complexity is 20.6 |
app/controllers/admin/signatures_controller.rb : SignaturesController
«
annotate
»
Reek: found 40 code smells Saikuro: average complexity is 1.7 Flog: average complexity is 6.4 |
app/lib/email_reminder.rb:3-20 : EmailReminder#threshold_email_reminder
«
annotate
»
Flog: complexity is 26.0 |
app/models/signature_logs.rb:157-170
«
annotate
»
Flog: complexity is 20.6 |
app/models/admin_user_session.rb : AdminUserSession
«
annotate
»
Reek: found 1 code smells Saikuro: average complexity is 1.7 Flog: average complexity is 7.1 |
app/helpers/auto_link_helper.rb : AutoLinker#auto_link_email_addresses
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 6.0 Flog: complexity is 19.5 |
lib/package_builder.rb:235-260
«
annotate
»
Flog: complexity is 20.5 |
app/presenters/api_pagination_links_presenter.rb : ApiPaginationLinksPresenter
«
annotate
»
Reek: found 1 code smells Saikuro: average complexity is 1.6 Flog: average complexity is 7.2 |
app/helpers/form_helper.rb : FormHelper#form_row
«
annotate
»
Reek: found 3 code smells Saikuro: complexity is 3.0 Flog: complexity is 21.8 |
app/models/signature.rb:450-461
«
annotate
»
Flog: complexity is 20.3 |
app/models/rate_limit.rb : RateLimit
«
annotate
»
Reek: found 26 code smells Saikuro: average complexity is 1.6 Flog: average complexity is 6.4 |
lib/package_builder.rb : PackageBuilder#notify_appsignal
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 4.0 Flog: complexity is 20.5 |
app/models/signature.rb:469-480
«
annotate
»
Flog: complexity is 20.3 |
app/jobs/archive_petitions_job.rb : ArchivePetitionsJob
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 4.0 Flog: average complexity is 4.6 |
app/controllers/application_controller.rb : ApplicationController#url_without_format
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 3.0 Flog: complexity is 21.1 |
app/controllers/concerns/flash_render.rb:6-21
«
annotate
»
Flog: complexity is 19.6 |
app/validators/email_validator.rb : EmailValidator
«
annotate
»
Reek: found 6 code smells Saikuro: average complexity is 2.3 Flog: average complexity is 5.6 |
app/models/petition.rb:419-427 : Petition#popular_in
«
annotate
»
Flog: complexity is 24.5 |
app/helpers/auto_link_helper.rb:104-118
«
annotate
»
Flog: complexity is 19.5 |
app/models/constituency_petition_journal.rb : ConstituencyPetitionJournal
«
annotate
»
Reek: found 5 code smells Flog: average complexity is 8.0 |
app/helpers/archived_petition_helper.rb : ArchivedPetitionHelper#petition_duration_to_words
«
annotate
»
Reek: found 4 code smells Saikuro: complexity is 4.0 Flog: complexity is 19.1 |
app/models/rate_limit.rb:89-100
«
annotate
»
Flog: complexity is 19.5 |
lib/tasks/petitions.rake:51-55 : namespace(epets)::namespace(petitions)::task
«
annotate
»
Flog: average complexity is 8.7 |
app/helpers/search_helper.rb : SearchHelper#paginate
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 4.0 Flog: complexity is 19.1 |
lib/package_builder.rb:62-74
«
annotate
»
Saikuro: complexity is 5.0 Flog: complexity is 14.5 |
app/models/constituency.rb : Constituency
«
annotate
»
Reek: found 7 code smells Flog: average complexity is 7.8 |
: TaskRunner#none
Flog: complexity is 23.6 |
lib/package_builder.rb:28-45
«
annotate
»
Flog: complexity is 19.3 |
app/models/country_petition_journal.rb : CountryPetitionJournal
«
annotate
»
Reek: found 5 code smells Flog: average complexity is 7.9 |
app/models/signature_logs.rb : SignatureLogs#fetch_combined_events
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 2.0 Flog: complexity is 20.6 |
app/models/signature.rb:46-55
«
annotate
»
Flog: complexity is 19.2 |
app/models/domain.rb:17-20 : Domain::validate
«
annotate
»
Flog: complexity is 8.6 |
app/models/signature_logs.rb : SignatureLogs#fetch_create_events
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 2.0 Flog: complexity is 20.6 |
app/helpers/search_helper.rb:2-14
«
annotate
»
Flog: complexity is 19.1 |
app/mailers/petition_mailer.rb : PetitionMailer
«
annotate
»
Reek: found 23 code smells Saikuro: average complexity is 1.3 Flog: average complexity is 6.4 |
: Tag#none
Flog: complexity is 23.4 |
app/helpers/archived_petition_helper.rb:26-37
«
annotate
»
Flog: complexity is 19.1 |
app/controllers/admin/searches_controller.rb : SearchesController
«
annotate
»
Reek: found 1 code smells Flog: average complexity is 8.5 |
app/jobs/backfill_signature_uuids_job.rb : BackfillSignatureUuidsJob#perform
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 5.0 Flog: complexity is 17.5 |
app/models/constituency.rb:41-53
«
annotate
»
Flog: complexity is 18.8 |
app/jobs/deliver_petition_email_job.rb : DeliverPetitionEmailJob
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.5 Flog: average complexity is 6.4 |
app/jobs/backfill_canonical_emails_job.rb : BackfillCanonicalEmailsJob#perform
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 5.0 Flog: complexity is 17.5 |
lib/package_builder.rb:48-59
«
annotate
»
Flog: complexity is 18.7 |
app/jobs/trending_ips_by_petition_job.rb : TrendingIpsByPetitionJob
«
annotate
»
Reek: found 4 code smells Saikuro: average complexity is 2.0 Flog: average complexity is 5.6 |
app/models/concerns/browseable.rb:192-201 : Search#execute_search
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 20.9 |
app/models/concerns/taggable.rb:37-38
«
annotate
»
Saikuro: average complexity is 1.0 Flog: complexity is 17.7 |
app/helpers/application_helper.rb : ApplicationHelper
«
annotate
»
Reek: found 5 code smells Saikuro: average complexity is 1.3 Flog: average complexity is 5.9 |
app/presenters/api_pagination_links_presenter.rb:51-62 : ApiPaginationLinksPresenter#prev_url
«
annotate
»
Saikuro: complexity is 4.0 Flog: complexity is 18.3 |
app/controllers/sponsors_controller.rb:23-31
«
annotate
»
Saikuro: complexity is 3.0 Flog: complexity is 15.6 |
app/models/concerns/browseable.rb : Search
«
annotate
»
Reek: found 3 code smells Saikuro: average complexity is 1.3 Flog: average complexity is 6.0 |
app/lib/email_reminder.rb:22-35 : EmailReminder#special_resend_of_signature_email_validation
«
annotate
»
Flog: complexity is 21.6 |
app/controllers/concerns/bulk_verification.rb:30-32
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 17.5 |
app/jobs/trending_domains_by_petition_job.rb : TrendingDomainsByPetitionJob
«
annotate
»
Reek: found 4 code smells Saikuro: average complexity is 2.0 Flog: average complexity is 5.3 |
app/jobs/concerns/rate_limiting.rb : RateLimiting#perform
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 3.0 Flog: complexity is 18.2 |
app/jobs/concerns/rate_limiting.rb:10-25
«
annotate
»
Flog: complexity is 18.2 |
app/mailers/application_mailer.rb : ApplicationMailer
«
annotate
»
Reek: found 1 code smells Flog: complexity is 7.7 |
app/controllers/admin/searches_controller.rb:22-35 : SearchesController#search_params
«
annotate
»
Flog: complexity is 21.5 |
app/models/invalidation.rb:257-258
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 17.1 |
app/models/petition.rb : Petition
«
annotate
»
Reek: found 60 code smells Flog: average complexity is 6.9 |
app/jobs/refresh_constituency_party_job.rb : RefreshConstituencyPartyJob#parse
«
annotate
»
Reek: found 4 code smells Saikuro: complexity is 3.0 Flog: complexity is 17.3 |
app/controllers/concerns/flash_i18n.rb:4-17
«
annotate
»
Saikuro: complexity is 5.0 Flog: complexity is 13.1 |
app/lib/audit_logger.rb : AuditLogger
«
annotate
»
Reek: found 4 code smells Saikuro: average complexity is 2.0 Flog: average complexity is 5.2 |
app/models/statistics.rb : Statistics#moderation
«
annotate
»
Reek: found 1 code smells Flog: complexity is 20.9 |
app/helpers/admin_helper.rb:4-6
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 16.8 |
app/jobs/notify_everyone_of_moderation_decision_job.rb : NotifyEveryoneOfModerationDecisionJob
«
annotate
»
Reek: found 4 code smells Saikuro: average complexity is 2.3 Flog: average complexity is 4.9 |
app/models/signature_logs.rb : SignatureLogs#overlapping?
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 4.0 Flog: complexity is 16.8 |
app/models/invalidation.rb:241-250
«
annotate
»
Flog: complexity is 17.7 |
app/jobs/notify_creator_that_parliament_is_dissolving_job.rb : NotifyCreatorThatParliamentIsDissolvingJob
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: average complexity is 5.6 |
app/models/invalidation.rb : Invalidation#date_range_scope
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 3.0 Flog: complexity is 17.7 |
app/models/signature_logs.rb:25-28
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 15.6 |
app/jobs/concerns/email_delivery.rb : EmailDelivery
«
annotate
»
Reek: found 3 code smells Saikuro: average complexity is 1.2 Flog: average complexity is 5.9 |
lib/package_builder.rb : PackageBuilder#upload!
«
annotate
»
Reek: found 3 code smells Saikuro: complexity is 1.0 Flog: complexity is 18.7 |
app/jobs/backfill_canonical_emails_job.rb:4-17
«
annotate
»
Flog: complexity is 17.5 |
app/jobs/notify_creator_of_sponsored_petition_being_stopped_job.rb : NotifyCreatorOfSponsoredPetitionBeingStoppedJob
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: average complexity is 5.6 |
app/models/signature.rb : Signature#find_similar
«
annotate
»
Reek: found 1 code smells Flog: complexity is 20.3 |
app/jobs/backfill_signature_uuids_job.rb:4-17
«
annotate
»
Flog: complexity is 17.5 |
app/jobs/notify_creator_of_validated_petition_being_stopped_job.rb : NotifyCreatorOfValidatedPetitionBeingStoppedJob
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: average complexity is 5.6 |
app/models/signature.rb : Signature#find_duplicate
«
annotate
»
Reek: found 1 code smells Flog: complexity is 20.3 |
app/jobs/refresh_constituency_party_job.rb:46-57
«
annotate
»
Flog: complexity is 17.3 |
app/models/concerns/taggable.rb : Taggable
«
annotate
»
Reek: found 1 code smells Saikuro: average complexity is 1.2 Flog: average complexity is 6.3 |
app/jobs/import_constituencies_job.rb : ImportConstituenciesJob#perform
«
annotate
»
Reek: found 3 code smells Saikuro: complexity is 3.0 Flog: complexity is 16.2 |
app/jobs/archived/deliver_petition_email_job.rb:12-16
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 14.8 |
app/controllers/admin/petitions_controller.rb : PetitionsController
«
annotate
»
Reek: found 27 code smells Saikuro: average complexity is 1.6 Flog: average complexity is 5.1 |
app/models/signature.rb:46-55 : Signature#before_create#if
«
annotate
»
Flog: complexity is 19.2 |
app/controllers/admin/moderation_delays_controller.rb:10-24
«
annotate
»
Flog: complexity is 16.8 |
app/models/archived/signature.rb:162-167 : subscribe!
«
annotate
»
Flog: complexity is 7.6 |
app/helpers/auto_link_helper.rb : AutoLinker#generate
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 5.0 Flog: complexity is 13.9 |
app/models/signature_logs.rb:116-121
«
annotate
»
Flog: complexity is 16.8 |
app/models/archived/signature.rb:59-64 : destroy!
«
annotate
»
Flog: complexity is 7.6 |
app/models/constituency.rb : Constituency#find_by_postcode
«
annotate
»
Reek: found 1 code smells Flog: complexity is 18.8 |
app/models/invalidation.rb:81-82
«
annotate
»
Flog: complexity is 16.6 |
app/models/archived/signature.rb:118-119 : sponsors
«
annotate
»
Flog: complexity is 7.6 |
app/helpers/cache_helper.rb : Keys#cache_key_for
«
annotate
»
Reek: found 3 code smells Saikuro: complexity is 5.0 Flog: complexity is 13.0 |
app/models/signature.rb:97-98
«
annotate
»
Flog: complexity is 16.6 |
app/models/archived/signature.rb:114-115 : creator
«
annotate
»
Flog: complexity is 7.6 |
app/models/concerns/taggable.rb:37-38 : Taggable#normalize_tags
«
annotate
»
Saikuro: average complexity is 1.0 Flog: complexity is 17.7 |
lib/tasks/petitions.rake:51-55
«
annotate
»
Flog: complexity is 16.4 |
lib/package_builder.rb : PackageBuilder
«
annotate
»
Reek: found 48 code smells Saikuro: average complexity is 1.3 Flog: average complexity is 5.3 |
app/lib/active_support/cache/atomic_dalli_store.rb : AtomicDalliStore#fetch
«
annotate
»
Reek: found 3 code smells Saikuro: complexity is 5.0 Flog: complexity is 12.7 |
app/jobs/import_constituencies_job.rb:11-21
«
annotate
»
Flog: complexity is 16.2 |
app/models/archived/petition.rb:191-192 : in_debate_queue
«
annotate
»
Flog: complexity is 7.4 |
app/controllers/sponsors_controller.rb:23-31 : SponsorsController#retrieve_petition
«
annotate
»
Saikuro: complexity is 3.0 Flog: complexity is 15.6 |
app/models/archived/signature.rb:172-183
«
annotate
»
Flog: complexity is 16.2 |
app/jobs/notify_trending_ip_job.rb : NotifyTrendingIpJob
«
annotate
»
Reek: found 7 code smells Saikuro: average complexity is 1.0 Flog: average complexity is 5.5 |
app/jobs/fetch_country_register_job.rb : FetchCountryRegisterJob#perform
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 3.0 Flog: complexity is 14.8 |
app/models/signature.rb:346-357
«
annotate
»
Flog: complexity is 16.2 |
app/lib/admin/task_runner.rb:23-28 : run
«
annotate
»
Flog: complexity is 7.3 |
app/controllers/concerns/bulk_verification.rb:30-32 : BulkVerification#selected_ids
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 17.5 |
app/models/domain.rb:129-136
«
annotate
»
Saikuro: complexity is 4.0 Flog: complexity is 12.1 |
app/jobs/notify_trending_domain_job.rb : NotifyTrendingDomainJob
«
annotate
»
Reek: found 7 code smells Saikuro: average complexity is 1.0 Flog: average complexity is 5.5 |
app/models/invalidation.rb:257-258 : Invalidation#calculate_percent_complete
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 17.1 |
app/models/constituency_petition_journal.rb:35-41
«
annotate
»
Flog: complexity is 15.8 |
app/models/domain.rb : Domain
«
annotate
»
Reek: found 9 code smells Saikuro: average complexity is 1.6 Flog: average complexity is 4.8 |
app/controllers/concerns/flash_i18n.rb:4-17 : FlashI18n#redirect_to
«
annotate
»
Saikuro: complexity is 5.0 Flog: complexity is 13.1 |
app/models/country_petition_journal.rb:31-37
«
annotate
»
Flog: complexity is 15.8 |
app/models/trending_domain.rb : TrendingDomain
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.0 Flog: average complexity is 5.9 |
app/jobs/deliver_debate_scheduled_email_job.rb : DeliverDebateScheduledEmailJob#create_email
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 2.0 Flog: average complexity is 15.2 |
app/models/trending_domain.rb:19-29
«
annotate
»
Flog: complexity is 15.7 |
app/models/site.rb : Site
«
annotate
»
Reek: found 15 code smells Saikuro: average complexity is 1.3 Flog: average complexity is 5.0 |
app/jobs/deliver_threshold_response_email_job.rb : DeliverThresholdResponseEmailJob#create_email
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 2.0 Flog: average complexity is 15.2 |
app/models/trending_ip.rb:30-40
«
annotate
»
Flog: complexity is 15.7 |
app/controllers/admin/parliaments_controller.rb : ParliamentsController
«
annotate
»
Reek: found 3 code smells Flog: average complexity is 6.6 |
app/jobs/deliver_debate_outcome_email_job.rb : DeliverDebateOutcomeEmailJob#create_email
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 2.0 Flog: average complexity is 15.2 |
app/models/signature.rb:105-106
«
annotate
»
Flog: complexity is 15.6 |
app/jobs/enqueue_petition_statistics_updates_job.rb : EnqueuePetitionStatisticsUpdatesJob
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 3.0 Flog: average complexity is 4.0 |
: Rejection#none
Flog: average complexity is 17.9 |
app/jobs/archived/deliver_threshold_response_email_job.rb:5-9
«
annotate
»
Flog: complexity is 15.2 |
app/models/location.rb : Location
«
annotate
»
Reek: found 2 code smells Flog: average complexity is 6.6 |
app/lib/active_support/cache/atomic_dalli_store.rb : AtomicDalliStore#ttl_add
«
annotate
»
Reek: found 3 code smells Saikuro: complexity is 5.0 Flog: complexity is 11.9 |
app/jobs/archived/deliver_debate_outcome_email_job.rb:5-9
«
annotate
»
Flog: complexity is 15.2 |
app/models/archived/petition.rb:64-70 : with_options
«
annotate
»
Flog: complexity is 7.1 |
app/helpers/admin_helper.rb:4-6 : AdminHelper#selected_tags
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 16.8 |
app/jobs/archived/deliver_debate_scheduled_email_job.rb:5-9
«
annotate
»
Flog: complexity is 15.2 |
app/models/petition.rb:97-103 : Petition::with_options
«
annotate
»
Flog: complexity is 7.1 |
: Constituency#none
Flog: complexity is 17.8 |
app/jobs/deliver_debate_outcome_email_job.rb:4-8
«
annotate
»
Flog: complexity is 15.2 |
app/jobs/concerns/email_all_petition_signatories.rb : EmailAllPetitionSignatories
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.4 Flog: average complexity is 5.3 |
app/models/government_response.rb : GovernmentResponse#default_responded_on
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 3.5 Flog: average complexity is 13.4 |
app/jobs/deliver_threshold_response_email_job.rb:4-8
«
annotate
»
Flog: complexity is 15.2 |
app/controllers/concerns/bulk_verification.rb : BulkVerification
«
annotate
»
Reek: found 1 code smells Saikuro: average complexity is 1.0 Flog: average complexity is 5.9 |
app/models/signature_logs.rb:25-28 : Log#timestamp
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 15.6 |
app/jobs/deliver_debate_scheduled_email_job.rb:4-8
«
annotate
»
Flog: complexity is 15.2 |
app/models/parliament.rb : Parliament
«
annotate
»
Reek: found 6 code smells Saikuro: average complexity is 1.3 Flog: average complexity is 4.8 |
app/controllers/admin/moderation_delays_controller.rb : ModerationDelaysController#create
«
annotate
»
Reek: found 2 code smells Flog: complexity is 16.8 |
app/models/constituency_petition_journal.rb:50-51
«
annotate
»
Flog: complexity is 15.2 |
app/models/signature_logs.rb : Log
«
annotate
»
Reek: found 4 code smells Saikuro: average complexity is 1.5 Flog: average complexity is 4.8 |
app/lib/active_support/cache/atomic_dalli_store.rb : AtomicDalliStore#ttl_set
«
annotate
»
Reek: found 3 code smells Saikuro: complexity is 5.0 Flog: complexity is 11.6 |
app/models/constituency.rb:27-33
«
annotate
»
Flog: complexity is 15.1 |
app/models/moderation_delay.rb : ModerationDelay
«
annotate
»
Reek: found 4 code smells Saikuro: average complexity is 2.0 Flog: average complexity is 4.2 |
app/lib/active_support/cache/atomic_dalli_store.rb : AtomicDalliStore#ttl_get
«
annotate
»
Reek: found 3 code smells Saikuro: complexity is 5.0 Flog: complexity is 11.6 |
app/helpers/cache_helper.rb:87-88
«
annotate
»
Saikuro: complexity is 11.0 Flog: complexity is 4.0 |
app/models/trending_ip.rb : TrendingIp
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.0 Flog: average complexity is 5.6 |
app/lib/active_support/cache/atomic_dalli_store.rb : AtomicDalliStore#ttl_delete
«
annotate
»
Reek: found 3 code smells Saikuro: complexity is 5.0 Flog: complexity is 11.6 |
app/helpers/admin_helper.rb:150-161
«
annotate
»
Flog: complexity is 14.9 |
app/models/statistics.rb : Statistics
«
annotate
»
Reek: found 4 code smells Saikuro: average complexity is 1.0 Flog: average complexity is 5.2 |
app/validators/email_validator.rb : EmailValidator#validate_each
«
annotate
»
Reek: found 3 code smells Saikuro: complexity is 4.0 Flog: complexity is 12.3 |
app/helpers/admin_helper.rb:165-176
«
annotate
»
Flog: complexity is 14.9 |
app/controllers/trackers_controller.rb : TrackersController
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.6 Flog: average complexity is 4.8 |
app/mailers/petition_mailer.rb : PetitionMailer#i18n_options
«
annotate
»
Reek: found 4 code smells Saikuro: average complexity is 4.5 Flog: average complexity is 11.7 |
app/models/site.rb:202-206
«
annotate
»
Flog: complexity is 14.9 |
app/models/concerns/browseable.rb : Facets
«
annotate
»
Reek: found 1 code smells Saikuro: average complexity is 1.7 Flog: average complexity is 4.9 |
app/models/constituency_petition_journal.rb : ConstituencyPetitionJournal##for
«
annotate
»
Saikuro: complexity is 17.0 |
app/models/site.rb:182-186
«
annotate
»
Flog: complexity is 14.9 |
lib/tasks/signatures.rake:4-8 : namespace(epets)::namespace(signatures)::task
«
annotate
»
Flog: complexity is 6.7 |
app/models/signature_logs.rb : SignatureLogs#logs
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 14.7 |
app/jobs/deliver_petition_email_job.rb:11-15
«
annotate
»
Flog: complexity is 14.8 |
app/helpers/petition_helper.rb : PetitionHelper
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.5 Flog: average complexity is 4.7 |
app/jobs/archived/deliver_petition_email_job.rb:12-16 : DeliverPetitionEmailJob#create_email
«
annotate
»
Saikuro: average complexity is 2.0 Flog: average complexity is 14.8 |
app/jobs/fetch_country_register_job.rb:12-22
«
annotate
»
Flog: complexity is 14.8 |
app/controllers/feedback_controller.rb : FeedbackController
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.9 Flog: average complexity is 4.4 |
app/models/invalidation.rb:81-82 : Invalidation#enqueued
«
annotate
»
Flog: complexity is 16.6 |
app/helpers/petition_helper.rb:14-22
«
annotate
»
Saikuro: complexity is 3.0 Flog: complexity is 11.7 |
app/jobs/email_job.rb : EmailJob
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.0 Flog: average complexity is 5.2 |
app/models/signature.rb:97-98 : Signature#duplicate
«
annotate
»
Flog: complexity is 16.6 |
app/models/signature_logs.rb:104-106
«
annotate
»
Flog: complexity is 14.7 |
app/models/archived.rb : Archived
«
annotate
»
Reek: found 1 code smells Saikuro: average complexity is 1.4 Flog: complexity is 5.0 |
app/models/signature.rb : Signature#unsubscribe!
«
annotate
»
Reek: found 4 code smells Saikuro: complexity is 3.0 Flog: average complexity is 12.5 |
app/helpers/date_time_helper.rb:37-44
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 12.7 |
app/lib/quiet_logger.rb : QuietLogger
«
annotate
»
Reek: found 3 code smells Saikuro: average complexity is 1.8 Flog: average complexity is 4.2 |
lib/tasks/petitions.rake:51-55 : namespace(epets)#namespace(petitions)#task#moderated_at
«
annotate
»
Flog: complexity is 16.4 |
lib/tasks/epets.rake:74-79
«
annotate
»
Flog: complexity is 14.6 |
app/jobs/petition_count_job.rb : PetitionCountJob
«
annotate
»
Reek: found 3 code smells Saikuro: average complexity is 2.0 Flog: average complexity is 4.0 |
app/models/domain.rb:129-136 : Domain#local
«
annotate
»
Saikuro: complexity is 4.0 Flog: complexity is 12.1 |
app/controllers/petitions_controller.rb:108-110
«
annotate
»
Saikuro: complexity is 3.0 Flog: complexity is 11.5 |
app/jobs/delete_petitions_job.rb : DeletePetitionsJob
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 3.0 Flog: average complexity is 3.4 |
app/models/invalidation.rb : Invalidation#name_scope
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 2.0 Flog: complexity is 13.1 |
app/models/signature.rb:372-376
«
annotate
»
Flog: complexity is 14.3 |
app/helpers/home_helper.rb : ActionedPetitionsDecorator
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.4 Flog: average complexity is 4.6 |
app/helpers/admin_helper.rb : AdminHelper#build_trending_ips
«
annotate
»
Reek: found 4 code smells Flog: complexity is 14.9 |
app/models/government_response.rb:19-26
«
annotate
»
Flog: complexity is 14.3 |
app/controllers/concerns/authentication.rb : Authentication
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.6 Flog: average complexity is 4.4 |
app/helpers/admin_helper.rb : AdminHelper#build_trending_domains
«
annotate
»
Reek: found 4 code smells Flog: complexity is 14.9 |
app/helpers/auto_link_helper.rb:24-38
«
annotate
»
Flog: complexity is 13.9 |
app/controllers/local_petitions_controller.rb : LocalPetitionsController
«
annotate
»
Reek: found 7 code smells Saikuro: average complexity is 1.4 Flog: average complexity is 4.1 |
app/models/constituency_petition_journal.rb:35-41 : ConstituencyPetitionJournal#reset_signature_counts_for
«
annotate
»
Flog: complexity is 15.8 |
app/models/signature.rb:685-687
«
annotate
»
Flog: complexity is 13.9 |
app/helpers/moderation_helper.rb : ModerationHelper
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 1.0 Flog: complexity is 4.8 |
app/models/country_petition_journal.rb:31-37 : CountryPetitionJournal#reset_signature_counts_for
«
annotate
»
Flog: complexity is 15.8 |
app/controllers/admin/archived/petition_emails_controller.rb:10-25
«
annotate
»
Flog: complexity is 13.9 |
app/helpers/cache_helper.rb : Keys
«
annotate
»
Reek: found 8 code smells Saikuro: average complexity is 1.5 Flog: average complexity is 3.9 |
app/helpers/home_helper.rb : HomeHelper#fetch_trending_petitions
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 13.2 |
app/controllers/admin/archived/petition_emails_controller.rb:32-47
«
annotate
»
Flog: complexity is 13.9 |
lib/tasks/epets.rake:74-79 : namespace(epets)::namespace(site)::task
«
annotate
»
Flog: average complexity is 6.3 |
app/models/trending_domain.rb:19-29 : TrendingDomain#search
«
annotate
»
Flog: complexity is 15.7 |
app/models/petition.rb:607-619
«
annotate
»
Flog: complexity is 13.8 |
app/models/concerns/browseable.rb : Browseable
«
annotate
»
Reek: found 1 code smells Flog: complexity is 6.0 |
app/models/trending_ip.rb:30-40 : TrendingIp#search
«
annotate
»
Flog: complexity is 15.7 |
lib/package_builder.rb:484-496
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 12.8 |
app/helpers/date_time_helper.rb : DateTimeHelper
«
annotate
»
Reek: found 14 code smells Saikuro: average complexity is 1.3 Flog: average complexity is 3.9 |
app/models/invalidation.rb : Invalidation#percent_completed
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 4.0 Flog: complexity is 11.5 |
app/models/constituency_petition_journal.rb:60-62
«
annotate
»
Flog: complexity is 13.7 |
app/helpers/home_helper.rb : HomeHelper
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.6 Flog: average complexity is 4.0 |
app/models/signature.rb:105-106 : Signature#pending_rate
«
annotate
»
Flog: complexity is 15.6 |
app/models/country_petition_journal.rb:52-54
«
annotate
»
Flog: complexity is 13.7 |
app/controllers/application_controller.rb : ApplicationController
«
annotate
»
Reek: found 11 code smells Saikuro: average complexity is 1.2 Flog: average complexity is 4.0 |
: Domain#none
Flog: complexity is 15.4 |
app/models/petition.rb:511-527
«
annotate
»
Flog: complexity is 13.5 |
app/jobs/email_duplicate_signatures_email_job.rb : EmailDuplicateSignaturesEmailJob
«
annotate
»
Reek: found 1 code smells Saikuro: average complexity is 1.0 Flog: average complexity is 4.9 |
: SignatureLogs#none
Flog: complexity is 15.4 |
app/controllers/admin/signatures_controller.rb:16-23
«
annotate
»
Flog: complexity is 13.3 |
app/controllers/admin/moderation_delays_controller.rb : ModerationDelaysController
«
annotate
»
Reek: found 6 code smells Flog: average complexity is 5.2 |
app/helpers/home_helper.rb : ActionedPetitionsDecorator#generate_actioned
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 12.8 |
app/controllers/admin/signatures_controller.rb:92-99
«
annotate
»
Flog: complexity is 13.3 |
app/jobs/notify_creator_that_moderation_is_delayed_job.rb : NotifyCreatorThatModerationIsDelayedJob
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: average complexity is 4.8 |
app/models/constituency_petition_journal.rb:50-51 : ConstituencyPetitionJournal#with_signatures_for
«
annotate
»
Flog: complexity is 15.2 |
app/controllers/admin/signatures_controller.rb:74-81
«
annotate
»
Flog: complexity is 13.3 |
app/controllers/admin/invalidations_controller.rb : InvalidationsController
«
annotate
»
Reek: found 5 code smells Flog: average complexity is 5.1 |
app/models/constituency.rb : Constituency#refresh!
«
annotate
»
Reek: found 3 code smells Flog: average complexity is 14.2 |
app/controllers/admin/signatures_controller.rb:56-63
«
annotate
»
Flog: complexity is 13.3 |
app/jobs/close_petitions_early_job.rb : ClosePetitionsEarlyJob
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 1.0 Flog: average complexity is 4.4 |
app/models/constituency.rb:27-33 : Constituency#validate#on
«
annotate
»
Flog: complexity is 15.1 |
app/controllers/admin/signatures_controller.rb:36-43
«
annotate
»
Flog: complexity is 13.3 |
app/models/concerns/geoip_lookup.rb : ClassMethods
«
annotate
»
Reek: found 8 code smells Saikuro: average complexity is 1.4 Flog: average complexity is 3.6 |
: AdminUserSession#none
Flog: complexity is 15.0 |
app/models/site.rb:387-393
«
annotate
»
Flog: complexity is 13.2 |
app/controllers/admin/admin_users_controller.rb : AdminUsersController
«
annotate
»
Reek: found 2 code smells Flog: average complexity is 5.5 |
app/helpers/cache_helper.rb:87-88 : Keys#for
«
annotate
»
Saikuro: complexity is 11.0 Flog: complexity is 4.0 |
app/helpers/home_helper.rb:75-79
«
annotate
»
Flog: complexity is 13.2 |
app/models/concerns/perishable_token_generator.rb : PerishableTokenGenerator
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: average complexity is 3.5 |
app/models/country_petition_journal.rb : CountryPetitionJournal##for
«
annotate
»
Saikuro: complexity is 15.0 |
app/jobs/notify_trending_ip_job.rb:16-24
«
annotate
»
Flog: complexity is 13.1 |
app/mailers/admin_mailer.rb : AdminMailer
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: average complexity is 4.4 |
app/jobs/notify_trending_domain_job.rb : NotifyTrendingDomainJob#message
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 1.0 Flog: complexity is 13.1 |
app/jobs/notify_trending_domain_job.rb:16-24
«
annotate
»
Flog: complexity is 13.1 |
app/helpers/cache_helper.rb : Dependencies
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.5 Flog: average complexity is 3.6 |
lib/package_builder.rb : PackageBuilder#build!
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 3.0 Flog: average complexity is 11.5 |
app/models/invalidation.rb:197-201
«
annotate
»
Flog: complexity is 13.1 |
app/helpers/admin_hub_helper.rb : ActionCountsDecorator
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.0 Flog: average complexity is 4.1 |
app/jobs/notify_trending_ip_job.rb : NotifyTrendingIpJob#message
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 1.0 Flog: complexity is 13.1 |
app/models/archived/signature.rb:45-46
«
annotate
»
Flog: complexity is 13.1 |
app/models/archived/signature.rb:53-56 : column_name_for
«
annotate
»
Flog: complexity is 5.5 |
app/models/site.rb:202-206 : Site#default_moderate_url
«
annotate
»
Flog: complexity is 14.9 |
app/models/petition.rb:313-314
«
annotate
»
Flog: complexity is 13.1 |
app/controllers/admin/petition_emails_controller.rb : PetitionEmailsController
«
annotate
»
Reek: found 10 code smells Flog: average complexity is 4.6 |
app/models/site.rb:182-186 : Site#default_url
«
annotate
»
Flog: complexity is 14.9 |
app/models/signature.rb:73-74
«
annotate
»
Flog: complexity is 13.1 |
app/helpers/cache_helper.rb : CacheKey
«
annotate
»
Reek: found 2 code smells Flog: average complexity is 5.0 |
app/helpers/petition_helper.rb:14-22 : PetitionHelper#signatures_threshold_percentage
«
annotate
»
Saikuro: complexity is 3.0 Flog: complexity is 11.7 |
app/helpers/social_meta_helper.rb:2-9
«
annotate
»
Saikuro: complexity is 3.0 Flog: complexity is 10.1 |
app/jobs/feedback_email_job.rb : FeedbackEmailJob
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.0 Flog: average complexity is 4.1 |
app/models/rate_limit.rb : RateLimit#threshold_reached?
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 5.0 Flog: complexity is 9.2 |
app/helpers/social_meta_helper.rb:12-19
«
annotate
»
Saikuro: complexity is 3.0 Flog: complexity is 10.1 |
lib/health_check.rb : HealthCheck
«
annotate
»
Reek: found 9 code smells Saikuro: average complexity is 1.8 Flog: average complexity is 2.8 |
app/helpers/date_time_helper.rb:37-44 : DateTimeHelper#waiting_for_in_words
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 12.7 |
app/helpers/cache_helper.rb:105-114
«
annotate
»
Flog: complexity is 13.0 |
app/models/constituency/api_client.rb : ApiClient
«
annotate
»
Reek: found 5 code smells Saikuro: average complexity is 1.4 Flog: average complexity is 3.2 |
lib/tasks/epets.rake:74-79 : namespace(epets)#namespace(site)#task#signature_counts
«
annotate
»
Flog: complexity is 14.6 |
app/controllers/feedback_controller.rb:10-16
«
annotate
»
Saikuro: complexity is 4.0 Flog: complexity is 9.0 |
app/controllers/admin/domains_controller.rb : DomainsController
«
annotate
»
Reek: found 2 code smells Flog: average complexity is 4.8 |
: EmailDelivery#none
Flog: complexity is 14.5 |
app/controllers/admin/searches_controller.rb:2-9
«
annotate
»
Flog: complexity is 13.0 |
app/helpers/cache_helper.rb:147-148 : load_yaml
«
annotate
»
Flog: complexity is 5.4 |
app/controllers/petitions_controller.rb:108-110 : PetitionsController#redirect_to_archived_petition_if_archived
«
annotate
»
Saikuro: complexity is 3.0 Flog: complexity is 11.5 |
app/controllers/sponsors_controller.rb:35-41
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 10.9 |
app/models/archived/petition.rb:175-176 : with_debated_outcome
«
annotate
»
Flog: complexity is 5.4 |
: Keys#none
Flog: complexity is 14.3 |
app/models/task.rb:5-6
«
annotate
»
Saikuro: complexity is 3.0 Flog: complexity is 9.9 |
app/models/archived/petition.rb:205-206 : threshold_for_debate_reached
«
annotate
»
Flog: complexity is 5.4 |
app/models/signature.rb:372-376 : Signature#validated
«
annotate
»
Flog: complexity is 14.3 |
app/mailers/petition_mailer.rb:73-81
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 11.9 |
app/models/archived/petition.rb:209-210 : scheduled_for_debate
«
annotate
»
Flog: complexity is 5.4 |
lib/package_builder.rb : PackageBuilder#build_package
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 2.0 Flog: complexity is 11.6 |
app/helpers/home_helper.rb:31-36
«
annotate
»
Flog: complexity is 12.8 |
app/models/archived/signature.rb:93-94 : for_sector
«
annotate
»
Flog: complexity is 5.4 |
app/models/constituency/api_query.rb : ApiQuery#fetch
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 4.0 Flog: complexity is 9.4 |
app/models/location.rb:18-19
«
annotate
»
Flog: complexity is 12.8 |
app/models/archived/petition.rb:115-116 : with_response
«
annotate
»
Flog: complexity is 5.4 |
app/models/task.rb : Task#retry_lock
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 4.0 Flog: complexity is 9.3 |
app/models/location.rb:14-15
«
annotate
»
Flog: complexity is 12.8 |
app/models/archived/signature.rb:102-103 : need_emailing_for
«
annotate
»
Flog: complexity is 5.4 |
app/controllers/admin/signatures_controller.rb : SignaturesController#bulk_invalidate
«
annotate
»
Reek: found 2 code smells Flog: complexity is 13.3 |
app/lib/active_support/cache/atomic_dalli_store.rb:6-22
«
annotate
»
Flog: complexity is 12.7 |
app/models/archived/petition.rb:197-198 : debate_date_in_the_past
«
annotate
»
Flog: complexity is 5.4 |
app/controllers/admin/signatures_controller.rb : SignaturesController#bulk_validate
«
annotate
»
Reek: found 2 code smells Flog: complexity is 13.3 |
app/jobs/archive_petition_job.rb
«
annotate
»
Reek: found 15 code smells Saikuro: average complexity is 10.0 Flay: found 3 code duplications Roodi: found 7 design problems |
app/models/archived/petition.rb:201-202 : scheduled_debate_state
«
annotate
»
Flog: complexity is 5.4 |
app/controllers/admin/petition_emails_controller.rb : PetitionEmailsController#create
«
annotate
»
Reek: found 2 code smells Flog: average complexity is 13.2 |
app/models/concerns/browseable.rb:175-180
«
annotate
»
Saikuro: complexity is 3.0 Flog: complexity is 9.7 |
app/models/archived/signature.rb:224-225 : normalize_domain
«
annotate
»
Flog: complexity is 5.4 |
app/controllers/admin/petition_emails_controller.rb : PetitionEmailsController#update
«
annotate
»
Reek: found 2 code smells Flog: average complexity is 13.2 |
app/models/archived/signature.rb:97-99
«
annotate
»
Flog: complexity is 12.7 |
app/controllers/pages_controller.rb : PagesController
«
annotate
»
Reek: found 1 code smells Saikuro: average complexity is 2.0 Flog: average complexity is 3.3 |
lib/package_builder.rb:62-74 : PackageBuilder#deploy!
«
annotate
»
Saikuro: complexity is 5.0 Flog: average complexity is 8.9 |
app/models/signature.rb:145-147
«
annotate
»
Flog: complexity is 12.7 |
lib/tasks/constituencies.rake:18-20 : namespace(epets)::namespace(constituencies)::task
«
annotate
»
Flog: average complexity is 5.4 |
app/models/signature.rb:685-687 : Signature#rate
«
annotate
»
Flog: complexity is 13.9 |
app/models/archived/signature.rb:220-221
«
annotate
»
Flog: complexity is 12.6 |
app/lib/cloud_front_remote_ip.rb : CloudFrontGetIp
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 2.0 Flog: average complexity is 2.8 |
app/models/petition.rb : Petition#moderate
«
annotate
»
Reek: found 1 code smells Flog: complexity is 13.8 |
app/models/signature.rb:439-440
«
annotate
»
Flog: complexity is 12.6 |
app/models/archived/petition.rb:187-188 : mark_petitions_as_debated!
«
annotate
»
Flog: complexity is 5.2 |
app/models/country_petition_journal.rb : CountryPetitionJournal#unrecordable?
«
annotate
»
Reek: found 1 code smells Flog: complexity is 13.7 |
app/controllers/admin/petition_emails_controller.rb:32-47
«
annotate
»
Flog: complexity is 12.6 |
app/controllers/admin/debate_outcomes_controller.rb : DebateOutcomesController
«
annotate
»
Reek: found 6 code smells Flog: average complexity is 4.4 |
lib/package_builder.rb:484-496 : PackageBuilder#after_install_script
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 12.8 |
app/controllers/admin/petition_emails_controller.rb:10-25
«
annotate
»
Flog: complexity is 12.6 |
app/models/archived/petition/email.rb : Email
«
annotate
»
Reek: found 2 code smells Flog: average complexity is 4.8 |
: ConstituencyPetitionJournal#none
Flog: complexity is 13.8 |
app/models/archived/government_response.rb:22-27
«
annotate
»
Flog: complexity is 12.5 |
app/models/holiday.rb : Holiday
«
annotate
»
Reek: found 1 code smells Saikuro: average complexity is 1.0 Flog: average complexity is 3.9 |
app/helpers/auto_link_helper.rb : AutoLinker#auto_linked?
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 1.0 Flog: complexity is 12.0 |
app/helpers/cache_helper.rb:216-222
«
annotate
»
Flog: complexity is 12.4 |
app/controllers/admin/government_response_controller.rb : GovernmentResponseController
«
annotate
»
Reek: found 6 code smells Flog: average complexity is 4.2 |
app/jobs/stop_petitions_early_job.rb : StopPetitionsEarlyJob#send_notification
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 4.0 Flog: complexity is 8.9 |
app/controllers/petitions_controller.rb:62-67
«
annotate
»
Saikuro: complexity is 4.0 Flog: complexity is 8.4 |
app/controllers/admin/rate_limits_controller.rb : RateLimitsController
«
annotate
»
Reek: found 2 code smells Flog: average complexity is 4.7 |
app/models/constituency_petition_journal.rb : ConstituencyPetitionJournal#unrecordable?
«
annotate
»
Reek: found 1 code smells Flog: complexity is 13.7 |
app/models/petition.rb:389-390
«
annotate
»
Flog: complexity is 12.4 |
app/models/email_requested_receipt.rb : EmailRequestedReceipt
«
annotate
»
Reek: found 1 code smells Saikuro: average complexity is 1.5 Flog: average complexity is 3.3 |
app/controllers/admin/signatures_controller.rb : SignaturesController#bulk_subscribe
«
annotate
»
Reek: found 4 code smells Flog: average complexity is 12.6 |
app/models/petition.rb:658-664
«
annotate
»
Flog: complexity is 12.4 |
app/helpers/rejection_helper.rb : RejectionHelper
«
annotate
»
Reek: found 1 code smells Saikuro: average complexity is 2.0 Flog: average complexity is 3.0 |
app/models/petition.rb : Petition#decrement_signature_count!
«
annotate
»
Reek: found 1 code smells Flog: complexity is 13.5 |
app/models/concerns/browseable.rb:46-52
«
annotate
»
Saikuro: complexity is 3.0 Flog: complexity is 9.3 |
app/controllers/admin/sites_controller.rb : SitesController
«
annotate
»
Reek: found 2 code smells Flog: average complexity is 4.4 |
lib/package_builder.rb : PackageBuilder#create_deployment!
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 11.2 |
app/models/concerns/browseable.rb:136-138
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 10.3 |
app/jobs/archived/email_petitioners_job.rb : EmailPetitionersJob
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.0 Flog: average complexity is 3.6 |
app/controllers/admin/signatures_controller.rb : SignaturesController#bulk_unsubscribe
«
annotate
»
Reek: found 4 code smells Flog: average complexity is 12.6 |
app/mailers/petition_mailer.rb:156-171
«
annotate
»
Flog: complexity is 12.3 |
app/models/site.rb:417-419 : Site::validate
«
annotate
»
Flog: complexity is 4.9 |
app/controllers/admin/signatures_controller.rb : SignaturesController#bulk_destroy
«
annotate
»
Reek: found 4 code smells Flog: average complexity is 12.6 |
app/validators/email_validator.rb:4-12
«
annotate
»
Flog: complexity is 12.3 |
app/helpers/markdown_helper.rb : MarkdownHelper
«
annotate
»
Reek: found 4 code smells Saikuro: average complexity is 1.0 Flog: average complexity is 3.3 |
lib/package_builder.rb : PackageBuilder#deployment_progress
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 1.0 Flog: complexity is 11.9 |
app/helpers/auto_link_helper.rb:63-66
«
annotate
»
Flog: complexity is 12.0 |
app/controllers/admin/admin_controller.rb : AdminController
«
annotate
»
Reek: found 2 code smells Flog: average complexity is 4.5 |
: CountryPetitionJournal#none
Flog: complexity is 13.5 |
app/jobs/concerns/email_all_petition_signatories.rb:19-23
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 11.0 |
app/controllers/admin/statistics_controller.rb : StatisticsController
«
annotate
»
Reek: found 1 code smells Flog: average complexity is 4.8 |
: GovernmentResponse#none
Flog: average complexity is 13.4 |
app/models/archived/signature.rb:81-82
«
annotate
»
Flog: complexity is 12.0 |
app/helpers/cache_helper.rb : Fragment
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: average complexity is 3.8 |
app/jobs/stop_petitions_early_job.rb : StopPetitionsEarlyJob#perform
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 3.0 Flog: complexity is 9.8 |
app/models/signature.rb:129-130
«
annotate
»
Flog: complexity is 12.0 |
app/models/feedback.rb : Feedback
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: average complexity is 3.6 |
app/jobs/notify_everyone_of_moderation_decision_job.rb : NotifyEveryoneOfModerationDecisionJob#perform
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 3.0 Flog: complexity is 9.7 |
app/controllers/admin/invalidations_controller.rb:39-50
«
annotate
»
Flog: complexity is 11.9 |
lib/health_check_middleware.rb : HealthCheckMiddleware
«
annotate
»
Reek: found 1 code smells Saikuro: average complexity is 1.5 Flog: average complexity is 3.2 |
app/models/petition.rb:313-314 : Petition#in_need_of_closing
«
annotate
»
Flog: complexity is 13.1 |
app/lib/active_support/cache/atomic_dalli_store.rb:63-69
«
annotate
»
Flog: complexity is 11.9 |
app/controllers/concerns/form_tracking.rb : FormTracking
«
annotate
»
Reek: found 4 code smells Saikuro: average complexity is 1.0 Flog: average complexity is 3.0 |
app/models/signature.rb:73-74 : Signature#batch
«
annotate
»
Flog: complexity is 13.1 |
app/controllers/admin/archived/signatures_controller.rb:15-22
«
annotate
»
Flog: complexity is 11.9 |
app/helpers/cache_helper.rb : CacheHelper
«
annotate
»
Reek: found 2 code smells Flog: average complexity is 4.2 |
app/helpers/social_meta_helper.rb:2-9 : SocialMetaHelper#open_graph_tag
«
annotate
»
Saikuro: complexity is 3.0 Flog: complexity is 10.1 |
app/controllers/admin/archived/signatures_controller.rb:33-40
«
annotate
»
Flog: complexity is 11.9 |
app/controllers/admin/notes_controller.rb : NotesController
«
annotate
»
Reek: found 6 code smells Flog: average complexity is 3.8 |
app/helpers/social_meta_helper.rb:12-19 : SocialMetaHelper#twitter_card_tag
«
annotate
»
Saikuro: complexity is 3.0 Flog: complexity is 10.1 |
app/controllers/admin/archived/signatures_controller.rb:51-58
«
annotate
»
Flog: complexity is 11.9 |
lib/tasks/epets.rake:3-8 : namespace(epets)::task
«
annotate
»
Flog: average complexity is 4.6 |
app/jobs/refresh_constituency_party_job.rb : RefreshConstituencyPartyJob#load_members
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 3.0 Flog: complexity is 9.3 |
app/controllers/admin/rate_limits_controller.rb:11-16
«
annotate
»
Flog: complexity is 11.9 |
lib/postcode_sanitizer.rb : PostcodeSanitizer
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 3.6 |
app/jobs/refresh_constituency_party_job.rb : RefreshConstituencyPartyJob#perform
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 3.0 Flog: complexity is 9.6 |
app/controllers/admin/sites_controller.rb:11-16
«
annotate
»
Flog: complexity is 11.9 |
app/models/concerns/geoip_lookup.rb : GeoipLookup
«
annotate
»
Reek: found 1 code smells Saikuro: average complexity is 1.5 Flog: average complexity is 2.9 |
app/controllers/feedback_controller.rb:10-16 : FeedbackController#create
«
annotate
»
Saikuro: complexity is 4.0 Flog: complexity is 9.0 |
app/mailers/petition_mailer.rb:110-120
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 9.9 |
app/controllers/admin/locks_controller.rb : LocksController
«
annotate
»
Reek: found 4 code smells Flog: average complexity is 3.9 |
app/helpers/cache_helper.rb : CacheHelper#csv_cache
«
annotate
»
Reek: found 1 code smells Flog: complexity is 12.4 |
app/mailers/petition_mailer.rb:98-108
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 9.9 |
app/jobs/reset_petition_signature_count_job.rb : ResetPetitionSignatureCountJob
«
annotate
»
Reek: found 3 code smells Saikuro: average complexity is 1.0 Flog: average complexity is 3.0 |
app/controllers/admin/searches_controller.rb:2-9 : SearchesController#show
«
annotate
»
Flog: complexity is 13.0 |
lib/package_builder.rb:391-398
«
annotate
»
Flog: complexity is 11.9 |
app/helpers/admin_hub_helper.rb : AdminHubHelper
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.1 Flog: average complexity is 2.9 |
app/controllers/sponsors_controller.rb:35-41 : SponsorsController#retrieve_signature
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 10.9 |
app/presenters/api_pagination_links_presenter.rb:43-47
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 9.8 |
app/mailers/feedback_mailer.rb : FeedbackMailer
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 3.5 |
app/mailers/petition_mailer.rb:73-81 : PetitionMailer#notify_creator_of_closing_date_change
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 11.9 |
app/models/signature.rb:597-617
«
annotate
»
Flog: complexity is 11.8 |
app/controllers/admin/user_sessions_controller.rb : UserSessionsController
«
annotate
»
Reek: found 2 code smells Flog: average complexity is 4.2 |
app/models/location.rb:18-19 : Location#not_expired
«
annotate
»
Flog: complexity is 12.8 |
app/models/parliament.rb:19-20
«
annotate
»
Flog: complexity is 11.7 |
app/controllers/admin/trending_domains_controller.rb : TrendingDomainsController
«
annotate
»
Reek: found 2 code smells Flog: average complexity is 4.1 |
app/models/location.rb:14-15 : Location#not_pending
«
annotate
»
Flog: complexity is 12.8 |
app/models/parliament.rb:154-158
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 9.7 |
app/controllers/admin/petition_details_controller.rb : PetitionDetailsController
«
annotate
»
Reek: found 4 code smells Flog: average complexity is 3.8 |
app/models/concerns/browseable.rb:175-180 : Search#new_params
«
annotate
»
Saikuro: complexity is 3.0 Flog: complexity is 9.7 |
lib/package_builder.rb:95-106
«
annotate
»
Flog: complexity is 11.6 |
app/controllers/admin/holidays_controller.rb : HolidaysController
«
annotate
»
Reek: found 2 code smells Flog: average complexity is 4.1 |
app/models/signature.rb:145-147 : Signature#for_timestamp
«
annotate
»
Flog: complexity is 12.7 |
app/lib/active_support/cache/atomic_dalli_store.rb:55-61
«
annotate
»
Flog: complexity is 11.6 |
app/controllers/admin/trending_ips_controller.rb : TrendingIpsController
«
annotate
»
Reek: found 2 code smells Flog: average complexity is 4.1 |
app/jobs/archive_petitions_job.rb : ArchivePetitionsJob#perform
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 4.0 Flog: complexity is 8.2 |
app/lib/active_support/cache/atomic_dalli_store.rb:71-77
«
annotate
»
Flog: complexity is 11.6 |
app/jobs/notify_creators_that_moderation_is_delayed_job.rb : NotifyCreatorsThatModerationIsDelayedJob
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.5 Flog: average complexity is 2.6 |
app/models/signature.rb:439-440 : Signature#normalize_user
«
annotate
»
Flog: complexity is 12.6 |
app/lib/active_support/cache/atomic_dalli_store.rb:79-85
«
annotate
»
Flog: complexity is 11.6 |
app/jobs/notify_creators_that_parliament_is_dissolving_job.rb : NotifyCreatorsThatParliamentIsDissolvingJob
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.5 Flog: average complexity is 2.6 |
app/controllers/petitions_controller.rb:62-67 : PetitionsController#create
«
annotate
»
Saikuro: complexity is 4.0 Flog: complexity is 8.4 |
app/models/signature.rb:176-180
«
annotate
»
Flog: complexity is 11.5 |
app/jobs/debated_petitions_job.rb : DebatedPetitionsJob
«
annotate
»
Reek: found 3 code smells Saikuro: complexity is 1.0 Flog: average complexity is 2.7 |
app/models/petition.rb:389-390 : Petition#in_need_of_validating
«
annotate
»
Flog: complexity is 12.4 |
app/models/invalidation.rb:145-150
«
annotate
»
Flog: complexity is 11.5 |
app/models/constituency.rb:19-20 : Constituency::before_validation
«
annotate
»
Flog: average complexity is 4.3 |
lib/package_builder.rb : PackageBuilder#deployment_complete
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 1.0 Flog: complexity is 10.7 |
app/jobs/petition_count_job.rb:7-12
«
annotate
»
Saikuro: complexity is 4.0 Flog: complexity is 7.3 |
app/controllers/constituencies_controller.rb : ConstituenciesController
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: average complexity is 2.2 |
app/models/petition.rb:658-664 : Petition#validate_creator!
«
annotate
»
Flog: complexity is 12.4 |
app/mailers/sponsor_mailer.rb:2-9
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 10.2 |
app/controllers/admin/archived/schedule_debate_controller.rb : ScheduleDebateController
«
annotate
»
Reek: found 4 code smells Flog: average complexity is 3.5 |
app/models/concerns/browseable.rb:46-52 : Facets#facet_count_query
«
annotate
»
Saikuro: complexity is 3.0 Flog: complexity is 9.3 |
app/models/constituency_petition_journal.rb:20-21
«
annotate
»
Flog: complexity is 11.2 |
app/controllers/admin/petition_statistics_controller.rb : PetitionStatisticsController
«
annotate
»
Reek: found 2 code smells Flog: average complexity is 3.7 |
app/helpers/debate_outcome_helper.rb : DebateOutcomeHelper#debate_outcome_links
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 3.0 Flog: complexity is 9.1 |
app/models/country_petition_journal.rb:20-21
«
annotate
»
Flog: complexity is 11.2 |
lib/tasks/epets.rake:52-94 : namespace(epets)::namespace
«
annotate
»
Flog: average complexity is 4.1 |
: BulkVerification#none
Flog: complexity is 12.3 |
app/controllers/signatures_controller.rb:107-109
«
annotate
»
Saikuro: complexity is 3.0 Flog: complexity is 8.2 |
app/lib/job_logger.rb : JobLogger
«
annotate
»
Reek: found 1 code smells Saikuro: average complexity is 1.0 Flog: average complexity is 2.9 |
app/models/concerns/browseable.rb:136-138 : Search#scope
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 10.3 |
lib/tasks/petitions.rake:34-71
«
annotate
»
Flog: complexity is 11.2 |
app/models/concerns/browseable.rb : Filters
«
annotate
»
Reek: found 1 code smells Saikuro: average complexity is 1.0 Flog: average complexity is 2.8 |
app/controllers/sponsors_controller.rb : SponsorsController#build_signature
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 9.9 |
lib/package_builder.rb:123-130
«
annotate
»
Flog: complexity is 11.2 |
lib/tasks/constituencies.rake:1-20 : namespace
«
annotate
»
Flog: average complexity is 4.0 |
app/lib/quiet_logger.rb : QuietLogger#call
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 3.0 Flog: complexity is 8.7 |
app/jobs/notify_creator_of_validated_petition_being_stopped_job.rb:7-9
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 9.1 |
app/controllers/admin/profile_controller.rb : ProfileController
«
annotate
»
Reek: found 1 code smells Flog: average complexity is 3.9 |
app/controllers/signatures_controller.rb : SignaturesController#build_signature
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 9.9 |
app/jobs/notify_creator_of_sponsored_petition_being_stopped_job.rb:7-9
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 9.1 |
lib/tasks/bundle.rake:3-5 : namespace(bundle)::task
«
annotate
»
Flog: complexity is 3.9 |
app/controllers/concerns/flash_i18n.rb : FlashI18n#translate_flash
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 3.0 Flog: complexity is 8.8 |
app/jobs/notify_creator_that_parliament_is_dissolving_job.rb:7-9
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 9.1 |
lib/tasks/brakeman.rake:3-5 : namespace(brakeman)::task
«
annotate
»
Flog: complexity is 3.9 |
app/models/site.rb : Site#opened_at_for_closing
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 2.0 Flog: average complexity is 9.2 |
app/presenters/api_pagination_links_presenter.rb:34-39
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 9.1 |
app/controllers/admin/tags_controller.rb : TagsController
«
annotate
»
Reek: found 2 code smells Flog: average complexity is 3.6 |
app/models/admin_user.rb : AdminUser#destroy
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 3.0 Flog: complexity is 9.0 |
app/mailers/archived/petition_mailer.rb:87-98
«
annotate
»
Flog: complexity is 11.0 |
app/jobs/sponsor_signed_email_below_threshold_email_job.rb : SponsorSignedEmailBelowThresholdEmailJob
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: average complexity is 1.7 |
app/jobs/concerns/email_all_petition_signatories.rb:19-23 : ClassMethods#run_later_tonight
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 11.0 |
lib/health_check.rb:15-23
«
annotate
»
Flog: complexity is 11.0 |
app/jobs/sponsor_signed_email_on_threshold_email_job.rb : SponsorSignedEmailOnThresholdEmailJob
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: average complexity is 1.7 |
app/jobs/import_constituencies_job.rb : ImportConstituenciesJob#constituencies
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 9.5 |
app/controllers/admin/user_sessions_controller.rb:9-20
«
annotate
»
Flog: complexity is 11.0 |
lib/tasks/epets.rake:101-102 : namespace(epets)::namespace(cache)::task
«
annotate
»
Flog: complexity is 3.8 |
app/models/signature.rb:129-130 : Signature#for_name
«
annotate
»
Flog: complexity is 12.0 |
lib/health_check.rb:60-66
«
annotate
»
Saikuro: complexity is 5.0 Flog: complexity is 5.8 |
app/controllers/admin/logs_controller.rb : LogsController
«
annotate
»
Reek: found 4 code smells Flog: average complexity is 3.0 |
: TrendingIp#none
Flog: complexity is 12.0 |
app/jobs/concerns/email_delivery.rb:102-104
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 9.8 |
app/helpers/sharing_helper.rb : SharingHelper
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.0 Flog: average complexity is 2.3 |
app/jobs/concerns/email_delivery.rb : EmailDelivery#perform
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 9.5 |
lib/package_builder.rb:20-25
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 9.8 |
app/controllers/admin/moderation_controller.rb : ModerationController
«
annotate
»
Reek: found 2 code smells Flog: average complexity is 3.5 |
: PetitionsController#none
Flog: average complexity is 11.9 |
lib/package_builder.rb:381-388
«
annotate
»
Flog: complexity is 10.7 |
app/controllers/admin/petition_tags_controller.rb : PetitionTagsController
«
annotate
»
Reek: found 4 code smells Flog: average complexity is 3.1 |
app/helpers/cache_helper.rb : Dependencies#for
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 4.0 Flog: complexity is 7.4 |
app/jobs/concerns/email_all_petition_signatories.rb:63-66
«
annotate
»
Saikuro: complexity is 3.0 Flog: complexity is 7.7 |
app/helpers/cache_helper.rb:137-139 : fragments
«
annotate
»
Flog: complexity is 3.8 |
app/controllers/admin/invalidations_controller.rb:39-50 : InvalidationsController#update
«
annotate
»
Flog: complexity is 11.9 |
app/controllers/sponsors_controller.rb:62-68
«
annotate
»
Saikuro: complexity is 4.0 Flog: complexity is 6.7 |
app/helpers/auto_link_helper.rb:13-14 : generate
«
annotate
»
Flog: complexity is 3.7 |
app/controllers/local_petitions_controller.rb : LocalPetitionsController#redirect_to_constituency
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 9.6 |
app/models/archived/signature.rb:261-268
«
annotate
»
Flog: complexity is 10.7 |
app/controllers/admin/tasks_controller.rb : TasksController
«
annotate
»
Reek: found 1 code smells Flog: average complexity is 3.6 |
app/controllers/admin/sites_controller.rb:11-16 : SitesController#update
«
annotate
»
Flog: complexity is 11.9 |
app/models/signature.rb:635-642
«
annotate
»
Flog: complexity is 10.7 |
app/lib/cloud_front_remote_ip.rb : CloudFrontRemoteIp
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 1.0 Flog: average complexity is 2.1 |
app/controllers/admin/rate_limits_controller.rb:11-16 : RateLimitsController#update
«
annotate
»
Flog: complexity is 11.9 |
app/lib/active_support/cache/atomic_dalli_store.rb:34-38
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 8.6 |
app/jobs/invalidate_signatures_job.rb : InvalidateSignaturesJob
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 1.0 Flog: average complexity is 2.1 |
app/mailers/petition_mailer.rb:98-108 : PetitionMailer#notify_signer_of_debate_outcome
«
annotate
»
Saikuro: average complexity is 2.0 Flog: average complexity is 9.9 |
app/models/constituency_petition_journal.rb:44-46
«
annotate
»
Flog: complexity is 10.6 |
lib/tasks/countries.rake:4-6 : namespace(epets)::namespace(countries)::task
«
annotate
»
Flog: complexity is 3.6 |
app/mailers/petition_mailer.rb:110-120 : PetitionMailer#notify_creator_of_debate_outcome
«
annotate
»
Saikuro: average complexity is 2.0 Flog: average complexity is 9.9 |
app/models/country_petition_journal.rb:40-42
«
annotate
»
Flog: complexity is 10.6 |
app/models/site.rb:421-423 : Site::before_save
«
annotate
»
Flog: complexity is 3.6 |
: UpdateSignatureCountsJob#none
Flog: complexity is 11.8 |
app/jobs/email_duplicate_signatures_email_job.rb:9-11
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 9.6 |
lib/arel_extensions.rb : Predications
«
annotate
»
Reek: found 1 code smells Saikuro: average complexity is 1.0 Flog: average complexity is 2.2 |
app/presenters/api_pagination_links_presenter.rb:43-47 : ApiPaginationLinksPresenter#next_url
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 9.8 |
app/helpers/archived_petition_helper.rb:10-15
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 9.5 |
app/helpers/auto_link_helper.rb : AutoLinkHelper
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/helpers/debate_outcome_helper.rb : DebateOutcomeHelper#debate_outcome_image
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 2.0 Flog: complexity is 9.0 |
app/controllers/admin/moderation_delays_controller.rb:51-65
«
annotate
»
Flog: complexity is 10.5 |
app/controllers/admin/take_down_controller.rb : TakeDownController
«
annotate
»
Reek: found 2 code smells Flog: average complexity is 3.1 |
app/models/parliament.rb:19-20 : Parliament#archived
«
annotate
»
Flog: complexity is 11.7 |
app/controllers/admin/signatures_controller.rb:46-53
«
annotate
»
Flog: complexity is 10.5 |
app/helpers/signature_helper.rb : SignatureHelper
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.0 Flog: average complexity is 1.9 |
app/models/parliament.rb:154-158 : Parliament#schedule_closure!
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 9.7 |
app/controllers/admin/signatures_controller.rb:26-33
«
annotate
»
Flog: complexity is 10.5 |
app/models/archived/signature.rb:89-90 : for_postcode
«
annotate
»
Flog: complexity is 3.4 |
app/models/signature.rb:176-180 : Signature#missing_constituency_id
«
annotate
»
Flog: complexity is 11.5 |
lib/tasks/petitions.rake:27-29
«
annotate
»
Flog: complexity is 10.4 |
app/models/archived/signature.rb:69-70 : for_domain
«
annotate
»
Flog: complexity is 3.4 |
app/models/signature.rb : Signature#invalidate!
«
annotate
»
Reek: found 1 code smells Flog: average complexity is 11.0 |
app/controllers/archived/petitions_controller.rb:51-56
«
annotate
»
Flog: complexity is 10.4 |
app/models/archived/petition.rb:159-160 : debate_threshold_reached
«
annotate
»
Flog: complexity is 3.4 |
app/jobs/petition_count_job.rb:7-12 : PetitionCountJob#perform
«
annotate
»
Saikuro: complexity is 4.0 Flog: complexity is 7.3 |
app/models/petition.rb:728-730
«
annotate
»
Flog: complexity is 10.4 |
app/models/archived/petition.rb:151-152 : debated
«
annotate
»
Flog: complexity is 3.4 |
app/controllers/admin/signatures_controller.rb : SignaturesController#validate
«
annotate
»
Reek: found 2 code smells Flog: complexity is 10.5 |
lib/package_builder.rb:273-276
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 8.4 |
app/models/archived/petition.rb:119-120 : response_threshold_reached
«
annotate
»
Flog: complexity is 3.4 |
app/mailers/sponsor_mailer.rb:2-9 : SponsorMailer#sponsor_signed_email_below_threshold
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 10.2 |
app/controllers/petitions_controller.rb:126-129
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 8.3 |
app/models/archived/petition.rb:163-164 : debate_scheduled
«
annotate
»
Flog: complexity is 3.4 |
app/models/constituency_petition_journal.rb:20-21 : ConstituencyPetitionJournal#older_than
«
annotate
»
Flog: complexity is 11.2 |
app/models/archived/petition.rb:368-375
«
annotate
»
Flog: complexity is 10.2 |
app/models/archived/petition.rb:103-104 : awaiting_debate_date
«
annotate
»
Flog: complexity is 3.4 |
app/models/country_petition_journal.rb:20-21 : CountryPetitionJournal#older_than
«
annotate
»
Flog: complexity is 11.2 |
app/models/petition_creator.rb:195-200
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 8.2 |
app/models/archived/petition.rb:171-172 : with_debate_outcome
«
annotate
»
Flog: complexity is 3.4 |
app/controllers/signatures_controller.rb:107-109 : SignaturesController#expired_form_requests
«
annotate
»
Saikuro: complexity is 3.0 Flog: complexity is 8.2 |
app/models/signature.rb:162-167
«
annotate
»
Flog: complexity is 10.1 |
app/models/archived/petition.rb:107-108 : awaiting_response
«
annotate
»
Flog: complexity is 3.4 |
app/models/task.rb:5-6 : Task#run
«
annotate
»
Saikuro: complexity is 3.0 Flog: average complexity is 8.2 |
app/mailers/sponsor_mailer.rb:12-19
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 9.1 |
app/models/archived/signature.rb:73-74 : for_email
«
annotate
»
Flog: complexity is 3.4 |
lib/tasks/petitions.rake:34-71 : namespace(epets)#namespace(petitions)#task#backfill_moderation_lag
«
annotate
»
Flog: complexity is 11.2 |
app/helpers/form_helper.rb:13-15
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 8.1 |
app/models/archived/signature.rb:208-210 : postcode_search?
«
annotate
»
Flog: complexity is 3.4 |
app/jobs/notify_creator_of_validated_petition_being_stopped_job.rb:7-9 : NotifyCreatorOfValidatedPetitionBeingStoppedJob#perform
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 9.1 |
app/models/petition.rb:579-580
«
annotate
»
Flog: complexity is 10.1 |
app/helpers/cache_helper.rb:133-134 : build
«
annotate
»
Flog: average complexity is 3.3 |
app/jobs/notify_creator_of_sponsored_petition_being_stopped_job.rb:7-9 : NotifyCreatorOfSponsoredPetitionBeingStoppedJob#perform
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 9.1 |
app/models/trending_ip.rb:11-17
«
annotate
»
Flog: complexity is 10.0 |
app/jobs/email_threshold_response_job.rb : EmailThresholdResponseJob
«
annotate
»
Reek: found 2 code smells Flog: average complexity is 2.8 |
app/jobs/notify_creator_that_parliament_is_dissolving_job.rb:7-9 : NotifyCreatorThatParliamentIsDissolvingJob#perform
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 9.1 |
app/models/signature.rb:767-780
«
annotate
»
Flog: complexity is 10.0 |
app/jobs/application_job.rb : ApplicationJob
«
annotate
»
Reek: found 3 code smells Saikuro: average complexity is 1.0 Flog: average complexity is 1.7 |
app/presenters/api_pagination_links_presenter.rb:34-39 : ApiPaginationLinksPresenter#last_url
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 9.1 |
app/controllers/sponsors_controller.rb:80-82
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 8.0 |
app/jobs/email_debate_scheduled_job.rb : EmailDebateScheduledJob
«
annotate
»
Reek: found 2 code smells Flog: average complexity is 2.8 |
: SignaturesController#none
Flog: average complexity is 11.0 |
app/validators/postcode_validator.rb:7-9
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 7.9 |
app/models/petition/statistics.rb:5-6 : after_commit
«
annotate
»
Flog: complexity is 3.2 |
app/controllers/admin/user_sessions_controller.rb:9-20 : UserSessionsController#create
«
annotate
»
Flog: complexity is 11.0 |
app/models/parliament.rb:113-116
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 7.9 |
app/models/domain.rb:4-7 : Domain::with_options
«
annotate
»
Flog: complexity is 3.2 |
lib/package_builder.rb : PackageBuilder#create_archive
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 1.0 Flog: complexity is 9.3 |
app/models/domain.rb:44-51
«
annotate
»
Flog: complexity is 9.9 |
app/models/archived/signature.rb:216-217 : normalize_email
«
annotate
»
Flog: complexity is 3.2 |
app/controllers/admin/moderation_delays_controller.rb : ModerationDelaysController#enqeue_job
«
annotate
»
Reek: found 1 code smells Flog: complexity is 10.5 |
app/jobs/concerns/email_all_petition_signatories.rb:83-84
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 8.9 |
app/jobs/email_debate_outcomes_job.rb : EmailDebateOutcomesJob
«
annotate
»
Reek: found 2 code smells Flog: average complexity is 2.8 |
app/models/rate_limit.rb : RateLimit#build_ignored_domains
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 8.3 |
app/jobs/concerns/email_delivery.rb:96-97
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 8.9 |
app/models/admin_user.rb:32-34 : AdminUser::before_update
«
annotate
»
Flog: complexity is 3.0 |
app/models/signature.rb : Signature#retry_lock
«
annotate
»
Reek: found 2 code smells Flog: complexity is 10.0 |
app/controllers/signatures_controller.rb:185-189
«
annotate
»
Flog: complexity is 9.9 |
app/jobs/update_petition_statistics_job.rb : UpdatePetitionStatisticsJob
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 1.0 Flog: average complexity is 1.6 |
app/jobs/fetch_country_register_job.rb : FetchCountryRegisterJob#countries
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 8.3 |
app/controllers/sponsors_controller.rb:44-48
«
annotate
»
Flog: complexity is 9.9 |
app/jobs/email_confirmation_for_signer_email_job.rb : EmailConfirmationForSignerEmailJob
«
annotate
»
Reek: found 1 code smells Flog: complexity is 2.8 |
lib/health_check.rb:60-66 : HealthCheck#database_persistence
«
annotate
»
Saikuro: complexity is 5.0 Flog: complexity is 5.8 |
app/helpers/auto_link_helper.rb:46-47
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 7.9 |
app/jobs/close_petitions_job.rb : ClosePetitionsJob
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 1.0 Flog: average complexity is 1.6 |
app/controllers/admin/signatures_controller.rb : SignaturesController#invalidate
«
annotate
»
Reek: found 1 code smells Flog: complexity is 10.5 |
app/controllers/admin/statistics_controller.rb:32-36
«
annotate
»
Flog: complexity is 9.9 |
app/jobs/petition_and_email_confirmation_for_sponsor_email_job.rb : PetitionAndEmailConfirmationForSponsorEmailJob
«
annotate
»
Reek: found 1 code smells Flog: complexity is 2.8 |
app/jobs/concerns/email_delivery.rb:102-104 : EmailDelivery#email_not_previously_sent?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 9.8 |
app/controllers/signatures_controller.rb:38-40
«
annotate
»
Saikuro: complexity is 4.0 Flog: complexity is 5.9 |
app/models/archived/signature.rb:190-194 : ip_search?
«
annotate
»
Flog: complexity is 2.9 |
lib/package_builder.rb:20-25 : PackageBuilder#initialize
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 9.8 |
app/mailers/archived/petition_mailer.rb:65-75
«
annotate
»
Flog: complexity is 9.9 |
lib/arel_extensions.rb : PostgreSQL
«
annotate
»
Reek: found 8 code smells Saikuro: average complexity is 1.0 Flog: average complexity is 1.0 |
app/jobs/concerns/email_all_petition_signatories.rb:63-66 : EmailAllPetitionSignatories#enqueue_send_email_jobs
«
annotate
»
Saikuro: complexity is 3.0 Flog: complexity is 7.7 |
app/mailers/archived/petition_mailer.rb:53-63
«
annotate
»
Flog: complexity is 9.9 |
app/models/statistics.rb : Statistics::
«
annotate
»
Saikuro: average complexity is 2.7 |
app/controllers/sponsors_controller.rb:62-68 : SponsorsController#send_sponsor_support_notification_email_to_petition_owner
«
annotate
»
Saikuro: complexity is 4.0 Flog: complexity is 6.7 |
app/models/archived/petition.rb:318-324
«
annotate
»
Flog: complexity is 9.8 |
app/models/domain.rb:25-28 : Domain::before_validation
«
annotate
»
Flog: average complexity is 2.7 |
app/lib/active_support/cache/atomic_dalli_store.rb:34-38 : AtomicDalliStore#write
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 8.6 |
app/models/petition.rb:750-756
«
annotate
»
Flog: complexity is 9.8 |
app/models/country_petition_journal.rb : CountryPetitionJournal::
«
annotate
»
Saikuro: average complexity is 2.6 |
app/models/constituency_petition_journal.rb:44-46 : ConstituencyPetitionJournal#invalidate_signature_for
«
annotate
»
Flog: complexity is 10.6 |
app/jobs/concerns/email_delivery.rb:59-60
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 8.8 |
app/controllers/ping_controller.rb : PingController
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: average complexity is 1.5 |
app/models/country_petition_journal.rb:40-42 : CountryPetitionJournal#invalidate_signature_for
«
annotate
»
Flog: complexity is 10.6 |
app/jobs/stop_petitions_early_job.rb:10-19
«
annotate
»
Flog: complexity is 9.8 |
app/models/constituency_petition_journal.rb : ConstituencyPetitionJournal::
«
annotate
»
Saikuro: average complexity is 2.5 |
app/jobs/email_duplicate_signatures_email_job.rb:9-11 : EmailDuplicateSignaturesEmailJob#perform
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 9.6 |
app/models/archived/debate_outcome.rb:49-51
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 8.7 |
app/jobs/delete_petition_job.rb : DeletePetitionJob
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 1.0 Flog: average complexity is 1.0 |
app/helpers/archived_petition_helper.rb:10-15 : ArchivedPetitionHelper#archived_threshold_percentage
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 9.5 |
app/jobs/notify_everyone_of_moderation_decision_job.rb:6-14
«
annotate
»
Flog: complexity is 9.7 |
app/jobs/email_threshold_reminder_job.rb : EmailThresholdReminderJob
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 1.0 Flog: average complexity is 1.0 |
app/models/signature.rb : #search
«
annotate
»
Saikuro: average complexity is 10.5 |
app/controllers/sponsors_controller.rb:11-18
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 7.7 |
app/models/note.rb : Note
«
annotate
»
Reek: found 2 code smells Flog: average complexity is 2.1 |
app/helpers/admin_hub_helper.rb : ActionCountsDecorator#generate_counts
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 8.9 |
lib/tasks/petitions.rake:19-22
«
annotate
»
Flog: complexity is 9.7 |
app/jobs/refresh_constituencies_job.rb : RefreshConstituenciesJob
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 1.0 Flog: average complexity is 1.0 |
lib/tasks/petitions.rake:27-29 : namespace(epets)#namespace(petitions)#task#update_statistics
«
annotate
»
Flog: complexity is 10.4 |
app/controllers/archived/signatures_controller.rb:31-37
«
annotate
»
Flog: complexity is 9.6 |
lib/tasks/deploy.rake:20-21 : namespace(deploy)::task
«
annotate
»
Flog: average complexity is 2.4 |
app/helpers/cache_helper.rb : Keys#method_missing
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 7.8 |
app/models/petition.rb:260-261
«
annotate
»
Flog: complexity is 9.6 |
lib/tasks/epets.rake:26-31 : namespace(epets)::namespace(whenever)::task
«
annotate
»
Flog: average complexity is 2.4 |
: CacheKey#none
Flog: complexity is 10.4 |
app/models/signature.rb:379-380
«
annotate
»
Flog: complexity is 9.6 |
lib/tasks/epets.rake:47-48 : namespace(epets)::namespace(jobs)::task
«
annotate
»
Flog: complexity is 2.4 |
app/models/petition.rb:728-730 : Petition#closed_for_signing?
«
annotate
»
Flog: complexity is 10.4 |
app/models/signature.rb:391-392
«
annotate
»
Flog: complexity is 9.6 |
app/jobs/notify_creator_that_petition_was_rejected_email_job.rb : NotifyCreatorThatPetitionWasRejectedEmailJob
«
annotate
»
Reek: found 1 code smells Flog: complexity is 2.0 |
lib/package_builder.rb:273-276 : PackageBuilder#notify_slack
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 8.4 |
app/presenters/petition_csv_presenter.rb:44-45
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 7.6 |
app/jobs/notify_sponsor_that_petition_is_published_email_job.rb : NotifySponsorThatPetitionIsPublishedEmailJob
«
annotate
»
Reek: found 1 code smells Flog: complexity is 2.0 |
: TrendingDomain#none
Flog: complexity is 10.3 |
app/models/concerns/taggable.rb:49-51
«
annotate
»
Saikuro: complexity is 3.0 Flog: complexity is 6.6 |
app/jobs/notify_sponsor_that_petition_was_rejected_email_job.rb : NotifySponsorThatPetitionWasRejectedEmailJob
«
annotate
»
Reek: found 1 code smells Flog: complexity is 2.0 |
app/controllers/petitions_controller.rb:126-129 : PetitionsController#redirect_to_valid_state
«
annotate
»
Saikuro: complexity is 2.0 Flog: average complexity is 8.3 |
app/controllers/local_petitions_controller.rb:66-70
«
annotate
»
Flog: complexity is 9.6 |
app/jobs/notify_creator_that_petition_is_published_email_job.rb : NotifyCreatorThatPetitionIsPublishedEmailJob
«
annotate
»
Reek: found 1 code smells Flog: complexity is 2.0 |
app/controllers/signatures_controller.rb:176-181 : SignaturesController#retrieve_signature
«
annotate
»
Saikuro: average complexity is 2.0 Flog: average complexity is 8.3 |
app/jobs/refresh_constituency_party_job.rb:17-22
«
annotate
»
Flog: complexity is 9.6 |
app/jobs/gather_sponsors_for_petition_email_job.rb : GatherSponsorsForPetitionEmailJob
«
annotate
»
Reek: found 1 code smells Flog: complexity is 2.0 |
lib/health_check.rb : HealthCheck#checkup
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 3.0 Flog: average complexity is 6.6 |
lib/tasks/petitions.rake:43-48
«
annotate
»
Flog: complexity is 9.5 |
app/helpers/page_title_helper.rb : PageTitleHelper
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
app/models/rate_limit.rb : RateLimit#build_blocked_ips
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 7.6 |
app/jobs/concerns/email_delivery.rb:41-49
«
annotate
»
Flog: complexity is 9.5 |
app/jobs/feedback_email_job.rb:11-12 : FeedbackEmailJob::before_perform
«
annotate
»
Flog: complexity is 2.0 |
app/models/rate_limit.rb : RateLimit#build_blocked_domains
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 7.6 |
lib/tasks/epets.rake:52-94
«
annotate
»
Flog: complexity is 9.5 |
app/models/domain.rb : Domain::
«
annotate
»
Saikuro: average complexity is 2.0 |
app/models/rate_limit.rb : RateLimit#build_allowed_ips
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 7.6 |
app/models/signature.rb:625-633
«
annotate
»
Flog: complexity is 9.5 |
app/helpers/cache_helper.rb:141-142 : reset_fragments
«
annotate
»
Flog: complexity is 1.6 |
app/models/archived/petition.rb : Petition#calculate_signatures_by_constituency
«
annotate
»
Reek: found 1 code smells Flog: complexity is 10.2 |
app/jobs/import_constituencies_job.rb:27-36
«
annotate
»
Flog: complexity is 9.5 |
app/models/archived/petition.rb:83-84 : by_most_recent_debate_outcome
«
annotate
»
Flog: complexity is 1.6 |
app/models/rate_limit.rb : RateLimit#build_allowed_domains
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 7.6 |
app/models/signature.rb:362-367
«
annotate
»
Flog: complexity is 9.5 |
app/models/archived/signature.rb:85-86 : for_petition
«
annotate
»
Flog: complexity is 1.6 |
app/models/petition_creator.rb:195-200 : PetitionCreator#validate
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 8.2 |
app/helpers/application_helper.rb:38-40
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 8.5 |
app/models/archived/signature.rb:77-78 : for_ip
«
annotate
»
Flog: complexity is 1.6 |
app/mailers/sponsor_mailer.rb:12-19 : SponsorMailer#sponsor_signed_email_on_threshold
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 9.1 |
app/helpers/application_helper.rb:26-28
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 8.5 |
app/models/archived/signature.rb:106-107 : subscribed
«
annotate
»
Flog: complexity is 1.6 |
app/helpers/form_helper.rb:13-15 : FormHelper#error_messages_for_field
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 8.1 |
app/controllers/signatures_controller.rb:100-103
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 7.5 |
app/models/archived/signature.rb:110-111 : validated
«
annotate
»
Flog: complexity is 1.6 |
: Authentication#none
Flog: complexity is 10.0 |
lib/tasks/petitions.rake:4-7
«
annotate
»
Flog: complexity is 9.5 |
app/models/archived/signature.rb:196-197 : domain_search?
«
annotate
»
Flog: complexity is 1.6 |
: EmailAllPetitionSignatories#none
Flog: complexity is 10.0 |
app/controllers/signatures_controller.rb:241-247
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 8.4 |
app/models/archived/signature.rb:200-201 : email_search?
«
annotate
»
Flog: complexity is 1.6 |
app/models/trending_ip.rb:11-17 : TrendingIp#before_validation#on
«
annotate
»
Flog: complexity is 10.0 |
app/models/constituency/api_query.rb:16-29
«
annotate
»
Flog: complexity is 9.4 |
app/models/archived/petition.rb:75-76 : for_state
«
annotate
»
Flog: complexity is 1.6 |
: AdminUsersController#none
Flog: complexity is 10.0 |
app/controllers/archived/petitions_controller.rb:39-43
«
annotate
»
Flog: complexity is 9.4 |
app/models/archived/petition.rb:79-80 : by_created_at
«
annotate
»
Flog: complexity is 1.6 |
: ApplicationController#none
Flog: complexity is 10.0 |
app/models/signature_logs.rb:19-22
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 7.4 |
app/models/archived/petition.rb:87-88 : by_waiting_for_debate_longest
«
annotate
»
Flog: complexity is 1.6 |
: NotifyTrendingIpJob#none
Flog: complexity is 10.0 |
app/controllers/signatures_controller.rb:154-156
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 7.4 |
app/models/archived/petition.rb:95-96 : by_most_signatures
«
annotate
»
Flog: complexity is 1.6 |
: NotifyTrendingDomainJob#none
Flog: complexity is 10.0 |
app/controllers/signatures_controller.rb:166-168
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 7.4 |
app/models/archived/petition.rb:99-100 : by_waiting_for_response_longest
«
annotate
»
Flog: complexity is 1.6 |
app/controllers/sponsors_controller.rb:80-82 : SponsorsController#redirect_to_new_sponsor_page_if_validated
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 8.0 |
app/lib/deprecated_attributes.rb
«
annotate
»
Reek: found 11 code smells Saikuro: complexity is 8.0 Flay: found 1 code duplications |
app/models/archived/petition.rb:111-112 : not_responded
«
annotate
»
Flog: complexity is 1.6 |
app/validators/postcode_validator.rb:7-9 : PostcodeValidator#validate_each
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 7.9 |
app/models/invalidation.rb:137-138
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 8.3 |
app/models/archived/petition.rb:123-124 : published
«
annotate
»
Flog: complexity is 1.6 |
app/models/parliament.rb:113-116 : Parliament#period
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 7.9 |
app/jobs/refresh_constituency_party_job.rb:33-44
«
annotate
»
Flog: complexity is 9.3 |
app/models/archived/petition.rb:127-128 : moderated
«
annotate
»
Flog: complexity is 1.6 |
app/jobs/concerns/email_all_petition_signatories.rb:83-84 : EmailAllPetitionSignatories#petition_has_been_updated?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 8.9 |
lib/package_builder.rb:112-121
«
annotate
»
Flog: complexity is 9.3 |
app/models/archived/petition.rb:131-132 : stopped
«
annotate
»
Flog: complexity is 1.6 |
app/jobs/concerns/email_delivery.rb:96-97 : EmailDelivery#petition_has_not_been_updated?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 8.9 |
app/models/task.rb:35-48
«
annotate
»
Flog: complexity is 9.3 |
app/models/archived/petition.rb:135-136 : closed
«
annotate
»
Flog: complexity is 1.6 |
: PetitionCreator#none
Flog: complexity is 9.9 |
app/models/rate_limit.rb:304-310
«
annotate
»
Flog: complexity is 9.2 |
app/models/archived/petition.rb:139-140 : rejected
«
annotate
»
Flog: complexity is 1.6 |
app/helpers/auto_link_helper.rb:46-47 : AutoLinker#sanitized_text
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 7.9 |
app/lib/active_support/cache/atomic_dalli_store.rb:26-29
«
annotate
»
Saikuro: complexity is 4.0 Flog: complexity is 5.2 |
app/models/archived/petition.rb:143-144 : hidden
«
annotate
»
Flog: complexity is 1.6 |
app/models/signature.rb : Signature#save
«
annotate
»
Reek: found 1 code smells Flog: complexity is 9.5 |
app/mailers/petition_mailer.rb:137-144
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 8.2 |
app/models/archived/petition.rb:147-148 : debateable
«
annotate
»
Flog: complexity is 1.6 |
app/controllers/admin/statistics_controller.rb:32-36 : StatisticsController#csv_filename
«
annotate
»
Flog: complexity is 9.9 |
app/models/rate_limit.rb:224-225
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 8.2 |
app/models/archived/petition.rb:155-156 : not_debated
«
annotate
»
Flog: complexity is 1.6 |
app/controllers/signatures_controller.rb:38-40 : SignaturesController#confirm
«
annotate
»
Saikuro: complexity is 4.0 Flog: complexity is 5.9 |
app/models/signature.rb:383-384
«
annotate
»
Flog: complexity is 9.2 |
app/models/archived/petition.rb:167-168 : not_scheduled
«
annotate
»
Flog: complexity is 1.6 |
app/models/petition.rb:750-756 : Petition#checkout!
«
annotate
»
Flog: average complexity is 9.8 |
app/models/signature.rb:387-388
«
annotate
»
Flog: complexity is 9.2 |
app/models/archived/petition.rb:179-180 : visible
«
annotate
»
Flog: complexity is 1.6 |
app/models/archived/petition.rb : Petition#calculate_signatures_by_country
«
annotate
»
Reek: found 2 code smells Flog: complexity is 9.0 |
app/controllers/admin/archived/government_response_controller.rb:13-24
«
annotate
»
Flog: complexity is 9.2 |
app/models/archived/signature.rb:212-213 : sector_search?
«
annotate
»
Flog: complexity is 1.6 |
app/jobs/concerns/email_delivery.rb:59-60 : EmailDelivery#log_message
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 8.8 |
app/controllers/admin/archived/debate_outcomes_controller.rb:13-24
«
annotate
»
Flog: complexity is 9.2 |
app/models/archived/petition.rb:91-92 : by_most_recent
«
annotate
»
Flog: average complexity is 1.6 |
app/controllers/admin/archived/petitions_controller.rb : PetitionsController#fetch_parliament
«
annotate
»
Reek: found 2 code smells Flog: average complexity is 9.0 |
app/controllers/admin/archived/schedule_debate_controller.rb:8-19
«
annotate
»
Flog: complexity is 9.2 |
app/controllers/admin/invalidations_controller.rb : Admin
«
annotate
»
Saikuro: average complexity is 1.6 |
: EmailJob#none
Flog: complexity is 9.7 |
app/models/concerns/browseable.rb:124-126
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 8.2 |
app/models/constituency/api_query.rb:31-32 : before_remove_const
«
annotate
»
Flog: complexity is 1.6 |
app/jobs/import_constituencies_job.rb : ImportConstituenciesJob#fetch_constituencies
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 2.0 Flog: complexity is 6.9 |
app/models/archived/petition.rb:183-184
«
annotate
»
Flog: complexity is 9.1 |
app/models/task.rb : Task::
«
annotate
»
Saikuro: average complexity is 1.5 |
app/controllers/sponsors_controller.rb:11-18 : SponsorsController#verify
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 7.7 |
app/models/petition.rb:353-354
«
annotate
»
Flog: complexity is 9.1 |
app/models/trending_domain.rb : TrendingDomain::
«
annotate
»
Saikuro: average complexity is 1.3 |
app/models/admin_user.rb : AdminUser#has_to_change_password?
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 8.6 |
app/helpers/debate_outcome_helper.rb:15-21
«
annotate
»
Flog: complexity is 9.1 |
app/models/trending_ip.rb : TrendingIp::
«
annotate
»
Saikuro: average complexity is 1.3 |
lib/tasks/petitions.rake:19-22 : namespace(epets)#namespace(petitions)#task#debated
«
annotate
»
Flog: complexity is 9.7 |
app/models/constituency_petition_journal.rb:28-31
«
annotate
»
Flog: complexity is 9.1 |
app/models/petition.rb :
«
annotate
»
Saikuro: average complexity is 1.2 |
app/models/petition.rb:260-261 : Petition#threshold
«
annotate
»
Flog: complexity is 9.6 |
app/models/country_petition_journal.rb:24-27
«
annotate
»
Flog: complexity is 9.1 |
app/models/site.rb : Site::
«
annotate
»
Saikuro: average complexity is 1.1 |
app/models/signature.rb:379-380 : Signature#validated_count
«
annotate
»
Flog: complexity is 9.6 |
app/jobs/trending_ips_by_petition_job.rb
«
annotate
»
Reek: found 4 code smells Saikuro: complexity is 8.0 Flay: found 1 code duplications Roodi: found 1 design problems |
lib/arel_extensions.rb : Contained
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 |
app/controllers/admin/signatures_controller.rb : SignaturesController#destroy
«
annotate
»
Reek: found 2 code smells Flog: average complexity is 8.9 |
app/jobs/enqueue_petition_statistics_updates_job.rb:6-10
«
annotate
»
Saikuro: complexity is 3.0 Flog: complexity is 6.0 |
lib/arel_extensions.rb : Contains
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 |
app/controllers/admin/signatures_controller.rb : SignaturesController#subscribe
«
annotate
»
Reek: found 2 code smells Flog: average complexity is 8.9 |
app/jobs/trending_domains_by_petition_job.rb
«
annotate
»
Reek: found 4 code smells Saikuro: complexity is 8.0 Flay: found 1 code duplications Roodi: found 1 design problems |
lib/arel_extensions.rb : Overlaps
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 |
app/presenters/petition_csv_presenter.rb:44-45 : PetitionCSVPresenter#values
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 7.6 |
app/helpers/debate_outcome_helper.rb:6-8
«
annotate
»
Flog: complexity is 9.0 |
app/models/invalidation.rb : Invalidation::
«
annotate
»
Saikuro: average complexity is 1.0 |
app/models/concerns/taggable.rb:49-51 : Taggable#tags_exist
«
annotate
»
Saikuro: complexity is 3.0 Flog: complexity is 6.6 |
app/models/admin_user.rb:70-77
«
annotate
»
Flog: complexity is 9.0 |
lib/package_builder.rb : PackageBuilder::
«
annotate
»
Saikuro: average complexity is 1.0 |
app/models/petition.rb : Petition#release!
«
annotate
»
Reek: found 2 code smells Flog: average complexity is 8.7 |
app/controllers/signatures_controller.rb:176-181
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 7.0 |
app/models/archived.rb : Archived::
«
annotate
»
Saikuro: complexity is 1.0 |
lib/tasks/petitions.rake:43-48 : namespace(epets)#namespace(petitions)#task#moderated?
«
annotate
»
Flog: complexity is 9.5 |
app/models/archived/petition.rb:383-389
«
annotate
»
Flog: complexity is 9.0 |
app/jobs/close_petitions_early_job.rb : ClosePetitionsEarlyJob::
«
annotate
»
Saikuro: complexity is 1.0 |
lib/tasks/epets.rake:52-94 : namespace(epets)#namespace#site
«
annotate
»
Flog: complexity is 9.5 |
app/controllers/admin/moderation_delays_controller.rb:35-40
«
annotate
»
Flog: complexity is 8.9 |
app/models/tag.rb : Tag::
«
annotate
»
Saikuro: complexity is 1.0 |
app/helpers/application_helper.rb:26-28 : ApplicationHelper#create_petition_page?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 8.5 |
app/mailers/archived/petition_mailer.rb:29-36
«
annotate
»
Flog: complexity is 8.9 |
app/models/holiday.rb : Holiday::
«
annotate
»
Saikuro: average complexity is 1.0 |
app/helpers/application_helper.rb:38-40 : ApplicationHelper#archived_petition_page?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 8.5 |
app/mailers/archived/petition_mailer.rb:20-27
«
annotate
»
Flog: complexity is 8.9 |
app/models/location.rb : Location::
«
annotate
»
Saikuro: average complexity is 1.0 |
app/controllers/signatures_controller.rb:100-103 : SignaturesController#expire_form_requests
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 7.5 |
app/jobs/stop_petitions_early_job.rb:25-31
«
annotate
»
Flog: complexity is 8.9 |
app/jobs/stop_petitions_early_job.rb : StopPetitionsEarlyJob::
«
annotate
»
Saikuro: complexity is 1.0 |
lib/tasks/petitions.rake:4-7 : namespace(epets)#namespace(petitions)#task#close
«
annotate
»
Flog: complexity is 9.5 |
app/models/domain.rb:64-65
«
annotate
»
Flog: complexity is 8.9 |
app/models/signature_logs.rb : SignatureLogs::
«
annotate
»
Saikuro: complexity is 1.0 |
app/controllers/signatures_controller.rb:241-247 : SignaturesController#signature_params_for_create
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 8.4 |
app/controllers/admin/archived/signatures_controller.rb:61-66
«
annotate
»
Flog: complexity is 8.9 |
app/models/parliament.rb : Parliament::
«
annotate
»
Saikuro: average complexity is 1.0 |
app/models/signature_logs.rb:19-22 : Log#ip_address
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 7.4 |
app/helpers/admin_hub_helper.rb:65-68
«
annotate
»
Flog: complexity is 8.9 |
app/lib/email_reminder.rb : EmailReminder#self
«
annotate
»
Reek: found 4 code smells |
app/controllers/signatures_controller.rb:166-168 : SignaturesController#verify_unsubscribe_token
«
annotate
»
Saikuro: average complexity is 2.0 Flog: average complexity is 7.4 |
app/controllers/admin/signatures_controller.rb:66-71
«
annotate
»
Flog: complexity is 8.9 |
app/models/feedback_signature.rb : FeedbackSignature
«
annotate
»
Reek: found 2 code smells |
app/controllers/signatures_controller.rb:154-156 : SignaturesController#verify_token
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 7.4 |
app/controllers/admin/signatures_controller.rb:84-89
«
annotate
»
Flog: complexity is 8.9 |
app/models/site.rb : ServiceUnavailable
«
annotate
»
Reek: found 1 code smells |
app/models/debate_outcome.rb : DebateOutcome#no_commons_image_queued
«
annotate
»
Saikuro: average complexity is 1.0 Flog: average complexity is 8.4 |
app/controllers/admin/signatures_controller.rb:102-107
«
annotate
»
Flog: complexity is 8.9 |
app/models/admin_user.rb : CannotDeleteCurrentUser
«
annotate
»
Reek: found 1 code smells |
app/helpers/date_time_helper.rb : DateTimeHelper#api_date_format
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 3.0 Flog: complexity is 5.7 |
app/controllers/admin/archived/signatures_controller.rb:43-48
«
annotate
»
Flog: complexity is 8.9 |
app/models/admin_user.rb : MustBeAtLeastOneAdminUser
«
annotate
»
Reek: found 1 code smells |
app/controllers/admin/signatures_controller.rb : SignaturesController#unsubscribe
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 2.0 Flog: average complexity is 6.6 |
app/controllers/admin/archived/signatures_controller.rb:25-30
«
annotate
»
Flog: complexity is 8.9 |
app/jobs/feedback_email_job.rb : SendingDisabledError
«
annotate
»
Reek: found 1 code smells |
app/presenters/petition_csv_presenter.rb : PetitionCSVPresenter#notes
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 6.7 |
app/controllers/admin/invalidations_controller.rb:77-86
«
annotate
»
Flog: complexity is 8.9 |
app/jobs/reset_petition_signature_count_job.rb : InvalidSignatureCount
«
annotate
»
Reek: found 1 code smells |
app/models/invalidation.rb:137-138 : Invalidation#pending?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 8.3 |
app/controllers/admin/invalidations_controller.rb:89-98
«
annotate
»
Flog: complexity is 8.9 |
app/controllers/concerns/bulk_verification.rb : InvalidBulkRequest
«
annotate
»
Reek: found 1 code smells |
app/mailers/petition_mailer.rb : PetitionMailer#notify_sponsor_that_petition_was_rejected
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 7.7 |
app/jobs/concerns/email_delivery.rb:71-78
«
annotate
»
Saikuro: complexity is 3.0 Flog: complexity is 5.9 |
app/lib/active_support/cache/atomic_dalli_store.rb:26-29 : AtomicDalliStore#read
«
annotate
»
Saikuro: complexity is 4.0 Flog: complexity is 5.2 |
|
app/models/concerns/geoip_lookup.rb:42-48
«
annotate
»
Saikuro: complexity is 3.0 Flog: complexity is 5.8 |
app/mailers/petition_mailer.rb:137-144 : PetitionMailer#notify_creator_that_moderation_is_delayed
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 8.2 |
|
app/controllers/admin/holidays_controller.rb:11-16
«
annotate
»
Flog: complexity is 8.8 |
app/jobs/fetch_country_register_job.rb : FetchCountryRegisterJob#faraday
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 2.0 Flog: complexity is 6.4 |
|
app/controllers/admin/domains_controller.rb:35-40
«
annotate
»
Flog: complexity is 8.8 |
: ApiPaginationLinksPresenter#none
Flog: complexity is 9.2 |
|
app/controllers/concerns/flash_i18n.rb:20-28
«
annotate
»
Flog: complexity is 8.8 |
app/models/rate_limit.rb:224-225 : RateLimit#build_allowed_countries
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 8.2 |
|
app/controllers/feedback_controller.rb:33-34
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 7.8 |
app/models/signature.rb:383-384 : Signature#validated_count_by_location_code
«
annotate
»
Flog: complexity is 9.2 |
|
app/presenters/petition_csv_presenter.rb:7-8
«
annotate
»
Flog: complexity is 8.8 |
app/models/signature.rb:387-388 : Signature#validated_count_by_constituency_id
«
annotate
»
Flog: complexity is 9.2 |
|
app/jobs/delete_petitions_job.rb:4-10
«
annotate
»
Saikuro: complexity is 3.0 Flog: complexity is 5.8 |
app/mailers/petition_mailer.rb : PetitionMailer#notify_creator_that_petition_was_rejected
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 7.7 |
|
app/models/archived/petition.rb:332-336
«
annotate
»
Flog: complexity is 8.7 |
app/models/rate_limit.rb : RateLimit#convert_glob
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 4.0 Flog: complexity is 5.1 |
|
app/models/petition.rb:764-768
«
annotate
»
Flog: complexity is 8.7 |
app/models/concerns/browseable.rb:124-126 : Search#page_size
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 8.2 |
|
lib/tasks/petitions.rake:59-60
«
annotate
»
Flog: complexity is 8.7 |
app/models/petition.rb:353-354 : Petition#in_need_of_marking_as_debated
«
annotate
»
Flog: complexity is 9.1 |
|
app/controllers/signatures_controller.rb:63-69
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 6.7 |
: Location#none
Flog: complexity is 9.1 |
|
app/lib/quiet_logger.rb:10-14
«
annotate
»
Flog: complexity is 8.7 |
app/models/constituency/api_client.rb : ApiClient#call
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 6.9 |
|
app/controllers/admin/archived/petitions_controller.rb:61-65
«
annotate
»
Flog: complexity is 8.6 |
app/models/constituency_petition_journal.rb:28-31 : ConstituencyPetitionJournal#increment_signature_counts_for
«
annotate
»
Flog: complexity is 9.1 |
|
app/models/domain.rb:17-20
«
annotate
»
Flog: complexity is 8.6 |
app/models/country_petition_journal.rb:24-27 : CountryPetitionJournal#increment_signature_counts_for
«
annotate
»
Flog: complexity is 9.1 |
|
app/models/signature.rb:465-467
«
annotate
»
Flog: complexity is 8.6 |
app/jobs/enqueue_petition_statistics_updates_job.rb:6-10 : EnqueuePetitionStatisticsUpdatesJob#perform
«
annotate
»
Saikuro: complexity is 3.0 Flog: complexity is 6.0 |
|
app/models/admin_user.rb:96-98
«
annotate
»
Flog: complexity is 8.6 |
app/lib/admin/task_runner.rb : TaskRunner#tasks
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 6.4 |
|
app/models/constituency.rb:110-113
«
annotate
»
Flog: complexity is 8.6 |
app/controllers/admin/moderation_delays_controller.rb:35-40 : ModerationDelaysController#moderation_delay_params
«
annotate
»
Flog: complexity is 8.9 |
|
app/models/parliament.rb:147-151
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 6.6 |
app/models/domain.rb : Domain#rule
«
annotate
»
Reek: found 1 code smells Flog: complexity is 8.9 |
|
app/models/petition_creator.rb:82-83
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 7.6 |
app/mailers/petition_mailer.rb:65-71 : PetitionMailer#notify_creator_of_threshold_response
«
annotate
»
Saikuro: average complexity is 1.0 Flog: average complexity is 7.9 |
|
app/helpers/date_time_helper.rb:57-62
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 7.5 |
app/mailers/petition_mailer.rb:57-63 : PetitionMailer#notify_signer_of_threshold_response
«
annotate
»
Saikuro: average complexity is 1.0 Flog: average complexity is 7.9 |
|
app/models/task.rb:31-33
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 7.5 |
app/controllers/admin/invalidations_controller.rb:89-98 : InvalidationsController#start
«
annotate
»
Flog: complexity is 8.9 |
|
app/controllers/trackers_controller.rb:9-13
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 6.5 |
app/controllers/admin/invalidations_controller.rb:77-86 : InvalidationsController#count
«
annotate
»
Flog: complexity is 8.9 |
|
app/jobs/feedback_email_job.rb:17-18
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 7.4 |
app/jobs/concerns/email_delivery.rb:71-78 : EmailDelivery#mailer
«
annotate
»
Saikuro: complexity is 3.0 Flog: complexity is 5.9 |
|
app/models/signature.rb:653-658
«
annotate
»
Flog: complexity is 8.4 |
app/models/concerns/geoip_lookup.rb:42-48 : GeoipLookup#ip_location
«
annotate
»
Saikuro: complexity is 3.0 Flog: complexity is 5.8 |
|
app/helpers/cache_helper.rb:171-172
«
annotate
»
Flog: complexity is 8.4 |
app/controllers/admin/holidays_controller.rb:11-16 : HolidaysController#update
«
annotate
»
Flog: complexity is 8.8 |
|
app/jobs/notify_creator_that_moderation_is_delayed_job.rb:7-8
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 7.4 |
app/controllers/admin/domains_controller.rb:35-40 : DomainsController#update
«
annotate
»
Flog: complexity is 8.8 |
|
app/jobs/email_job.rb:34-35
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 7.4 |
: LocalPetitionsController#none
Flog: complexity is 8.8 |
|
app/models/signature_logs.rb:108-112
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 6.4 |
: Task#none
Flog: complexity is 8.8 |
|
app/models/invalidation.rb:116-119
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 6.4 |
app/controllers/feedback_controller.rb:33-34 : FeedbackController#feedback_params
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 7.8 |
|
app/models/invalidation.rb:213-217
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 6.4 |
app/presenters/petition_csv_presenter.rb:7-8 : PetitionCSVPresenter#fields
«
annotate
»
Flog: complexity is 8.8 |
|
app/models/invalidation.rb:221-225
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 6.4 |
app/helpers/admin_helper.rb : AdminHelper#cms_delete_link
«
annotate
»
Reek: found 2 code smells Flog: complexity is 8.1 |
|
app/helpers/home_helper.rb:68-71
«
annotate
»
Saikuro: complexity is 3.0 Flog: complexity is 5.3 |
app/jobs/delete_petitions_job.rb:4-10 : DeletePetitionsJob#perform
«
annotate
»
Saikuro: complexity is 3.0 Flog: complexity is 5.8 |
|
lib/tasks/constituencies.rake:1-20
«
annotate
»
Flog: complexity is 8.3 |
app/models/rate_limit.rb : RateLimit#country_for_ip
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 6.3 |
|
app/controllers/archived/petitions_controller.rb:64-67
«
annotate
»
Flog: complexity is 8.3 |
lib/tasks/petitions.rake:59-60 : namespace(epets)#namespace(petitions)#task#moderation_lag
«
annotate
»
Flog: complexity is 8.7 |
|
app/jobs/fetch_country_register_job.rb:28-29
«
annotate
»
Flog: complexity is 8.3 |
app/controllers/signatures_controller.rb:63-69 : SignaturesController#verify
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 6.7 |
|
app/models/rate_limit.rb:220-221
«
annotate
»
Flog: complexity is 8.3 |
app/models/domain.rb:17-20 : Domain#validate#if
«
annotate
»
Flog: complexity is 8.6 |
|
app/jobs/archive_petitions_job.rb:4-10
«
annotate
»
Flog: complexity is 8.2 |
app/models/signature.rb:465-467 : Signature#find_duplicate!
«
annotate
»
Flog: complexity is 8.6 |
|
app/controllers/concerns/authentication.rb:61-63
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 6.2 |
app/models/constituency.rb:110-113 : Constituency#mismatched_results_exception
«
annotate
»
Flog: complexity is 8.6 |
|
app/models/concerns/browseable.rb:56-57
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 7.2 |
app/models/parliament.rb:147-151 : Parliament#start_archiving!
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 6.6 |
|
app/models/petition.rb:583-584
«
annotate
»
Flog: complexity is 8.2 |
app/jobs/fetch_country_register_job.rb : FetchCountryRegisterJob#fetch_register
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 2.0 Flog: complexity is 5.7 |
|
app/models/signature_logs.rb:51-53
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 6.2 |
app/models/petition_creator.rb:82-83 : PetitionCreator#action
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 7.6 |
|
app/controllers/concerns/authentication.rb:39-42
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 6.2 |
app/helpers/date_time_helper.rb:57-62 : DateTimeHelper#scheduled_for_debate_in_words
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 7.5 |
|
app/models/parliament.rb:174-176
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 7.2 |
app/controllers/admin/archived/schedule_debate_controller.rb:8-19 : ScheduleDebateController#update
«
annotate
»
Flog: average complexity is 8.5 |
|
app/helpers/admin_helper.rb:53-64
«
annotate
»
Flog: complexity is 8.2 |
app/controllers/admin/archived/government_response_controller.rb:13-24 : GovernmentResponseController#update
«
annotate
»
Flog: average complexity is 8.5 |
|
app/presenters/petition_csv_presenter.rb:15-16
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 7.1 |
app/controllers/admin/archived/debate_outcomes_controller.rb:13-24 : DebateOutcomesController#update
«
annotate
»
Flog: average complexity is 8.5 |
|
lib/tasks/epets.rake:3-8
«
annotate
»
Flog: complexity is 8.1 |
app/lib/audit_logger.rb : AuditLogger#error
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 5.9 |
|
lib/package_builder.rb:193-200
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 7.1 |
app/jobs/refresh_constituency_party_job.rb : RefreshConstituencyPartyJob#fetch_members
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 2.0 Flog: complexity is 5.7 |
|
app/controllers/signatures_controller.rb:44-49
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 6.1 |
: Taggable#none
Flog: complexity is 8.5 |
|
app/helpers/admin_helper.rb:12-19
«
annotate
»
Flog: complexity is 8.1 |
app/models/task.rb:31-33 : Task#pending?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 7.5 |
|
app/models/debate_outcome.rb:46-48
«
annotate
»
Flog: complexity is 8.1 |
app/controllers/trackers_controller.rb:9-13 : TrackersController#show
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 6.5 |
|
app/helpers/admin_hub_helper.rb:46-53
«
annotate
»
Saikuro: complexity is 3.0 Flog: complexity is 5.1 |
app/jobs/feedback_email_job.rb:17-18 : FeedbackEmailJob#reschedule_job
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 7.4 |
|
app/helpers/rejection_helper.rb:14-19
«
annotate
»
Saikuro: complexity is 3.0 Flog: complexity is 5.1 |
app/models/signature.rb:653-658 : Signature#constituency
«
annotate
»
Flog: complexity is 8.4 |
|
app/controllers/signatures_controller.rb:121-122
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 7.1 |
app/helpers/cache_helper.rb:171-172 : CacheKey#digest_keys
«
annotate
»
Flog: complexity is 8.4 |
|
app/jobs/concerns/email_all_petition_signatories.rb:44-45
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 7.0 |
app/jobs/notify_creator_that_moderation_is_delayed_job.rb:7-8 : NotifyCreatorThatModerationIsDelayedJob#perform
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 7.4 |
|
app/controllers/trackers_controller.rb:33-35
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 6.0 |
app/jobs/email_job.rb:34-35 : EmailJob#perform
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 7.4 |
|
app/controllers/signatures_controller.rb:219-224
«
annotate
»
Saikuro: complexity is 3.0 Flog: complexity is 5.0 |
app/models/invalidation.rb:221-225 : Invalidation#domain_scope
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 6.4 |
|
app/controllers/sponsors_controller.rb:52-57
«
annotate
»
Saikuro: complexity is 3.0 Flog: complexity is 5.0 |
app/models/signature_logs.rb:108-112 : SignatureLogs#fetch_events
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 6.4 |
|
app/controllers/admin/schedule_debate_controller.rb:8-19
«
annotate
»
Flog: complexity is 7.9 |
app/models/invalidation.rb:116-119 : Invalidation#count!
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 6.4 |
|
app/controllers/admin/debate_outcomes_controller.rb:13-24
«
annotate
»
Flog: complexity is 7.9 |
app/models/invalidation.rb:213-217 : Invalidation#email_scope
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 6.4 |
|
app/controllers/admin/government_response_controller.rb:13-24
«
annotate
»
Flog: complexity is 7.9 |
app/helpers/admin_helper.rb : AdminHelper#email_petitioners_with_count_submit_button
«
annotate
»
Reek: found 1 code smells Flog: complexity is 8.2 |
|
app/models/petition.rb:463-468
«
annotate
»
Flog: complexity is 7.9 |
app/helpers/home_helper.rb:68-71 : HomeHelper#trending_petitions
«
annotate
»
Saikuro: complexity is 3.0 Flog: complexity is 5.3 |
|
app/controllers/petitions_controller.rb:136-137
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 6.9 |
lib/tasks/constituencies.rake:1-20 : namespace#epets
«
annotate
»
Flog: complexity is 8.3 |
|
app/models/petition_creator.rb:209-211
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 6.9 |
app/models/concerns/geoip_lookup.rb : ClassMethods#country_name_for
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 3.0 Flog: complexity is 5.2 |
|
app/controllers/signatures_controller.rb:160-162
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 5.9 |
app/models/concerns/geoip_lookup.rb : ClassMethods#iso_code_for
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 3.0 Flog: complexity is 5.2 |
|
app/mailers/petition_mailer.rb:57-63
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 6.9 |
app/controllers/concerns/authentication.rb:61-63 : Authentication#logout_stale_session
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 6.2 |
|
app/mailers/petition_mailer.rb:65-71
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 6.9 |
app/models/concerns/browseable.rb:56-57 : Facets#facet_scope
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 7.2 |
|
app/helpers/admin_helper.rb:99-101
«
annotate
»
Flog: complexity is 7.9 |
app/models/signature_logs.rb:51-53 : Log#==
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 6.2 |
|
app/models/archived/petition.rb:242-249
«
annotate
»
Flog: complexity is 7.8 |
app/controllers/concerns/authentication.rb:39-42 : Authentication#check_for_password_change
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 6.2 |
|
app/controllers/signatures_controller.rb:129-131
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 6.8 |
app/models/parliament.rb:174-176 : Parliament#can_archive_petitions?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 7.2 |
|
app/controllers/admin/petition_emails_controller.rb:75-76
«
annotate
»
Flog: complexity is 7.8 |
app/models/domain.rb:117-120 : Domain#normalize
«
annotate
»
Saikuro: complexity is 2.0 Flog: average complexity is 6.2 |
|
app/controllers/admin/archived/petition_emails_controller.rb:75-76
«
annotate
»
Flog: complexity is 7.8 |
app/jobs/archive_signatures_job.rb : ArchiveSignaturesJob#reschedule_job
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 1.0 Flog: complexity is 6.4 |
|
app/helpers/cache_helper.rb:91-96
«
annotate
»
Flog: complexity is 7.8 |
app/models/rate_limit.rb : RateLimit#reload
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 6.6 |
|
app/models/petition.rb:317-320
«
annotate
»
Flog: complexity is 7.8 |
app/presenters/petition_csv_presenter.rb:15-16 : PetitionCSVPresenter#to_csv
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 7.1 |
|
app/models/parliament.rb:87-88
«
annotate
»
Flog: complexity is 7.8 |
app/models/constituency/api_client.rb : ApiClient#faraday
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 2.0 Flog: complexity is 5.2 |
|
app/controllers/admin/domains_controller.rb:19-24
«
annotate
»
Flog: complexity is 7.7 |
lib/tasks/epets.rake:3-8 : namespace(epets)#task#add_sysadmin_user
«
annotate
»
Flog: complexity is 8.1 |
|
app/controllers/admin/invalidations_controller.rb:19-24
«
annotate
»
Flog: complexity is 7.7 |
lib/package_builder.rb:193-200 : PackageBuilder#extract_archive
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 7.1 |
|
app/models/domain.rb:56-57
«
annotate
»
Flog: complexity is 7.7 |
app/controllers/signatures_controller.rb:44-49 : SignaturesController#create
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 6.1 |
|
app/mailers/petition_mailer.rb:47-50
«
annotate
»
Flog: complexity is 7.7 |
app/helpers/admin_helper.rb : AdminHelper#trending_window?
«
annotate
»
Reek: found 1 code smells Flog: complexity is 7.9 |
|
app/mailers/petition_mailer.rb:52-55
«
annotate
»
Flog: complexity is 7.7 |
app/helpers/admin_hub_helper.rb:46-53 : AdminHubHelper#summary_class_name_for_in_moderation
«
annotate
»
Saikuro: complexity is 3.0 Flog: complexity is 5.1 |
|
app/controllers/signatures_controller.rb:53-59
«
annotate
»
Saikuro: complexity is 3.0 Flog: complexity is 4.7 |
app/helpers/rejection_helper.rb:14-19 : RejectionHelper#rejection_reasons
«
annotate
»
Saikuro: complexity is 3.0 Flog: complexity is 5.1 |
|
app/controllers/admin/tags_controller.rb:36-41
«
annotate
»
Flog: complexity is 7.6 |
app/models/moderation_delay.rb : ModerationDelay#attributes=
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 3.0 Flog: complexity is 4.9 |
|
app/models/archived/signature.rb:162-167
«
annotate
»
Flog: complexity is 7.6 |
app/controllers/signatures_controller.rb:121-122 : SignaturesController#form_request_max_age
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 7.1 |
|
app/models/archived/signature.rb:59-64
«
annotate
»
Flog: complexity is 7.6 |
: AdminController#none
Flog: complexity is 8.0 |
|
app/models/signature.rb:336-341
«
annotate
»
Flog: complexity is 7.6 |
: SponsorsController#none
Flog: complexity is 8.0 |
|
app/models/signature.rb:87-92
«
annotate
»
Flog: complexity is 7.6 |
: Search#none
Flog: complexity is 8.0 |
|
app/models/signature.rb:727-728
«
annotate
»
Flog: complexity is 7.6 |
app/jobs/concerns/email_all_petition_signatories.rb:44-45 : ClassMethods#random_interval
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 7.0 |
|
app/models/rate_limit.rb:187-191
«
annotate
»
Flog: complexity is 7.6 |
app/controllers/trackers_controller.rb:33-35 : TrackersController#verify_form_token
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 6.0 |
|
app/models/rate_limit.rb:209-213
«
annotate
»
Flog: complexity is 7.6 |
app/controllers/signatures_controller.rb:219-224 : SignaturesController#send_email_to_petition_signer
«
annotate
»
Saikuro: complexity is 3.0 Flog: complexity is 5.0 |
|
app/models/rate_limit.rb:198-202
«
annotate
»
Flog: complexity is 7.6 |
app/controllers/sponsors_controller.rb:52-57 : SponsorsController#send_email_to_petition_signer
«
annotate
»
Saikuro: complexity is 3.0 Flog: complexity is 5.0 |
|
app/models/rate_limit.rb:176-180
«
annotate
»
Flog: complexity is 7.6 |
app/models/site.rb:369-371 : Site#constraints_for_moderation
«
annotate
»
Saikuro: complexity is 2.0 Flog: average complexity is 6.0 |
|
lib/package_builder.rb:150-165
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 6.6 |
app/models/site.rb:347-349 : Site#constraints_for_public
«
annotate
»
Saikuro: complexity is 2.0 Flog: average complexity is 6.0 |
|
app/models/archived/signature.rb:114-115
«
annotate
»
Flog: complexity is 7.6 |
app/models/petition.rb:463-468 : Petition#update_signature_count!
«
annotate
»
Flog: complexity is 7.9 |
|
app/models/archived/signature.rb:118-119
«
annotate
»
Flog: complexity is 7.6 |
app/controllers/petitions_controller.rb:136-137 : PetitionsController#valid_state?
«
annotate
»
Saikuro: complexity is 1.0 Flog: average complexity is 6.9 |
|
app/models/petition.rb:385-386
«
annotate
»
Flog: complexity is 7.6 |
app/jobs/refresh_constituency_party_job.rb : RefreshConstituencyPartyJob#faraday
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 2.0 Flog: complexity is 5.1 |
|
app/models/petition.rb:322-323
«
annotate
»
Flog: complexity is 7.6 |
app/models/petition_creator.rb:209-211 : PetitionCreator#replay_email?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 6.9 |
|
app/models/invalidation.rb:77-78
«
annotate
»
Flog: complexity is 7.6 |
app/controllers/signatures_controller.rb:160-162 : SignaturesController#verify_signed_token
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 5.9 |
|
app/models/invalidation.rb:85-86
«
annotate
»
Flog: complexity is 7.6 |
app/jobs/notify_trending_domain_job.rb : NotifyTrendingDomainJob#domain_address_link
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 1.0 Flog: complexity is 6.1 |
|
app/models/site.rb:238-239
«
annotate
»
Flog: complexity is 7.6 |
app/controllers/petitions_controller.rb : PetitionsController#index
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 2.0 Flog: average complexity is 5.2 |
|
app/models/invalidation.rb:97-98
«
annotate
»
Flog: complexity is 7.6 |
app/jobs/notify_trending_ip_job.rb : NotifyTrendingIpJob#ip_address_link
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 1.0 Flog: complexity is 6.1 |
|
app/models/invalidation.rb:73-74
«
annotate
»
Flog: complexity is 7.6 |
app/models/petition.rb : Petition#in_need_of_stopping
«
annotate
»
Reek: found 1 code smells Flog: complexity is 7.8 |
|
app/models/site.rb:242-243
«
annotate
»
Flog: complexity is 7.6 |
app/models/archived/petition.rb:242-249 : Petition#duration
«
annotate
»
Flog: complexity is 7.8 |
|
app/models/signature.rb:431-432
«
annotate
»
Flog: complexity is 7.6 |
app/controllers/signatures_controller.rb:129-131 : SignaturesController#delete_form_request
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 6.8 |
|
app/models/signature.rb:242-243
«
annotate
»
Flog: complexity is 7.6 |
app/controllers/admin/archived/petition_emails_controller.rb:75-76 : PetitionEmailsController#email_params
«
annotate
»
Flog: average complexity is 7.8 |
|
app/models/signature.rb:246-247
«
annotate
»
Flog: complexity is 7.6 |
app/models/domain.rb : Domain#candidates
«
annotate
»
Reek: found 1 code smells Flog: complexity is 7.7 |
|
app/controllers/admin/invalidations_controller.rb:103-107
«
annotate
»
Flog: complexity is 7.5 |
app/models/parliament.rb:87-88 : Parliament#current_or_create
«
annotate
»
Flog: complexity is 7.8 |
|
app/controllers/admin/domains_controller.rb:67-71
«
annotate
»
Flog: complexity is 7.5 |
app/controllers/admin/invalidations_controller.rb:19-24 : InvalidationsController#create
«
annotate
»
Flog: complexity is 7.7 |
|
app/controllers/admin/trending_domains_controller.rb:17-18
«
annotate
»
Flog: complexity is 7.5 |
app/controllers/admin/domains_controller.rb:19-24 : DomainsController#create
«
annotate
»
Flog: complexity is 7.7 |
|
app/controllers/admin/trending_ips_controller.rb:17-18
«
annotate
»
Flog: complexity is 7.5 |
: PackageBuilder#none
Flog: complexity is 7.7 |
|
app/models/petition.rb:650-654
«
annotate
»
Flog: complexity is 7.5 |
app/controllers/concerns/form_tracking.rb : FormTracking#form_request
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 6.4 |
|
app/helpers/cache_helper.rb:67-69
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 5.5 |
: ApplicationMailer#none
Flog: complexity is 7.7 |
|
app/models/parliament.rb:161-164
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 5.5 |
app/controllers/signatures_controller.rb:53-59 : SignaturesController#signed
«
annotate
»
Saikuro: complexity is 3.0 Flog: complexity is 4.7 |
|
app/helpers/cache_helper.rb:121-125
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 6.5 |
app/controllers/admin/tags_controller.rb:36-41 : TagsController#update
«
annotate
»
Flog: complexity is 7.6 |
|
app/controllers/concerns/flash_render.rb
«
annotate
»
Reek: found 4 code smells Saikuro: complexity is 6.0 Roodi: found 2 design problems |
app/models/signature.rb:336-341 : Signature#subscribe!
«
annotate
»
Flog: complexity is 7.6 |
|
app/models/archived/petition.rb:191-192
«
annotate
»
Flog: complexity is 7.4 |
app/models/signature.rb:87-92 : Signature#destroy!
«
annotate
»
Flog: complexity is 7.6 |
|
app/models/petition.rb:204-205
«
annotate
»
Flog: complexity is 7.4 |
app/models/signature.rb:727-728 : Signature#form_token_reused?
«
annotate
»
Flog: complexity is 7.6 |
|
app/models/signature.rb:427-428
«
annotate
»
Flog: complexity is 7.4 |
lib/package_builder.rb:150-165 : PackageBuilder#deployment_config
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 6.6 |
|
app/models/petition_creator.rb:152-153
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 6.4 |
app/models/petition.rb:385-386 : Petition#signed_since
«
annotate
»
Flog: complexity is 7.6 |
|
app/models/site.rb:397-398
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 6.4 |
app/models/petition.rb:322-323 : Petition#created_after
«
annotate
»
Flog: complexity is 7.6 |
|
app/lib/audit_logger.rb:3-6
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 5.4 |
app/models/invalidation.rb:85-86 : Invalidation#not_completed
«
annotate
»
Flog: complexity is 7.6 |
|
app/controllers/archived/signatures_controller.rb:25-27
«
annotate
»
Flog: complexity is 7.4 |
app/models/site.rb:238-239 : Site#default_enabled
«
annotate
»
Flog: complexity is 7.6 |
|
app/helpers/cache_helper.rb:13-14
«
annotate
»
Flog: complexity is 7.4 |
app/models/invalidation.rb:97-98 : Invalidation#started
«
annotate
»
Flog: complexity is 7.6 |
|
app/mailers/petition_mailer.rb:34-40
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 6.4 |
app/models/invalidation.rb:73-74 : Invalidation#cancelled
«
annotate
»
Flog: complexity is 7.6 |
|
app/lib/admin/task_runner.rb:23-28
«
annotate
»
Flog: complexity is 7.3 |
app/models/site.rb:242-243 : Site#default_protected
«
annotate
»
Flog: complexity is 7.6 |
|
lib/health_check_middleware.rb:8-18
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 5.3 |
app/models/invalidation.rb:77-78 : Invalidation#completed
«
annotate
»
Flog: complexity is 7.6 |
|
app/controllers/concerns/authentication.rb:28-30
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 6.3 |
app/models/signature.rb:431-432 : Signature#max_validated_at
«
annotate
»
Flog: complexity is 7.6 |
|
app/helpers/admin_helper.rb:103-109
«
annotate
»
Flog: complexity is 7.2 |
app/models/signature.rb:242-243 : Signature#creator
«
annotate
»
Flog: complexity is 7.6 |
|
app/models/site.rb:427-431
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 5.2 |
app/models/signature.rb:246-247 : Signature#sponsors
«
annotate
»
Flog: complexity is 7.6 |
|
app/models/rate_limit.rb:272-276
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 5.2 |
app/controllers/signatures_controller.rb : SignaturesController#form_request_expired?
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 6.2 |
|
app/controllers/admin/tasks_controller.rb:5-13
«
annotate
»
Flog: complexity is 7.2 |
: Holiday#none
Flog: complexity is 7.5 |
|
app/models/invalidation.rb:102-105
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 5.2 |
app/jobs/import_constituencies_job.rb : ImportConstituenciesJob#current_constituencies
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 2.0 Flog: complexity is 4.7 |
|
app/presenters/api_pagination_links_presenter.rb:26-27
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 6.2 |
app/jobs/import_constituencies_job.rb : ImportConstituenciesJob#faraday
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 2.0 Flog: complexity is 4.7 |
|
app/models/concerns/taggable.rb:11-12
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 6.2 |
app/helpers/archived_petition_helper.rb : ArchivedPetitionHelper#archived_threshold
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 4.8 |
|
app/models/concerns/taggable.rb:16-17
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 6.2 |
app/controllers/admin/domains_controller.rb:67-71 : DomainsController#domain_params
«
annotate
»
Flog: complexity is 7.5 |
|
app/models/petition.rb:626-631
«
annotate
»
Flog: complexity is 7.2 |
app/controllers/admin/invalidations_controller.rb:103-107 : InvalidationsController#invalidation_params
«
annotate
»
Flog: complexity is 7.5 |
|
app/models/petition.rb:555-557
«
annotate
»
Flog: complexity is 7.2 |
app/controllers/admin/trending_domains_controller.rb:17-18 : TrendingDomainsController#fetch_trending_domains
«
annotate
»
Flog: complexity is 7.5 |
|
app/models/petition.rb:549-551
«
annotate
»
Flog: complexity is 7.2 |
app/controllers/admin/trending_ips_controller.rb:17-18 : TrendingIpsController#fetch_trending_ips
«
annotate
»
Flog: complexity is 7.5 |
|
app/models/petition.rb:561-563
«
annotate
»
Flog: complexity is 7.2 |
app/models/petition.rb:650-654 : Petition#stop!
«
annotate
»
Flog: complexity is 7.5 |
|
app/jobs/concerns/email_all_petition_signatories.rb:49-55
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 5.2 |
app/helpers/cache_helper.rb:67-69 : Keys#petition
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 5.5 |
|
app/controllers/admin/take_down_controller.rb:8-13
«
annotate
»
Flog: complexity is 7.2 |
app/models/parliament.rb:161-164 : Parliament#notify_creators!
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 5.5 |
|
lib/tasks/constituencies.rake:18-20
«
annotate
»
Flog: complexity is 7.1 |
app/helpers/cache_helper.rb:121-125 : Fragment#initialize
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 6.5 |
|
app/controllers/feedback_controller.rb:29-30
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 5.1 |
app/controllers/local_petitions_controller.rb : LocalPetitionsController#all
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 5.1 |
|
lib/tasks/deploy.rake:3-26
«
annotate
»
Flog: complexity is 7.1 |
app/controllers/local_petitions_controller.rb : LocalPetitionsController#show
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 5.1 |
|
app/models/archived/petition.rb:64-70
«
annotate
»
Flog: complexity is 7.1 |
app/models/petition.rb:204-205 : Petition#in_debate_queue
«
annotate
»
Flog: complexity is 7.4 |
|
app/models/petition.rb:822-823
«
annotate
»
Flog: complexity is 7.1 |
app/models/signature.rb:427-428 : Signature#count_star
«
annotate
»
Flog: complexity is 7.4 |
|
app/models/petition.rb:97-103
«
annotate
»
Flog: complexity is 7.1 |
app/models/petition_creator.rb:152-153 : PetitionCreator#next_stage
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 6.4 |
|
app/models/signature.rb:711-712
«
annotate
»
Flog: complexity is 7.1 |
app/models/debate_outcome.rb : DebateOutcome#image_ratio
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.0 Flog: average complexity is 5.5 |
|
app/mailers/petition_mailer.rb:22-27
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 6.1 |
app/lib/audit_logger.rb:3-6 : AuditLogger#initialize
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 5.4 |
|
app/mailers/petition_mailer.rb:14-20
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 6.1 |
app/mailers/petition_mailer.rb:34-40 : PetitionMailer#notify_creator_that_petition_is_published
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 6.4 |
|
app/models/concerns/browseable.rb:34-36
«
annotate
»
Saikuro: complexity is 3.0 Flog: complexity is 4.1 |
lib/health_check_middleware.rb:8-18 : HealthCheckMiddleware#call
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 5.3 |
|
app/models/site.rb:82-86
«
annotate
»
Flog: complexity is 7.1 |
app/controllers/concerns/authentication.rb:28-30 : Authentication#redirect_to_target_or_default
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 6.3 |
|
app/models/site.rb:66-70
«
annotate
»
Flog: complexity is 7.1 |
app/helpers/cache_helper.rb : CacheKey#dependency_keys
«
annotate
»
Reek: found 1 code smells Flog: complexity is 6.7 |
|
app/models/admin_user.rb:120-121
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 6.1 |
app/models/petition.rb : Petition#reject
«
annotate
»
Reek: found 1 code smells Flog: complexity is 7.2 |
|
app/models/petition.rb:301-303
«
annotate
»
Flog: complexity is 7.1 |
app/controllers/local_petitions_controller.rb : LocalPetitionsController#csv_filename
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 4.9 |
|
app/models/petition.rb:295-297
«
annotate
»
Flog: complexity is 7.1 |
app/lib/audit_logger.rb : AuditLogger#format_message
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 2.0 Flog: complexity is 4.4 |
|
app/models/petition.rb:307-309
«
annotate
»
Flog: complexity is 7.1 |
app/helpers/admin_helper.rb:103-109 : AdminHelper#trending_window
«
annotate
»
Flog: complexity is 7.2 |
|
app/controllers/admin/admin_users_controller.rb:42-47
«
annotate
»
Flog: complexity is 7.1 |
app/models/site.rb:427-431 : Site#update_all
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 5.2 |
|
app/models/parliament.rb:167-170
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 5.0 |
app/models/rate_limit.rb:272-276 : RateLimit#use_country_rate?
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 5.2 |
|
app/models/petition_creator.rb:34-36
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 5.0 |
app/controllers/admin/tasks_controller.rb:5-13 : TasksController#create
«
annotate
»
Flog: complexity is 7.2 |
|
app/models/petition_creator.rb:128-130
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 6.0 |
app/models/invalidation.rb:102-105 : Invalidation#cancel!
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 5.2 |
|
app/models/petition_creator.rb:148-149
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 6.0 |
app/presenters/api_pagination_links_presenter.rb:26-27 : ApiPaginationLinksPresenter#current_page
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 6.2 |
|
app/controllers/admin/archived/petitions_controller.rb:35-36
«
annotate
»
Flog: complexity is 7.0 |
app/models/concerns/taggable.rb:16-17 : Taggable#tagged_with_any
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 6.2 |
|
app/controllers/admin/petitions_controller.rb:34-35
«
annotate
»
Flog: complexity is 7.0 |
app/models/concerns/taggable.rb:11-12 : Taggable#tagged_with_all
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 6.2 |
|
app/controllers/admin/profile_controller.rb:7-11
«
annotate
»
Flog: complexity is 7.0 |
app/models/petition.rb:555-557 : Petition#at_threshold_for_response?
«
annotate
»
Flog: complexity is 7.2 |
|
app/models/invalidation.rb:141-143
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 6.0 |
app/models/petition.rb:549-551 : Petition#at_threshold_for_moderation?
«
annotate
»
Flog: complexity is 7.2 |
|
app/mailers/petition_mailer.rb:93-96
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.9 |
app/models/petition.rb:561-563 : Petition#at_threshold_for_debate?
«
annotate
»
Flog: complexity is 7.2 |
|
app/models/signature_logs.rb:59-59
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.9 |
app/jobs/concerns/email_all_petition_signatories.rb:49-55 : EmailAllPetitionSignatories#perform
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 5.2 |
|
app/models/constituency/api_client.rb:10-13
«
annotate
»
Flog: complexity is 6.9 |
app/controllers/admin/take_down_controller.rb:8-13 : TakeDownController#update
«
annotate
»
Flog: complexity is 7.2 |
|
app/controllers/archived/petitions_controller.rb:74-75
«
annotate
»
Flog: complexity is 6.9 |
lib/package_builder.rb : PackageBuilder#deployment_config_name
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 3.0 Flog: complexity is 3.8 |
|
app/models/petition.rb:818-819
«
annotate
»
Flog: complexity is 6.9 |
lib/tasks/constituencies.rake:18-20 : namespace(epets)#namespace(constituencies)#task#refresh
«
annotate
»
Flog: complexity is 7.1 |
|
app/models/petition_creator.rb:203-206
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.9 |
app/controllers/feedback_controller.rb:29-30 : FeedbackController#build_feedback
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 5.1 |
|
app/jobs/import_constituencies_job.rb:51-55
«
annotate
»
Flog: complexity is 6.9 |
app/controllers/signatures_controller.rb : SignaturesController#form_request_timestamps
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 4.8 |
|
app/models/domain.rb:60-61
«
annotate
»
Flog: complexity is 6.9 |
app/helpers/petition_helper.rb : PetitionHelper#current_threshold
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 4.8 |
|
app/models/signature.rb:749-760
«
annotate
»
Flog: complexity is 6.9 |
lib/tasks/deploy.rake:3-26 : namespace#deploy
«
annotate
»
Flog: complexity is 7.1 |
|
app/controllers/admin/admin_users_controller.rb:21-27
«
annotate
»
Flog: complexity is 6.8 |
app/models/archived/petition.rb:64-70 : with_options#allow_nil
«
annotate
»
Flog: complexity is 7.1 |
|
app/models/site.rb:369-371
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 4.8 |
app/models/petition.rb:822-823 : Petition#update_all
«
annotate
»
Flog: complexity is 7.1 |
|
app/models/site.rb:347-349
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 4.8 |
app/models/petition.rb:97-103 : Petition#with_options#allow_nil
«
annotate
»
Flog: complexity is 7.1 |
|
app/controllers/concerns/bulk_verification.rb:38-39
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.8 |
app/models/signature.rb:711-712 : Signature#update_all
«
annotate
»
Flog: complexity is 7.1 |
|
app/models/petition_creator.rb:30-31
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.8 |
app/mailers/petition_mailer.rb:22-27 : PetitionMailer#email_creator
«
annotate
»
Saikuro: average complexity is 1.0 Flog: average complexity is 6.1 |
|
app/models/location.rb:10-11
«
annotate
»
Flog: complexity is 6.8 |
app/mailers/petition_mailer.rb:14-20 : PetitionMailer#email_signer
«
annotate
»
Saikuro: average complexity is 1.0 Flog: average complexity is 6.1 |
|
app/controllers/pages_controller.rb:20-24
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 4.8 |
app/models/concerns/browseable.rb:34-36 : Facets#slice
«
annotate
»
Saikuro: complexity is 3.0 Flog: complexity is 4.1 |
|
app/controllers/pages_controller.rb:28-32
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 4.8 |
app/models/admin_user.rb:120-121 : AdminUser#time_remaining
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 6.1 |
|
app/models/invalidation.rb:122-126
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 4.7 |
app/models/petition.rb:301-303 : Petition#close_petitions_early!
«
annotate
»
Flog: complexity is 7.1 |
|
lib/tasks/signatures.rake:4-8
«
annotate
»
Flog: complexity is 6.7 |
app/models/petition.rb:307-309 : Petition#stop_petitions_early!
«
annotate
»
Flog: complexity is 7.1 |
|
app/helpers/home_helper.rb:13-14
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 4.7 |
app/models/petition.rb:295-297 : Petition#close_petitions!
«
annotate
»
Flog: complexity is 7.1 |
|
app/controllers/concerns/authentication.rb:45-48
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 4.7 |
app/controllers/admin/admin_users_controller.rb:42-47 : AdminUsersController#destroy
«
annotate
»
Flog: complexity is 7.1 |
|
app/jobs/notify_creators_that_moderation_is_delayed_job.rb:4-6
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 4.7 |
app/models/parliament.rb:167-170 : Parliament#archive!
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 5.0 |
|
app/jobs/notify_creators_that_parliament_is_dissolving_job.rb:4-6
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 4.7 |
app/models/petition_creator.rb:34-36 : PetitionCreator#stage
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 5.0 |
|
app/lib/quiet_logger.rb:20-21
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 4.7 |
app/models/petition_creator.rb:128-130 : PetitionCreator#query_param
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 6.0 |
|
app/models/admin_user_session.rb:28-30
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 4.7 |
app/models/petition_creator.rb:148-149 : PetitionCreator#previous_stage
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 6.0 |
|
app/helpers/markdown_helper.rb:22-23
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.7 |
app/models/archived/signature.rb : Signature#formatted_postcode
«
annotate
»
Saikuro: complexity is 2.0 Flog: average complexity is 5.0 |
|
app/helpers/markdown_helper.rb:18-19
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.7 |
: TrackersController#none
Flog: complexity is 7.0 |
|
app/models/petition.rb:531-532
«
annotate
»
Flog: complexity is 6.7 |
: TrendingIpsByPetitionJob#none
Flog: complexity is 7.0 |
|
app/helpers/cache_helper.rb:179-180
«
annotate
»
Flog: complexity is 6.7 |
: StopPetitionsEarlyJob#none
Flog: complexity is 7.0 |
|
app/controllers/admin/statistics_controller.rb:22-24
«
annotate
»
Flog: complexity is 6.7 |
app/controllers/admin/archived/petitions_controller.rb:35-36 : PetitionsController#redirect_to_show_page
«
annotate
»
Flog: average complexity is 7.0 |
|
app/presenters/petition_csv_presenter.rb:56-57
«
annotate
»
Flog: complexity is 6.7 |
app/controllers/admin/profile_controller.rb:7-11 : ProfileController#update
«
annotate
»
Flog: complexity is 7.0 |
|
app/models/petition.rb:455-460
«
annotate
»
Flog: complexity is 6.7 |
app/models/location.rb : Location#current
«
annotate
»
Reek: found 1 code smells Flog: complexity is 6.8 |
|
app/lib/cloud_front_remote_ip.rb:13-20
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 4.6 |
app/models/invalidation.rb:141-143 : Invalidation#running?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 6.0 |
|
app/models/domain.rb:141-143
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 4.6 |
app/mailers/petition_mailer.rb:93-96 : PetitionMailer#gather_sponsors_for_petition
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.9 |
|
lib/tasks/epets.rake:64-66
«
annotate
»
Flog: complexity is 6.6 |
app/models/signature_logs.rb:59-59 : Log#month
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.9 |
|
app/helpers/application_helper.rb:46-47
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.6 |
app/helpers/date_time_helper.rb : DateTimeHelper#date_time_format
«
annotate
»
Reek: found 3 code smells Saikuro: complexity is 2.0 Flog: complexity is 4.0 |
|
app/models/constituency_petition_journal.rb:86-87
«
annotate
»
Flog: complexity is 6.6 |
app/models/petition.rb:818-819 : Petition#has_maximum_sponsors?
«
annotate
»
Flog: complexity is 6.9 |
|
app/models/country_petition_journal.rb:78-79
«
annotate
»
Flog: complexity is 6.6 |
app/models/petition_creator.rb:203-206 : PetitionCreator#valid?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.9 |
|
app/models/rate_limit.rb:78-87
«
annotate
»
Flog: complexity is 6.6 |
app/models/domain.rb : Domain#rules
«
annotate
»
Reek: found 1 code smells Flog: complexity is 6.9 |
|
app/models/petition_creator.rb:102-103
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.6 |
app/models/petition.rb:579-580 : Petition#signatures_by_country
«
annotate
»
Flog: average complexity is 6.9 |
|
app/models/petition_creator.rb:98-99
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.6 |
app/models/signature.rb:749-760 : Signature#generate_and_save_signed_token
«
annotate
»
Flog: complexity is 6.9 |
|
app/models/petition_creator.rb:90-91
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.6 |
app/controllers/admin/admin_users_controller.rb:21-27 : AdminUsersController#create
«
annotate
»
Flog: complexity is 6.8 |
|
app/models/petition_creator.rb:106-107
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.6 |
: GovernmentResponseController#none
Flog: average complexity is 6.8 |
|
app/models/concerns/browseable.rb:88-90
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.6 |
: NotesController#none
Flog: average complexity is 6.8 |
|
app/controllers/admin/tags_controller.rb:20-25
«
annotate
»
Flog: complexity is 6.6 |
: DebateOutcomesController#none
Flog: average complexity is 6.8 |
|
app/models/concerns/browseable.rb:28-31
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 4.5 |
app/models/archived/signature.rb : Signature#location
«
annotate
»
Saikuro: complexity is 2.0 Flog: average complexity is 4.8 |
|
lib/tasks/petitions.rake:2-71
«
annotate
»
Flog: complexity is 6.5 |
app/models/site.rb:397-398 : Site#closed_at_for_opening
«
annotate
»
Saikuro: complexity is 1.0 Flog: average complexity is 5.8 |
|
app/helpers/cache_helper.rb:163-164
«
annotate
»
Flog: complexity is 6.5 |
app/controllers/concerns/bulk_verification.rb:38-39 : BulkVerification#verify_bulk_request
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.8 |
|
app/mailers/petition_mailer.rb:130-135
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.5 |
app/models/petition_creator.rb:30-31 : PetitionCreator#duplicates
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.8 |
|
app/mailers/petition_mailer.rb:122-128
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.5 |
app/controllers/pages_controller.rb:20-24 : PagesController#browserconfig
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 4.8 |
|
app/models/archived/petition.rb:300-304
«
annotate
»
Flog: complexity is 6.5 |
app/controllers/pages_controller.rb:28-32 : PagesController#manifest
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 4.8 |
|
app/models/task.rb:22-26
«
annotate
»
Flog: complexity is 6.4 |
app/models/invalidation.rb:122-126 : Invalidation#start!
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 4.7 |
|
app/controllers/concerns/form_tracking.rb:23-25
«
annotate
»
Flog: complexity is 6.4 |
lib/tasks/signatures.rake:4-8 : namespace(epets)#namespace(signatures)#task#backfill_uuids
«
annotate
»
Flog: complexity is 6.7 |
|
app/helpers/admin_helper.rb:75-76
«
annotate
»
Flog: complexity is 6.4 |
app/controllers/concerns/authentication.rb:45-48 : Authentication#require_sysadmin
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 4.7 |
|
app/helpers/admin_helper.rb:87-88
«
annotate
»
Flog: complexity is 6.4 |
app/helpers/home_helper.rb:13-14 : ActionedPetitionsDecorator#empty?
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 4.7 |
|
app/helpers/admin_helper.rb:95-96
«
annotate
»
Flog: complexity is 6.4 |
app/jobs/notify_creators_that_parliament_is_dissolving_job.rb:4-6 : NotifyCreatorsThatParliamentIsDissolvingJob#perform
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 4.7 |
|
app/helpers/admin_helper.rb:67-68
«
annotate
»
Flog: complexity is 6.4 |
app/jobs/notify_creators_that_moderation_is_delayed_job.rb:4-6 : NotifyCreatorsThatModerationIsDelayedJob#perform
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 4.7 |
|
app/jobs/archive_signatures_job.rb:71-72
«
annotate
»
Flog: complexity is 6.4 |
app/lib/quiet_logger.rb:20-21 : QuietLogger#silence_request?
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 4.7 |
|
app/jobs/archive_signatures_job.rb
«
annotate
»
Reek: found 11 code smells Saikuro: average complexity is 5.5 Roodi: found 1 design problems |
app/models/admin_user_session.rb:28-30 : AdminUserSession#failed_login_count
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 4.7 |
|
app/jobs/fetch_country_register_job.rb:32-37
«
annotate
»
Flog: complexity is 6.4 |
app/helpers/markdown_helper.rb:18-19 : MarkdownHelper#markdown_to_html
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.7 |
|
app/lib/admin/task_runner.rb:45-46
«
annotate
»
Flog: complexity is 6.4 |
app/helpers/markdown_helper.rb:22-23 : MarkdownHelper#markdown_to_text
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.7 |
|
app/models/petition_creator.rb
«
annotate
»
Reek: found 15 code smells Saikuro: average complexity is 4.8 Roodi: found 2 design problems |
app/models/petition.rb:531-532 : Petition#signature_count_difference
«
annotate
»
Flog: complexity is 6.7 |
|
app/mailers/petition_mailer.rb:88-91
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.3 |
app/controllers/admin/statistics_controller.rb:22-24 : StatisticsController#parliament
«
annotate
»
Flog: complexity is 6.7 |
|
app/mailers/petition_mailer.rb:9-12
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.3 |
app/models/petition.rb:455-460 : Petition#reset_signature_count!
«
annotate
»
Flog: complexity is 6.7 |
|
app/mailers/petition_mailer.rb:29-32
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.3 |
app/helpers/search_helper.rb : SearchHelper#filtered_petition_count
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 4.6 |
|
app/mailers/petition_mailer.rb:4-7
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.3 |
: RateLimiting#none
Flog: complexity is 6.6 |
|
app/mailers/petition_mailer.rb:42-45
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.3 |
app/lib/cloud_front_remote_ip.rb:13-20 : CloudFrontGetIp#filter_proxies
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 4.6 |
|
app/mailers/petition_mailer.rb:83-86
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.3 |
app/models/domain.rb:141-143 : Domain#domain
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 4.6 |
|
app/controllers/signatures_controller.rb:96-98
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.3 |
lib/tasks/epets.rake:64-66 : namespace(epets)#namespace(site)#task#protect
«
annotate
»
Flog: complexity is 6.6 |
|
app/models/rate_limit.rb:236-242
«
annotate
»
Flog: complexity is 6.3 |
app/helpers/application_helper.rb:46-47 : ApplicationHelper#noindex_page?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.6 |
|
app/controllers/signatures_controller.rb:125-126
«
annotate
»
Flog: complexity is 6.2 |
app/models/constituency_petition_journal.rb:86-87 : ConstituencyPetitionJournal#update_all
«
annotate
»
Flog: complexity is 6.6 |
|
app/jobs/backfill_canonical_emails_job.rb
«
annotate
»
Reek: found 3 code smells Saikuro: complexity is 5.0 Flay: found 1 code duplications |
app/models/country_petition_journal.rb:78-79 : CountryPetitionJournal#update_all
«
annotate
»
Flog: complexity is 6.6 |
|
app/models/petition_creator.rb:74-79
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 4.2 |
app/models/petition_creator.rb:90-91 : PetitionCreator#background
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.6 |
|
app/jobs/backfill_signature_uuids_job.rb
«
annotate
»
Reek: found 3 code smells Saikuro: complexity is 5.0 Flay: found 1 code duplications |
app/models/petition_creator.rb:98-99 : PetitionCreator#additional_details
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.6 |
|
app/controllers/application_controller.rb:31-32
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.2 |
app/models/petition_creator.rb:102-103 : PetitionCreator#name
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.6 |
|
app/controllers/application_controller.rb:27-28
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.2 |
app/models/petition_creator.rb:106-107 : PetitionCreator#email
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.6 |
|
app/models/domain.rb:85-86
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.2 |
app/models/concerns/browseable.rb:88-90 : Search#current_page
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.6 |
|
app/models/site.rb:437-438
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.2 |
app/controllers/admin/tags_controller.rb:20-25 : TagsController#create
«
annotate
»
Flog: complexity is 6.6 |
|
app/models/rate_limit.rb:284-285
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.2 |
app/jobs/notify_trending_domain_job.rb : NotifyTrendingDomainJob#petition_link
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 1.0 Flog: complexity is 4.8 |
|
app/models/rate_limit.rb:300-301
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.2 |
app/jobs/notify_trending_ip_job.rb : NotifyTrendingIpJob#petition_link
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 1.0 Flog: complexity is 4.8 |
|
app/models/rate_limit.rb:296-297
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.2 |
app/models/concerns/browseable.rb:28-31 : Facets#each
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 4.5 |
|
app/models/rate_limit.rb:288-289
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.2 |
lib/tasks/petitions.rake:2-71 : namespace(epets)#namespace#petitions
«
annotate
»
Flog: complexity is 6.5 |
|
app/models/tag.rb:29-30
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.2 |
app/helpers/cache_helper.rb:163-164 : CacheKey#cache_key
«
annotate
»
Flog: complexity is 6.5 |
|
app/models/tag.rb:25-26
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.2 |
: EmailPetitionersJob#none
Flog: average complexity is 6.5 |
|
app/controllers/admin/statistics_controller.rb:12-16
«
annotate
»
Flog: complexity is 6.2 |
app/mailers/petition_mailer.rb:130-135 : PetitionMailer#notify_creator_of_debate_scheduled
«
annotate
»
Saikuro: average complexity is 1.0 Flog: average complexity is 5.5 |
|
app/models/petition.rb:642-646
«
annotate
»
Flog: complexity is 6.2 |
app/mailers/petition_mailer.rb:122-128 : PetitionMailer#notify_signer_of_debate_scheduled
«
annotate
»
Saikuro: average complexity is 1.0 Flog: average complexity is 5.5 |
|
app/controllers/admin/tags_controller.rb:68-72
«
annotate
»
Flog: complexity is 6.2 |
app/models/rate_limit.rb : RateLimit#ip_allowed?
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 3.8 |
|
app/controllers/concerns/authentication.rb:19-22
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 4.2 |
app/helpers/admin_helper.rb:87-88 : AdminHelper#trending_domains?
«
annotate
»
Flog: complexity is 6.4 |
|
app/models/admin_user_session.rb:18-19
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.1 |
app/helpers/admin_helper.rb:67-68 : AdminHelper#fraudulent_domains?
«
annotate
»
Flog: complexity is 6.4 |
|
app/models/parliament.rb:131-133
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.1 |
app/helpers/admin_helper.rb:95-96 : AdminHelper#trending_ips?
«
annotate
»
Flog: complexity is 6.4 |
|
app/models/parliament.rb:109-111
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.1 |
app/helpers/admin_helper.rb:75-76 : AdminHelper#fraudulent_ips?
«
annotate
»
Flog: complexity is 6.4 |
|
app/models/parliament.rb:123-125
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.1 |
app/models/rate_limit.rb : RateLimit#domain_blocked?
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 3.8 |
|
app/models/parliament.rb:135-137
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.1 |
app/models/rate_limit.rb : RateLimit#domain_allowed?
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 3.8 |
|
app/lib/active_support/cache/atomic_dalli_store.rb
«
annotate
»
Reek: found 20 code smells Saikuro: average complexity is 5.0 Flay: found 1 code duplications |
app/models/rate_limit.rb : RateLimit#validate_domain!
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 3.9 |
|
app/jobs/notify_trending_ip_job.rb:51-52
«
annotate
»
Flog: complexity is 6.1 |
app/models/archived/signature.rb : Signature#account
«
annotate
»
Saikuro: complexity is 2.0 Flog: average complexity is 4.3 |
|
app/jobs/notify_trending_domain_job.rb:51-52
«
annotate
»
Flog: complexity is 6.1 |
app/models/archived/signature.rb : Signature#domain
«
annotate
»
Saikuro: complexity is 2.0 Flog: average complexity is 4.3 |
|
app/mailers/admin_mailer.rb:4-6
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.1 |
app/mailers/petition_mailer.rb:29-32 : PetitionMailer#special_resend_of_email_confirmation_for_signer
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.3 |
|
app/mailers/archived/petition_mailer.rb:13-18
«
annotate
»
Flog: complexity is 6.1 |
app/mailers/petition_mailer.rb:9-12 : PetitionMailer#email_duplicate_signatures
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.3 |
|
app/mailers/archived/petition_mailer.rb:5-11
«
annotate
»
Flog: complexity is 6.1 |
app/mailers/petition_mailer.rb:83-86 : PetitionMailer#notify_creator_of_sponsored_petition_being_stopped
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.3 |
|
app/controllers/admin/signatures_controller.rb:124-125
«
annotate
»
Flog: complexity is 6.1 |
app/mailers/petition_mailer.rb:88-91 : PetitionMailer#notify_creator_of_validated_petition_being_stopped
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.3 |
|
app/controllers/petitions_controller.rb:104-106
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 4.1 |
app/mailers/petition_mailer.rb:42-45 : PetitionMailer#notify_sponsor_that_petition_is_published
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.3 |
|
app/models/petition.rb:838-841
«
annotate
»
Flog: complexity is 6.0 |
app/mailers/petition_mailer.rb:4-7 : PetitionMailer#email_confirmation_for_signer
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.3 |
|
app/controllers/admin/invalidations_controller.rb:53-61
«
annotate
»
Flog: complexity is 6.0 |
app/models/petition.rb : Petition#signatures_to_email_for
«
annotate
»
Reek: found 1 code smells Flog: average complexity is 6.2 |
|
app/controllers/admin/invalidations_controller.rb:65-73
«
annotate
»
Flog: complexity is 6.0 |
app/controllers/signatures_controller.rb:96-98 : SignaturesController#token_param
«
annotate
»
Saikuro: average complexity is 1.0 Flog: average complexity is 5.3 |
|
app/lib/audit_logger.rb:14-21
«
annotate
»
Flog: complexity is 5.9 |
app/models/petition_creator.rb:74-79 : PetitionCreator#to_param
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 4.2 |
|
app/helpers/auto_link_helper.rb
«
annotate
»
Reek: found 12 code smells Saikuro: average complexity is 4.2 Roodi: found 3 design problems |
app/controllers/application_controller.rb:27-28 : ApplicationController#csv_request?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.2 |
|
app/controllers/concerns/bulk_verification.rb:34-36
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.9 |
app/controllers/application_controller.rb:31-32 : ApplicationController#json_request?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.2 |
|
app/controllers/admin/domains_controller.rb:45-50
«
annotate
»
Flog: complexity is 5.9 |
app/models/domain.rb:85-86 : Domain#aliased_domains
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.2 |
|
app/helpers/cache_helper.rb:152-154
«
annotate
»
Flog: complexity is 5.9 |
app/models/site.rb:437-438 : Site#scope
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.2 |
|
app/helpers/auto_link_helper.rb:50-52
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.9 |
app/models/rate_limit.rb:288-289 : RateLimit#country_sustained_rate_exceeded?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.2 |
|
app/controllers/petitions_controller.rb:96-97
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.9 |
app/models/rate_limit.rb:296-297 : RateLimit#burst_rate_exceeded?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.2 |
|
app/controllers/petitions_controller.rb:100-101
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.9 |
app/models/rate_limit.rb:284-285 : RateLimit#country_burst_rate_exceeded?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.2 |
|
app/models/concerns/perishable_token_generator.rb:5-7
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.9 |
app/models/rate_limit.rb:300-301 : RateLimit#sustained_rate_exceeded?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.2 |
|
app/models/signature_logs.rb:47-49
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.9 |
app/models/tag.rb:29-30 : Tag#remove_tag_from_archived_petitions
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.2 |
|
app/models/signature_logs.rb:39-41
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.9 |
app/models/tag.rb:25-26 : Tag#remove_tag_from_petitions
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.2 |
|
app/models/signature_logs.rb:35-37
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.9 |
app/controllers/admin/statistics_controller.rb:12-16 : StatisticsController#moderation
«
annotate
»
Flog: complexity is 6.2 |
|
app/models/signature_logs.rb:31-33
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.9 |
app/models/petition.rb:642-646 : Petition#close!
«
annotate
»
Flog: complexity is 6.2 |
|
app/models/signature_logs.rb:43-45
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.9 |
app/models/parliament.rb:109-111 : Parliament#opened?
«
annotate
»
Saikuro: complexity is 1.0 Flog: average complexity is 5.2 |
|
app/jobs/update_signature_counts_job.rb
«
annotate
»
Reek: found 4 code smells Saikuro: average complexity is 4.5 Roodi: found 2 design problems |
app/models/parliament.rb:123-125 : Parliament#dissolved?
«
annotate
»
Saikuro: complexity is 1.0 Flog: average complexity is 5.2 |
|
app/controllers/admin/archived/petitions_controller.rb:97-98
«
annotate
»
Flog: complexity is 5.8 |
app/controllers/admin/tags_controller.rb:68-72 : TagsController#tag_params
«
annotate
»
Flog: complexity is 6.2 |
|
app/controllers/admin/petitions_controller.rb:80-81
«
annotate
»
Flog: complexity is 5.8 |
app/jobs/debated_petitions_job.rb : DebatedPetitionsJob#perform
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 1.0 Flog: complexity is 4.4 |
|
app/controllers/concerns/form_tracking.rb:36-37
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.8 |
app/controllers/concerns/authentication.rb:19-22 : Authentication#current_user
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 4.2 |
|
app/controllers/signatures_controller.rb:237-238
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.8 |
app/models/admin_user_session.rb:18-19 : AdminUserSession#last_login_attempt?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.1 |
|
app/controllers/signatures_controller.rb:138-139
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.8 |
app/validators/email_validator.rb : EmailValidator#plus_address?
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 3.5 |
|
app/jobs/update_signature_counts_job.rb:82-83
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.8 |
app/models/parliament.rb:135-137 : Parliament#archived?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.1 |
|
app/lib/admin/task_runner.rb:41-42
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.8 |
app/models/rate_limit.rb : RateLimit#strip_blank_lines
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 5.0 |
|
app/models/concerns/browseable.rb:204-205
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.8 |
app/mailers/admin_mailer.rb:4-6 : AdminMailer#threshold_email_reminder
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 5.1 |
|
app/models/signature.rb:81-85
«
annotate
»
Flog: complexity is 5.8 |
app/lib/admin/task_runner.rb : TaskRunner#run
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 3.4 |
|
app/controllers/admin/archived/petition_details_controller.rb:7-11
«
annotate
»
Flog: complexity is 5.8 |
app/controllers/petitions_controller.rb:104-106 : PetitionsController#request_format
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 4.1 |
|
app/controllers/admin/admin_users_controller.rb:34-38
«
annotate
»
Flog: complexity is 5.8 |
app/helpers/moderation_helper.rb : ModerationHelper#moderation_delay?
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 4.8 |
|
app/controllers/admin/archived/petition_tags_controller.rb:8-12
«
annotate
»
Flog: complexity is 5.8 |
: TagsController#none
Flog: complexity is 6.0 |
|
app/controllers/admin/archived/notes_controller.rb:13-17
«
annotate
»
Flog: complexity is 5.8 |
: TrendingDomainsByPetitionJob#none
Flog: complexity is 6.0 |
|
app/controllers/admin/moderation_controller.rb:4-9
«
annotate
»
Flog: complexity is 5.8 |
: ClosePetitionsEarlyJob#none
Flog: complexity is 6.0 |
|
app/models/petition.rb:788-790
«
annotate
»
Flog: complexity is 5.8 |
: Facets#none
Flog: complexity is 6.0 |
|
app/helpers/admin_helper.rb:33-38
«
annotate
»
Flog: complexity is 5.8 |
app/models/statistics.rb : Statistics##moderation
«
annotate
»
Saikuro: complexity is 6.0 |
|
app/helpers/admin_helper.rb:21-26
«
annotate
»
Flog: complexity is 5.8 |
: Browseable#none
Flog: complexity is 6.0 |
|
app/helpers/admin_helper.rb:41-46
«
annotate
»
Flog: complexity is 5.8 |
app/controllers/admin/invalidations_controller.rb:53-61 : InvalidationsController#destroy
«
annotate
»
Flog: complexity is 6.0 |
|
lib/package_builder.rb:336-340
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.8 |
app/controllers/admin/invalidations_controller.rb:65-73 : InvalidationsController#cancel
«
annotate
»
Flog: complexity is 6.0 |
|
app/models/signature_logs.rb:86-87
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.8 |
app/controllers/admin/archived/petitions_controller.rb:73-74 : PetitionsController#fetch_petition
«
annotate
»
Flog: average complexity is 6.0 |
|
app/jobs/refresh_constituency_party_job.rb:69-72
«
annotate
»
Flog: complexity is 5.7 |
app/models/invalidation.rb : Invalidation#applied_conditions
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 3.9 |
|
app/jobs/fetch_country_register_job.rb:41-44
«
annotate
»
Flog: complexity is 5.7 |
app/models/petition.rb:583-584 : Petition#signatures_by_constituency
«
annotate
»
Flog: average complexity is 5.9 |
|
lib/package_builder.rb:210-216
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.7 |
app/controllers/concerns/bulk_verification.rb:34-36 : BulkVerification#all_ids
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.9 |
|
app/lib/active_support/cache/atomic_dalli_store.rb:46-49
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.7 |
app/controllers/admin/domains_controller.rb:45-50 : DomainsController#destroy
«
annotate
»
Flog: complexity is 5.9 |
|
lib/package_builder.rb:308-314
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.7 |
app/helpers/cache_helper.rb:152-154 : CacheKey#initialize
«
annotate
»
Flog: complexity is 5.9 |
|
app/models/archived/debate_outcome.rb:45-46
«
annotate
»
Flog: complexity is 5.7 |
app/helpers/auto_link_helper.rb:50-52 : AutoLinker#sanitize?
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.9 |
|
app/models/concerns/browseable.rb:42-44
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.7 |
app/controllers/petitions_controller.rb:96-97 : PetitionsController#redirect_to_home_page_if_dissolved
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.9 |
|
app/models/admin_user.rb:116-117
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.7 |
app/controllers/petitions_controller.rb:100-101 : PetitionsController#redirect_to_home_page_unless_opened
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.9 |
|
app/controllers/admin/user_sessions_controller.rb:23-26
«
annotate
»
Flog: complexity is 5.7 |
app/models/concerns/perishable_token_generator.rb:5-7 : PerishableTokenGenerator#has_perishable_token
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.9 |
|
app/models/site.rb:379-383
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.7 |
app/models/signature_logs.rb:35-37 : Log#uri
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.9 |
|
lib/package_builder.rb:185-187
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.7 |
app/models/signature_logs.rb:43-45 : Log#referrer
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.9 |
|
app/helpers/date_time_helper.rb:47-52
«
annotate
»
Flog: complexity is 5.7 |
app/models/signature_logs.rb:47-49 : Log#agent
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.9 |
|
app/models/constituency.rb:65-67
«
annotate
»
Flog: complexity is 5.6 |
app/models/signature_logs.rb:39-41 : Log#response
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.9 |
|
lib/tasks/epets.rake:85-87
«
annotate
»
Flog: complexity is 5.6 |
app/models/signature_logs.rb:31-33 : Log#method
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.9 |
|
lib/tasks/epets.rake:92-94
«
annotate
»
Flog: complexity is 5.6 |
app/models/rate_limit.rb : RateLimit#ip_blocked?
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 3.8 |
|
app/helpers/cache_helper.rb:167-168
«
annotate
»
Flog: complexity is 5.6 |
app/models/petition.rb : Petition#update_lock!
«
annotate
»
Reek: found 2 code smells Flog: average complexity is 5.0 |
|
app/jobs/concerns/email_delivery.rb:86-88
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.6 |
app/lib/email_reminder.rb : EmailReminder#self.threshold_email_reminder
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 5.0 |
|
app/jobs/trending_ips_by_petition_job.rb:38-39
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.6 |
app/jobs/notify_everyone_of_moderation_decision_job.rb : NotifyEveryoneOfModerationDecisionJob#notify_everyone_of_publication
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 3.3 |
|
app/models/concerns/browseable.rb:188-189
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.6 |
app/jobs/notify_everyone_of_moderation_decision_job.rb : NotifyEveryoneOfModerationDecisionJob#notify_everyone_of_rejection
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 3.3 |
|
app/models/domain.rb:97-98
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.6 |
app/controllers/petitions_controller.rb : PetitionsController#show
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 2.0 Flog: average complexity is 3.1 |
|
app/models/constituency.rb:103-105
«
annotate
»
Flog: complexity is 5.6 |
app/controllers/concerns/form_tracking.rb:36-37 : FormTracking#image_loaded_at
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.8 |
|
app/models/archived/petition.rb:342-346
«
annotate
»
Flog: complexity is 5.6 |
app/controllers/signatures_controller.rb:138-139 : SignaturesController#session_signed_token
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.8 |
|
app/models/petition.rb:860-864
«
annotate
»
Flog: complexity is 5.6 |
app/controllers/signatures_controller.rb:237-238 : SignaturesController#signature_params
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.8 |
|
app/models/petition.rb:880-883
«
annotate
»
Flog: complexity is 5.6 |
app/jobs/update_signature_counts_job.rb:82-83 : UpdateSignatureCountsJob#reschedule_job
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.8 |
|
app/lib/quiet_logger.rb:4-7
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.6 |
app/lib/admin/task_runner.rb:41-42 : TaskRunner#run_task
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.8 |
|
app/helpers/rejection_helper.rb:8-10
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.5 |
app/models/concerns/browseable.rb:204-205 : Search#star
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.8 |
|
app/controllers/concerns/authentication.rb:33-36
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.5 |
app/models/archived/signature.rb : Signature#validated?
«
annotate
»
Saikuro: complexity is 1.0 Flog: average complexity is 4.8 |
|
app/controllers/signatures_controller.rb:207-210
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.5 |
app/controllers/admin/admin_users_controller.rb:34-38 : AdminUsersController#update
«
annotate
»
Flog: complexity is 5.8 |
|
app/controllers/signatures_controller.rb:213-216
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.5 |
app/controllers/admin/moderation_controller.rb:4-9 : ModerationController#update
«
annotate
»
Flog: complexity is 5.8 |
|
app/controllers/signatures_controller.rb:201-204
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.5 |
app/models/petition.rb:788-790 : Petition#deadline
«
annotate
»
Flog: complexity is 5.8 |
|
app/controllers/sponsors_controller.rb:86-88
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.5 |
app/helpers/admin_helper.rb:21-26 : AdminHelper#admin_petition_facets_for_select
«
annotate
»
Flog: complexity is 5.8 |
|
app/controllers/sponsors_controller.rb:92-94
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.5 |
app/helpers/admin_helper.rb:33-38 : AdminHelper#admin_archived_petition_facets_for_select
«
annotate
»
Flog: complexity is 5.8 |
|
app/models/domain.rb:101-103
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.5 |
app/helpers/admin_helper.rb:41-46 : AdminHelper#admin_invalidation_facets_for_select
«
annotate
»
Flog: complexity is 5.8 |
|
app/models/domain.rb:109-111
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.5 |
lib/package_builder.rb:336-340 : PackageBuilder#website_url
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.8 |
|
app/models/domain.rb:113-115
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.5 |
app/models/signature_logs.rb:86-87 : SignatureLogs#each
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.8 |
|
app/models/domain.rb:105-107
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.5 |
lib/package_builder.rb:210-216 : PackageBuilder#package_gems
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.7 |
|
app/models/admin_user_session.rb:22-24
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.5 |
app/lib/active_support/cache/atomic_dalli_store.rb:46-49 : AtomicDalliStore#lock!
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.7 |
|
app/models/archived/signature.rb:53-56
«
annotate
»
Flog: complexity is 5.5 |
lib/package_builder.rb:308-314 : PackageBuilder#remove_archive
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.7 |
|
app/controllers/signatures_controller.rb:150-151
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.5 |
app/models/concerns/browseable.rb:42-44 : Facets#facet_counts
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.7 |
|
app/models/petition/statistics.rb:9-14
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.5 |
app/models/admin_user.rb:116-117 : AdminUser#elapsed_time
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.7 |
|
app/models/concerns/taggable.rb:20-21
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.5 |
app/controllers/admin/user_sessions_controller.rb:23-26 : UserSessionsController#destroy
«
annotate
»
Flog: complexity is 5.7 |
|
app/models/concerns/taggable.rb:24-25
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.5 |
app/models/site.rb:379-383 : Site#password=
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.7 |
|
app/helpers/search_helper.rb:24-28
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.5 |
lib/package_builder.rb:185-187 : PackageBuilder#deployment_key
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.7 |
|
app/mailers/archived/petition_mailer.rb:46-51
«
annotate
»
Flog: complexity is 5.5 |
app/models/constituency.rb:65-67 : Constituency#example_postcodes
«
annotate
»
Flog: complexity is 5.6 |
|
app/mailers/archived/petition_mailer.rb:38-44
«
annotate
»
Flog: complexity is 5.5 |
lib/tasks/epets.rake:85-87 : namespace(epets)#namespace(site)#task#trending_domains
«
annotate
»
Flog: complexity is 5.6 |
|
app/models/petition.rb:792-794
«
annotate
»
Flog: complexity is 5.5 |
lib/tasks/epets.rake:92-94 : namespace(epets)#namespace(site)#task#trending_ips
«
annotate
»
Flog: complexity is 5.6 |
|
app/controllers/signatures_controller.rb:146-147
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.4 |
app/helpers/cache_helper.rb:167-168 : CacheKey#digest
«
annotate
»
Flog: complexity is 5.6 |
|
app/controllers/application_controller.rb:67-68
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.4 |
app/jobs/concerns/email_delivery.rb:86-88 : EmailDelivery#record_email_sent
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.6 |
|
app/controllers/application_controller.rb:21-23
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.4 |
app/jobs/trending_ips_by_petition_job.rb:38-39 : TrendingIpsByPetitionJob#trending_ips
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.6 |
|
app/models/concerns/browseable.rb:152-154
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.4 |
app/models/concerns/browseable.rb:188-189 : Search#execute_search_with_pagination
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.6 |
|
app/models/rate_limit.rb:108-110
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.4 |
app/models/domain.rb:97-98 : Domain#name=
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.6 |
|
app/models/site.rb:22-24
«
annotate
»
Flog: complexity is 5.4 |
: ModerationDelay#none
Flog: complexity is 5.6 |
|
app/models/petition.rb:886-890
«
annotate
»
Flog: complexity is 5.4 |
app/models/constituency.rb:103-105 : Constituency#empty_results_exception
«
annotate
»
Flog: complexity is 5.6 |
|
app/helpers/home_helper.rb:45-47
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.4 |
app/models/petition.rb:860-864 : Petition#evaluate_debate_state
«
annotate
»
Flog: average complexity is 5.6 |
|
app/controllers/constituencies_controller.rb:4-8
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.4 |
app/models/petition.rb:880-883 : Petition#update_moderation_lag
«
annotate
»
Flog: complexity is 5.6 |
|
app/helpers/home_helper.rb:21-22
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.4 |
app/lib/quiet_logger.rb:4-7 : QuietLogger#initialize
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.6 |
|
app/jobs/email_petitioners_job.rb:29-30
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.4 |
app/helpers/rejection_helper.rb:8-10 : RejectionHelper#rejection_description
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.5 |
|
app/jobs/update_signature_counts_job.rb:70-71
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.4 |
app/controllers/signatures_controller.rb:213-216 : SignaturesController#redirect_to_petition_page_if_closed_for_signing
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.5 |
|
app/jobs/email_job.rb:44-45
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.4 |
app/controllers/concerns/authentication.rb:33-36 : Authentication#require_admin
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.5 |
|
app/helpers/cache_helper.rb:147-148
«
annotate
»
Flog: complexity is 5.4 |
app/controllers/signatures_controller.rb:201-204 : SignaturesController#redirect_to_petition_page_if_rejected
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.5 |
|
app/models/archived/signature.rb:102-103
«
annotate
»
Flog: complexity is 5.4 |
app/controllers/signatures_controller.rb:207-210 : SignaturesController#redirect_to_petition_page_if_closed
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.5 |
|
app/models/archived/petition.rb:205-206
«
annotate
»
Flog: complexity is 5.4 |
app/controllers/sponsors_controller.rb:86-88 : SponsorsController#redirect_to_petition_page_if_moderated
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.5 |
|
app/models/archived/petition.rb:175-176
«
annotate
»
Flog: complexity is 5.4 |
app/controllers/sponsors_controller.rb:92-94 : SponsorsController#redirect_to_moderation_info_page_if_sponsored
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.5 |
|
app/models/archived/signature.rb:224-225
«
annotate
»
Flog: complexity is 5.4 |
app/models/domain.rb:105-107 : Domain#strip_characters
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.5 |
|
app/models/archived/petition.rb:209-210
«
annotate
»
Flog: complexity is 5.4 |
app/models/domain.rb:101-103 : Domain#strip_characters?
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.5 |
|
app/models/archived/petition.rb:201-202
«
annotate
»
Flog: complexity is 5.4 |
app/models/domain.rb:113-115 : Domain#strip_extension
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.5 |
|
app/models/archived/petition.rb:115-116
«
annotate
»
Flog: complexity is 5.4 |
app/models/domain.rb:109-111 : Domain#strip_extension?
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.5 |
|
app/models/archived/signature.rb:93-94
«
annotate
»
Flog: complexity is 5.4 |
app/models/admin_user_session.rb:22-24 : AdminUserSession#time_remaining
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.5 |
|
app/models/archived/petition.rb:197-198
«
annotate
»
Flog: complexity is 5.4 |
app/controllers/signatures_controller.rb:150-151 : SignaturesController#store_signed_token_in_session
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.5 |
|
app/models/petition.rb:430-431
«
annotate
»
Flog: complexity is 5.4 |
app/models/petition/statistics.rb:9-14 : Statistics#refresh!
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.5 |
|
app/models/petition.rb:442-443
«
annotate
»
Flog: complexity is 5.4 |
app/models/site.rb : Site#authenticate
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: average complexity is 4.4 |
|
app/models/petition.rb:446-447
«
annotate
»
Flog: complexity is 5.4 |
: LogsController#none
Flog: complexity is 5.5 |
|
app/models/petition.rb:434-435
«
annotate
»
Flog: complexity is 5.4 |
app/models/concerns/taggable.rb:20-21 : Taggable#tagged
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.5 |
|
app/models/petition.rb:438-439
«
annotate
»
Flog: complexity is 5.4 |
app/models/concerns/taggable.rb:24-25 : Taggable#untagged
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.5 |
|
app/models/petition.rb:280-281
«
annotate
»
Flog: complexity is 5.4 |
app/helpers/search_helper.rb:24-28 : SearchHelper#petition_result_path
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.5 |
|
app/models/petition.rb:276-277
«
annotate
»
Flog: complexity is 5.4 |
app/controllers/admin/signatures_controller.rb:124-125 : SignaturesController#fetch_signatures
«
annotate
»
Flog: average complexity is 5.5 |
|
app/models/signature.rb:443-444
«
annotate
»
Flog: complexity is 5.4 |
app/models/concerns/geoip_lookup.rb : ClassMethods#geoip_lookup
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 2.8 |
|
app/models/signature.rb:184-185
«
annotate
»
Flog: complexity is 5.4 |
app/models/petition.rb:792-794 : Petition#closing_early_for_dissolution?
«
annotate
»
Flog: complexity is 5.5 |
|
app/models/signature.rb:196-197
«
annotate
»
Flog: complexity is 5.4 |
app/controllers/signatures_controller.rb:146-147 : SignaturesController#expire_signed_tokens
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.4 |
|
app/models/signature.rb:141-142
«
annotate
»
Flog: complexity is 5.4 |
app/controllers/application_controller.rb:67-68 : ApplicationController#site_protected?
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.4 |
|
app/models/signature.rb:109-110
«
annotate
»
Flog: complexity is 5.4 |
app/controllers/application_controller.rb:21-23 : ApplicationController#authenticate
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.4 |
|
app/mailers/sponsor_mailer.rb:22-28
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.4 |
app/models/concerns/browseable.rb:152-154 : Search#in_batches
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.4 |
|
app/models/rate_limit.rb
«
annotate
»
Churn: detected high level of churn (changed 12 times) Reek: found 26 code smells Saikuro: average complexity is 2.4 Flay: found 2 code duplications Roodi: found 2 design problems |
app/models/rate_limit.rb:108-110 : RateLimit#ignore_ip?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.4 |
|
lib/health_check.rb:69-71
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.4 |
app/models/site.rb:22-24 : Site#table_exists?
«
annotate
»
Flog: complexity is 5.4 |
|
app/models/signature.rb:524-527
«
annotate
»
Flog: complexity is 5.3 |
app/helpers/markdown_helper.rb : MarkdownHelper#options_for_parser
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
|
app/jobs/reset_petition_signature_count_job.rb:6-8
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.3 |
app/helpers/markdown_helper.rb : MarkdownHelper#options_for_renderer
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
|
app/models/site.rb:311-313
«
annotate
»
Flog: complexity is 5.3 |
app/models/petition.rb:886-890 : Petition#calculate_moderation_lag
«
annotate
»
Flog: complexity is 5.4 |
|
app/models/debate_outcome.rb:42-43
«
annotate
»
Flog: complexity is 5.3 |
app/helpers/home_helper.rb:45-47 : HomeHelper#actioned_petitions
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.4 |
|
app/controllers/archived/signatures_controller.rb:21-23
«
annotate
»
Flog: complexity is 5.3 |
app/controllers/constituencies_controller.rb:4-8 : ConstituenciesController#index
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.4 |
|
app/models/email_requested_receipt.rb:12-14
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.3 |
app/helpers/home_helper.rb:21-22 : ActionedPetitionsDecorator#with_result
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.4 |
|
app/models/email_requested_receipt.rb:7-9
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.3 |
app/jobs/archived/email_petitioners_job.rb : EmailPetitionersJob#log_message
«
annotate
»
Saikuro: average complexity is 1.0 Flog: average complexity is 4.4 |
|
app/models/archived/petition.rb:187-188
«
annotate
»
Flog: complexity is 5.2 |
app/jobs/update_signature_counts_job.rb:70-71 : UpdateSignatureCountsJob#log_message
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.4 |
|
app/models/petition.rb:357-358
«
annotate
»
Flog: complexity is 5.2 |
app/jobs/email_job.rb:44-45 : EmailJob#log_message
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.4 |
|
app/models/site.rb:130-131
«
annotate
»
Flog: complexity is 5.2 |
app/models/petition.rb:442-443 : Petition#debate_date_in_the_past
«
annotate
»
Flog: complexity is 5.4 |
|
app/models/site.rb:126-127
«
annotate
»
Flog: complexity is 5.2 |
app/models/petition.rb:446-447 : Petition#scheduled_debate_state
«
annotate
»
Flog: complexity is 5.4 |
|
app/models/site.rb:94-95
«
annotate
»
Flog: complexity is 5.2 |
app/models/petition.rb:438-439 : Petition#awaiting_debate_state
«
annotate
»
Flog: complexity is 5.4 |
|
app/models/parliament.rb:71-72
«
annotate
»
Flog: complexity is 5.2 |
app/models/petition.rb:434-435 : Petition#scheduled_for_debate
«
annotate
»
Flog: complexity is 5.4 |
|
app/models/parliament.rb:35-36
«
annotate
»
Flog: complexity is 5.2 |
app/models/petition.rb:430-431 : Petition#threshold_for_debate_reached
«
annotate
»
Flog: complexity is 5.4 |
|
app/models/site.rb:134-135
«
annotate
»
Flog: complexity is 5.2 |
app/models/petition.rb:276-277 : Petition#with_debated_outcome
«
annotate
»
Flog: complexity is 5.4 |
|
app/models/site.rb:90-91
«
annotate
»
Flog: complexity is 5.2 |
app/models/petition.rb:280-281 : Petition#with_response
«
annotate
»
Flog: complexity is 5.4 |
|
app/models/concerns/geoip_lookup.rb:11-14
«
annotate
»
Flog: complexity is 5.2 |
app/models/signature.rb:443-444 : Signature#normalize_domain
«
annotate
»
Flog: complexity is 5.4 |
|
app/models/concerns/geoip_lookup.rb:17-20
«
annotate
»
Flog: complexity is 5.2 |
app/models/signature.rb:184-185 : Signature#need_emailing_for
«
annotate
»
Flog: complexity is 5.4 |
|
app/controllers/application_controller.rb:83-86
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.2 |
app/models/signature.rb:196-197 : Signature#petition_ids_signed_since
«
annotate
»
Flog: complexity is 5.4 |
|
app/models/constituency/api_client.rb:19-25
«
annotate
»
Flog: complexity is 5.2 |
app/models/signature.rb:109-110 : Signature#similar
«
annotate
»
Flog: complexity is 5.4 |
|
app/models/petition.rb:573-575
«
annotate
»
Flog: complexity is 5.2 |
app/models/signature.rb:141-142 : Signature#for_sector
«
annotate
»
Flog: complexity is 5.4 |
|
app/models/petition.rb:543-545
«
annotate
»
Flog: complexity is 5.2 |
lib/package_builder.rb : PackageBuilder#skip_build?
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
|
app/models/petition.rb:567-569
«
annotate
»
Flog: complexity is 5.2 |
app/models/signature_logs.rb : SignatureLogs#ms
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 4.3 |
|
app/models/signature.rb:723-725
«
annotate
»
Flog: complexity is 5.2 |
app/mailers/sponsor_mailer.rb:22-28 : SponsorMailer#petition_and_email_confirmation_for_sponsor
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.4 |
|
app/models/archived/petition.rb:260-261
«
annotate
»
Flog: complexity is 5.2 |
lib/package_builder.rb : PackageBuilder#skip_gems?
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
|
app/models/archived/petition.rb:264-265
«
annotate
»
Flog: complexity is 5.2 |
lib/health_check.rb:69-71 : HealthCheck#database_integrity
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.4 |
|
app/models/archived/petition.rb:252-253
«
annotate
»
Flog: complexity is 5.2 |
app/models/signature.rb:524-527 : Signature#fraudulent!
«
annotate
»
Flog: complexity is 5.3 |
|
app/models/petition.rb:369-370
«
annotate
»
Flog: complexity is 5.2 |
lib/package_builder.rb : PackageBuilder#write_script
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
|
app/controllers/admin/domains_controller.rb:55-56
«
annotate
»
Flog: complexity is 5.2 |
app/jobs/concerns/email_all_petition_signatories.rb : ClassMethods#requested_at_iso8601
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
|
app/controllers/admin/admin_users_controller.rb:13-14
«
annotate
»
Flog: complexity is 5.2 |
app/jobs/reset_petition_signature_count_job.rb:6-8 : ResetPetitionSignatureCountJob#perform
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.3 |
|
app/controllers/admin/archived/petitions_controller.rb:12-15
«
annotate
»
Flog: complexity is 5.2 |
app/models/parliament.rb:131-133 : Parliament#registration_closed?
«
annotate
»
Saikuro: complexity is 1.0 Flog: average complexity is 4.3 |
|
app/controllers/admin/petitions_controller.rb:10-13
«
annotate
»
Flog: complexity is 5.2 |
app/models/email_requested_receipt.rb:7-9 : EmailRequestedReceipt#get
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.3 |
|
app/models/admin_user.rb:112-114
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.1 |
app/models/email_requested_receipt.rb:12-14 : EmailRequestedReceipt#set
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.3 |
|
app/models/constituency_petition_journal.rb:64-65
«
annotate
»
Flog: complexity is 5.1 |
app/models/petition.rb:357-358 : Petition#mark_petitions_as_debated!
«
annotate
»
Flog: complexity is 5.2 |
|
app/models/country_petition_journal.rb:56-57
«
annotate
»
Flog: complexity is 5.1 |
app/models/site.rb:130-131 : Site#last_petition_created_at!
«
annotate
»
Flog: complexity is 5.2 |
|
app/controllers/archived/petitions_controller.rb:14-18
«
annotate
»
Flog: complexity is 5.1 |
app/models/site.rb:126-127 : Site#last_checked_at!
«
annotate
»
Flog: complexity is 5.2 |
|
app/controllers/petitions_controller.rb:23-27
«
annotate
»
Flog: complexity is 5.1 |
app/models/site.rb:134-135 : Site#signature_count_updated_at!
«
annotate
»
Flog: complexity is 5.2 |
|
app/controllers/local_petitions_controller.rb:28-32
«
annotate
»
Flog: complexity is 5.1 |
app/controllers/application_controller.rb:83-86 : ApplicationController#set_cors_headers
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.2 |
|
app/controllers/local_petitions_controller.rb:20-24
«
annotate
»
Flog: complexity is 5.1 |
lib/package_builder.rb : PackageBuilder#deploy_release?
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
|
app/jobs/refresh_constituency_party_job.rb:61-65
«
annotate
»
Flog: complexity is 5.1 |
app/models/petition.rb:567-569 : Petition#below_threshold_for_response?
«
annotate
»
Flog: complexity is 5.2 |
|
lib/tasks/errors.rake:19-20
«
annotate
»
Flog: complexity is 5.1 |
app/models/petition.rb:573-575 : Petition#below_threshold_for_debate?
«
annotate
»
Flog: complexity is 5.2 |
|
lib/tasks/petitions.rake:39-40
«
annotate
»
Flog: complexity is 5.1 |
app/models/petition.rb:543-545 : Petition#will_reach_threshold_for_moderation?
«
annotate
»
Flog: complexity is 5.2 |
|
app/models/rate_limit.rb:250-256
«
annotate
»
Flog: complexity is 5.1 |
app/models/signature.rb:723-725 : Signature#form_duration
«
annotate
»
Flog: complexity is 5.2 |
|
app/controllers/petitions_controller.rb:140-141
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.1 |
app/models/archived/petition.rb:260-261 : Petition#threshold_for_debate_reached?
«
annotate
»
Flog: complexity is 5.2 |
|
app/controllers/local_petitions_controller.rb:38-39
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.1 |
app/models/archived/petition.rb:264-265 : Petition#threshold_for_response_reached?
«
annotate
»
Flog: complexity is 5.2 |
|
app/controllers/local_petitions_controller.rb:50-51
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.1 |
app/models/petition.rb:369-370 : Petition#nearly_overdue_in_moderation
«
annotate
»
Flog: complexity is 5.2 |
|
app/models/petition_creator.rb:132-134
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.1 |
app/controllers/admin/domains_controller.rb:55-56 : DomainsController#fetch_domains
«
annotate
»
Flog: complexity is 5.2 |
|
app/models/archived/signature.rb:306-310
«
annotate
»
Flog: complexity is 5.0 |
app/controllers/admin/admin_users_controller.rb:13-14 : AdminUsersController#index
«
annotate
»
Flog: complexity is 5.2 |
|
app/models/signature.rb:733-737
«
annotate
»
Flog: complexity is 5.0 |
app/controllers/admin/archived/petition_details_controller.rb:7-11 : PetitionDetailsController#update
«
annotate
»
Flog: average complexity is 5.1 |
|
app/helpers/auto_link_helper.rb:17-21
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.0 |
app/controllers/admin/archived/petition_tags_controller.rb:8-12 : PetitionTagsController#update
«
annotate
»
Flog: average complexity is 5.1 |
|
app/presenters/api_pagination_links_presenter.rb:10-16
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.0 |
app/controllers/admin/archived/notes_controller.rb:13-17 : NotesController#update
«
annotate
»
Flog: average complexity is 5.1 |
|
app/models/concerns/browseable.rb:84-85
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.0 |
app/models/holiday.rb:31-32 : Holiday#christmas?
«
annotate
»
Saikuro: complexity is 1.0 Flog: average complexity is 4.1 |
|
app/models/site.rb:30-32
«
annotate
»
Flog: complexity is 5.0 |
app/models/holiday.rb:35-36 : Holiday#easter?
«
annotate
»
Saikuro: complexity is 1.0 Flog: average complexity is 4.1 |
|
app/models/rate_limit.rb:172-173
«
annotate
»
Flog: complexity is 5.0 |
app/jobs/update_signature_counts_job.rb : UpdateSignatureCountsJob#current_time
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 3.6 |
|
app/models/signature.rb:488-489
«
annotate
»
Flog: complexity is 5.0 |
app/models/admin_user.rb:112-114 : AdminUser#account_disabled=
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 3.1 |
|
app/models/signature.rb
«
annotate
»
Churn: detected high level of churn (changed 36 times) Reek: found 39 code smells Saikuro: average complexity is 1.6 Flay: found 10 code duplications Roodi: found 8 design problems |
app/models/constituency_petition_journal.rb:64-65 : ConstituencyPetitionJournal#signature_counts
«
annotate
»
Flog: complexity is 5.1 |
|
app/models/petition_creator.rb:16-19
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.0 |
app/models/country_petition_journal.rb:56-57 : CountryPetitionJournal#signature_counts
«
annotate
»
Flog: complexity is 5.1 |
|
lib/package_builder.rb:146-148
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.0 |
app/jobs/petition_count_job.rb : PetitionCountJob#current_time
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 3.6 |
|
app/models/parliament.rb:143-145
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.0 |
app/jobs/reset_petition_signature_count_job.rb : ResetPetitionSignatureCountJob#current_time
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 3.6 |
|
app/models/parliament.rb:139-141
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.0 |
app/jobs/reset_petition_signature_count_job.rb : ResetPetitionSignatureCountJob#error_message
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 3.6 |
|
app/models/archived/petition.rb:312-314
«
annotate
»
Flog: complexity is 5.0 |
lib/tasks/errors.rake:19-20 : namespace(errors)#task#asset_data
«
annotate
»
Flog: complexity is 5.1 |
|
app/models/petition.rb:744-746
«
annotate
»
Flog: complexity is 5.0 |
lib/tasks/petitions.rake:39-40 : namespace(epets)#namespace(petitions)#task#default_scope
«
annotate
»
Flog: complexity is 5.1 |
|
app/lib/email_reminder.rb:39-44
«
annotate
»
Flog: complexity is 4.9 |
lib/health_check.rb : HealthCheck#database_connection
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 2.6 |
|
app/models/holiday.rb:11-12
«
annotate
»
Flog: complexity is 4.9 |
lib/health_check.rb : HealthCheck#utctime
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 3.6 |
|
app/models/holiday.rb:15-16
«
annotate
»
Flog: complexity is 4.9 |
app/controllers/local_petitions_controller.rb:50-51 : LocalPetitionsController#find_by_slug
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.1 |
|
app/controllers/local_petitions_controller.rb:74-78
«
annotate
»
Flog: complexity is 4.9 |
app/controllers/local_petitions_controller.rb:38-39 : LocalPetitionsController#sanitize_postcode
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.1 |
|
app/models/site.rb:417-419
«
annotate
»
Flog: complexity is 4.9 |
app/controllers/petitions_controller.rb:140-141 : PetitionsController#search_params
«
annotate
»
Saikuro: complexity is 1.0 Flog: average complexity is 4.1 |
|
app/models/constituency.rb:19-20
«
annotate
»
Flog: complexity is 4.9 |
app/models/petition_creator.rb:132-134 : PetitionCreator#stage_param
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.1 |
|
app/controllers/admin/petition_statistics_controller.rb:12-13
«
annotate
»
Flog: complexity is 4.9 |
app/models/site.rb : Site#standard_port
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 2.9 |
|
app/controllers/admin/archived/signatures_controller.rb:71-72
«
annotate
»
Flog: complexity is 4.9 |
app/models/rate_limit.rb : RateLimit#normalize_lines
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
|
app/controllers/admin/archived/petition_emails_controller.rb:71-72
«
annotate
»
Flog: complexity is 4.9 |
app/controllers/application_controller.rb : ApplicationController#unknown_format?
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 3.6 |
|
app/controllers/admin/archived/petition_emails_controller.rb:63-64
«
annotate
»
Flog: complexity is 4.9 |
app/controllers/application_controller.rb : ApplicationController#current_time
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 3.6 |
|
app/controllers/admin/archived/debate_outcomes_controller.rb:30-31
«
annotate
»
Flog: complexity is 4.9 |
: InvalidationsController#none
Flog: complexity is 5.0 |
|
app/controllers/admin/archived/government_response_controller.rb:30-31
«
annotate
»
Flog: complexity is 4.9 |
: DomainsController#none
Flog: complexity is 5.0 |
|
app/controllers/admin/signatures_controller.rb:128-129
«
annotate
»
Flog: complexity is 4.9 |
: DateTimeHelper#none
Flog: complexity is 5.0 |
|
app/controllers/admin/petition_emails_controller.rb:63-64
«
annotate
»
Flog: complexity is 4.9 |
app/helpers/auto_link_helper.rb:17-21 : AutoLinker#initialize
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.0 |
|
app/controllers/admin/petition_emails_controller.rb:71-72
«
annotate
»
Flog: complexity is 4.9 |
: Archived#none
Flog: complexity is 5.0 |
|
app/controllers/admin/government_response_controller.rb:30-31
«
annotate
»
Flog: complexity is 4.9 |
app/presenters/api_pagination_links_presenter.rb:10-16 : ApiPaginationLinksPresenter#serialize
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.0 |
|
app/controllers/admin/moderation_controller.rb:15-16
«
annotate
»
Flog: complexity is 4.9 |
app/models/concerns/browseable.rb:84-85 : Search#initialize
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.0 |
|
app/controllers/admin/debate_outcomes_controller.rb:30-31
«
annotate
»
Flog: complexity is 4.9 |
app/models/site.rb:30-32 : Site#instance
«
annotate
»
Flog: complexity is 5.0 |
|
app/controllers/signatures_controller.rb:117-118
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
app/models/signature.rb:488-489 : Signature#email=
«
annotate
»
Flog: complexity is 5.0 |
|
app/helpers/cache_helper.rb:19-20
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
app/models/signature.rb : #unsubscribe!
«
annotate
»
Saikuro: average complexity is 5.0 |
|
app/helpers/cache_helper.rb:75-76
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
app/models/petition_creator.rb:16-19 : PetitionCreator#initialize
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.0 |
|
app/helpers/application_helper.rb:30-31
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
lib/package_builder.rb:146-148 : PackageBuilder#deploy_build?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.0 |
|
app/helpers/cache_helper.rb:83-84
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
app/models/parliament.rb:143-145 : Parliament#archiving_finished?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.0 |
|
app/helpers/application_helper.rb:22-23
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
app/models/parliament.rb:139-141 : Parliament#archiving?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 4.0 |
|
app/controllers/petitions_controller.rb:92-93
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
app/models/archived/signature.rb : Signature#subscribed?
«
annotate
»
Saikuro: complexity is 1.0 Flog: average complexity is 4.0 |
|
app/helpers/application_helper.rb:50-51
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
app/lib/email_reminder.rb:39-44 : EmailReminder#logger
«
annotate
»
Flog: complexity is 4.9 |
|
app/controllers/petitions_controller.rb:132-133
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
app/models/site.rb:417-419 : Site#validate#if
«
annotate
»
Flog: complexity is 4.9 |
|
app/jobs/stop_petitions_early_job.rb:5-6
«
annotate
»
Flog: complexity is 4.9 |
app/models/constituency.rb:19-20 : Constituency#before_validation#unless
«
annotate
»
Flog: complexity is 4.9 |
|
app/jobs/close_petitions_early_job.rb:5-6
«
annotate
»
Flog: complexity is 4.9 |
app/controllers/admin/petition_statistics_controller.rb:12-13 : PetitionStatisticsController#fetch_petition
«
annotate
»
Flog: complexity is 4.9 |
|
app/models/concerns/taggable.rb:45-46
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
app/controllers/admin/archived/petition_emails_controller.rb:71-72 : PetitionEmailsController#fetch_email
«
annotate
»
Flog: average complexity is 4.9 |
|
app/models/signature_logs.rb:58-58
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
app/controllers/admin/archived/petition_emails_controller.rb:63-64 : PetitionEmailsController#fetch_petition
«
annotate
»
Flog: average complexity is 4.9 |
|
app/models/signature_logs.rb:60-60
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
app/controllers/admin/archived/government_response_controller.rb:30-31 : GovernmentResponseController#fetch_petition
«
annotate
»
Flog: average complexity is 4.9 |
|
app/models/signature_logs.rb:63-63
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
app/controllers/admin/archived/debate_outcomes_controller.rb:30-31 : DebateOutcomesController#fetch_petition
«
annotate
»
Flog: average complexity is 4.9 |
|
app/models/signature_logs.rb:62-62
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
app/controllers/admin/moderation_controller.rb:15-16 : ModerationController#fetch_petition
«
annotate
»
Flog: complexity is 4.9 |
|
app/models/signature_logs.rb:61-61
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
app/controllers/signatures_controller.rb:117-118 : SignaturesController#last_form_request_timestamp
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
|
app/models/petition_creator.rb:110-111
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
app/helpers/cache_helper.rb:19-20 : Dependencies#dependencies_for
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
|
app/helpers/page_title_helper.rb
«
annotate
»
Reek: found 3 code smells Saikuro: average complexity is 4.0 Roodi: found 1 design problems |
app/controllers/petitions_controller.rb:92-93 : PetitionsController#petition_id
«
annotate
»
Saikuro: complexity is 1.0 Flog: average complexity is 3.9 |
|
app/models/moderation_delay.rb:13-18
«
annotate
»
Flog: complexity is 4.9 |
app/helpers/cache_helper.rb:83-84 : Keys#url
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
|
app/controllers/admin/invalidations_controller.rb:29-36
«
annotate
»
Flog: complexity is 4.9 |
app/helpers/cache_helper.rb:75-76 : Keys#reveal_response
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
|
app/controllers/petitions_controller.rb:114-115
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
app/helpers/application_helper.rb:50-51 : ApplicationHelper#original_url
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
|
app/controllers/petitions_controller.rb:118-119
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
app/helpers/application_helper.rb:30-31 : ApplicationHelper#petition_page?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
|
app/controllers/petitions_controller.rb:122-123
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
app/helpers/application_helper.rb:22-23 : ApplicationHelper#home_page?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
|
app/helpers/petition_helper.rb:6-11
«
annotate
»
Flog: complexity is 4.8 |
app/controllers/petitions_controller.rb:132-133 : PetitionsController#state_present?
«
annotate
»
Saikuro: complexity is 1.0 Flog: average complexity is 3.9 |
|
app/helpers/archived_petition_helper.rb:2-7
«
annotate
»
Flog: complexity is 4.8 |
app/jobs/stop_petitions_early_job.rb:5-6 : StopPetitionsEarlyJob#schedule_for
«
annotate
»
Flog: complexity is 4.9 |
|
app/models/concerns/browseable.rb
«
annotate
»
Reek: found 7 code smells Saikuro: complexity is 4.0 |
app/jobs/close_petitions_early_job.rb:5-6 : ClosePetitionsEarlyJob#schedule_for
«
annotate
»
Flog: complexity is 4.9 |
|
app/models/archived/signature.rb:284-288
«
annotate
»
Flog: complexity is 4.8 |
app/models/concerns/taggable.rb:45-46 : Taggable#tag_names
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
|
app/models/signature.rb:715-719
«
annotate
»
Flog: complexity is 4.8 |
app/models/signature_logs.rb:60-60 : Log#day
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
|
app/controllers/signatures_controller.rb:113-114
«
annotate
»
Flog: complexity is 4.8 |
app/models/archived/signature.rb : Signature#already_unsubscribed?
«
annotate
»
Saikuro: complexity is 1.0 Flog: average complexity is 3.9 |
|
app/helpers/moderation_helper.rb:2-3
«
annotate
»
Flog: complexity is 4.8 |
app/models/archived/signature.rb : Signature#invalid_unsubscribe_token?
«
annotate
»
Saikuro: complexity is 1.0 Flog: average complexity is 3.9 |
|
app/controllers/admin/archived/debate_outcomes_controller.rb:38-39
«
annotate
»
Flog: complexity is 4.8 |
app/models/signature_logs.rb:63-63 : Log#sec
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
|
app/controllers/admin/rate_limits_controller.rb:23-24
«
annotate
»
Flog: complexity is 4.8 |
app/models/signature_logs.rb:62-62 : Log#min
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
|
app/controllers/admin/holidays_controller.rb:27-28
«
annotate
»
Flog: complexity is 4.8 |
app/models/signature_logs.rb:61-61 : Log#hour
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
|
app/controllers/admin/archived/petition_details_controller.rb:25-26
«
annotate
»
Flog: complexity is 4.8 |
app/models/signature_logs.rb:58-58 : Log#year
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
|
app/controllers/admin/debate_outcomes_controller.rb:38-39
«
annotate
»
Flog: complexity is 4.8 |
app/models/petition_creator.rb:110-111 : PetitionCreator#postcode
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
|
app/jobs/notify_trending_ip_job.rb:47-48
«
annotate
»
Flog: complexity is 4.8 |
app/models/signature.rb : Signature#column_name_for
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: average complexity is 3.5 |
|
app/jobs/notify_trending_domain_job.rb:47-48
«
annotate
»
Flog: complexity is 4.8 |
app/controllers/admin/invalidations_controller.rb:29-36 : InvalidationsController#edit
«
annotate
»
Flog: complexity is 4.9 |
|
app/models/site.rb:282-283
«
annotate
»
Flog: complexity is 4.8 |
app/controllers/petitions_controller.rb:122-123 : PetitionsController#build_petition_creator
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
|
app/models/site.rb:278-279
«
annotate
»
Flog: complexity is 4.8 |
app/controllers/petitions_controller.rb:118-119 : PetitionsController#retrieve_petition
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
|
app/helpers/application_helper.rb
«
annotate
»
Reek: found 5 code smells Saikuro: complexity is 4.0 |
app/controllers/petitions_controller.rb:114-115 : PetitionsController#retrieve_petitions
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.9 |
|
app/helpers/admin_hub_helper.rb:34-36
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
lib/package_builder.rb : PackageBuilder#treeish
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
|
app/helpers/admin_hub_helper.rb:22-24
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
lib/package_builder.rb : PackageBuilder#username
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
|
app/helpers/admin_hub_helper.rb:18-20
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
: Email#none
Flog: average complexity is 4.8 |
|
app/controllers/signatures_controller.rb:92-94
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
app/controllers/admin/rate_limits_controller.rb:23-24 : RateLimitsController#rate_limit_params
«
annotate
»
Flog: complexity is 4.8 |
|
app/helpers/signature_helper.rb:2-3
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
app/controllers/admin/holidays_controller.rb:27-28 : HolidaysController#holiday_params
«
annotate
»
Flog: complexity is 4.8 |
|
app/controllers/trackers_controller.rb:19-21
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
app/controllers/admin/archived/debate_outcomes_controller.rb:38-39 : DebateOutcomesController#debate_outcome_params
«
annotate
»
Flog: average complexity is 4.8 |
|
app/controllers/signatures_controller.rb:88-90
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
app/models/site.rb:278-279 : Site#default_constraints_for_public
«
annotate
»
Flog: complexity is 4.8 |
|
app/controllers/application_controller.rb:89-91
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
app/models/site.rb:282-283 : Site#default_constraints_for_moderation
«
annotate
»
Flog: complexity is 4.8 |
|
app/helpers/page_title_helper.rb:26-28
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
app/helpers/debate_outcome_helper.rb : DebateOutcomeHelper#debate_outcome_links?
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 2.5 |
|
app/jobs/import_constituencies_job.rb:59-61
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
app/helpers/admin_hub_helper.rb:18-20 : AdminHubHelper#recently_in_moderation_untagged_count
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
|
app/models/concerns/browseable.rb:120-122
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
app/helpers/admin_hub_helper.rb:34-36 : AdminHubHelper#overdue_in_moderation_untagged_count
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
|
app/models/email_requested_receipt.rb:22-24
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
app/helpers/admin_hub_helper.rb:22-24 : AdminHubHelper#nearly_overdue_in_moderation_untagged_count
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
|
app/mailers/petition_mailer.rb:148-149
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
app/controllers/signatures_controller.rb:92-94 : SignaturesController#signature_id
«
annotate
»
Saikuro: average complexity is 1.0 Flog: average complexity is 3.7 |
|
app/jobs/import_constituencies_job.rb:43-47
«
annotate
»
Flog: complexity is 4.7 |
app/helpers/signature_helper.rb:2-3 : SignatureHelper#signature_count
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
|
app/jobs/import_constituencies_job.rb:39-40
«
annotate
»
Flog: complexity is 4.7 |
app/controllers/trackers_controller.rb:19-21 : TrackersController#petition_id
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
|
lib/package_builder.rb:405-406
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
app/controllers/signatures_controller.rb:88-90 : SignaturesController#petition_id
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
|
lib/package_builder.rb:83-84
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
app/controllers/application_controller.rb:89-91 : ApplicationController#show_cookie_message?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
|
lib/package_builder.rb:91-92
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
app/helpers/page_title_helper.rb:26-28 : PageTitleBuilder#controller
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
|
lib/package_builder.rb:134-135
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
app/jobs/import_constituencies_job.rb:59-61 : ImportConstituenciesJob#example_postcodes
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
|
app/jobs/notify_trending_ip_job.rb:39-40
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
app/models/concerns/browseable.rb:120-122 : Search#query
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
|
app/jobs/notify_trending_ip_job.rb:10-11
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
app/models/email_requested_receipt.rb:22-24 : EmailRequestedReceipt#possible_timestamps
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
|
app/jobs/notify_trending_ip_job.rb:43-44
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
app/mailers/petition_mailer.rb:148-149 : PetitionMailer#subject_for
«
annotate
»
Saikuro: average complexity is 1.0 Flog: average complexity is 3.7 |
|
app/jobs/notify_trending_domain_job.rb:43-44
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
app/controllers/petitions_controller.rb : PetitionsController#csv_filename
«
annotate
»
Saikuro: complexity is 1.0 Flog: average complexity is 3.7 |
|
app/jobs/notify_trending_domain_job.rb:39-40
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
lib/package_builder.rb:405-406 : PackageBuilder#write_appspec
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
|
app/jobs/notify_trending_domain_job.rb:10-11
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
lib/package_builder.rb:83-84 : PackageBuilder#archive_file
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
|
app/models/site.rb:456-457
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
lib/package_builder.rb:134-135 : PackageBuilder#create_revision_file
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
|
app/models/rate_limit.rb:232-233
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
lib/package_builder.rb:91-92 : PackageBuilder#archive_path
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
|
app/models/holiday.rb:7-9
«
annotate
»
Flog: complexity is 4.7 |
app/jobs/notify_trending_ip_job.rb:39-40 : NotifyTrendingIpJob#start_time
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
|
app/controllers/application_controller.rb:79-80
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
app/jobs/notify_trending_ip_job.rb:10-11 : NotifyTrendingIpJob#perform
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
|
app/models/signature.rb:698-700
«
annotate
»
Flog: complexity is 4.7 |
app/jobs/notify_trending_ip_job.rb:43-44 : NotifyTrendingIpJob#end_time
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
|
app/controllers/petitions_controller.rb:180-181
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
app/jobs/notify_trending_domain_job.rb:43-44 : NotifyTrendingDomainJob#end_time
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
|
app/controllers/local_petitions_controller.rb:82-83
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
app/jobs/notify_trending_domain_job.rb:10-11 : NotifyTrendingDomainJob#perform
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
|
app/controllers/concerns/bulk_verification.rb:42-44
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.6 |
app/jobs/notify_trending_domain_job.rb:39-40 : NotifyTrendingDomainJob#start_time
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
|
app/helpers/home_helper.rb:59-61
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 2.6 |
app/models/site.rb:456-457 : Site#standard_port?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
|
app/controllers/concerns/bulk_verification.rb:46-47
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.6 |
app/models/rate_limit.rb:232-233 : RateLimit#country_blocked?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
|
app/helpers/petition_helper.rb:33-34
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.6 |
app/models/holiday.rb:7-9 : Holiday#instance
«
annotate
»
Flog: complexity is 4.7 |
|
app/helpers/home_helper.rb:41-42
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.6 |
app/controllers/application_controller.rb:79-80 : ApplicationController#set_seen_cookie_message
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
|
app/jobs/update_signature_counts_job.rb:86-87
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.6 |
app/models/signature.rb:698-700 : Signature#number
«
annotate
»
Flog: complexity is 4.7 |
|
app/models/petition/statistics.rb:23-24
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.6 |
app/controllers/local_petitions_controller.rb:82-83 : LocalPetitionsController#set_content_disposition
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.7 |
|
app/models/petition/statistics.rb:27-28
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.6 |
app/controllers/petitions_controller.rb:180-181 : PetitionsController#set_content_disposition
«
annotate
»
Saikuro: complexity is 1.0 Flog: average complexity is 3.7 |
|
app/models/domain.rb:145-146
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.6 |
app/controllers/concerns/bulk_verification.rb:42-44 : BulkVerification#verify_bulk_request_id
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.6 |
|
app/models/trending_domain.rb:37-38
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.6 |
app/helpers/home_helper.rb:59-61 : HomeHelper#no_petitions_yet?
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 2.6 |
|
app/models/trending_ip.rb:48-49
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.6 |
app/controllers/concerns/bulk_verification.rb:46-47 : BulkVerification#raise_bad_request
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.6 |
|
app/helpers/search_helper.rb:18-21
«
annotate
»
Flog: complexity is 4.6 |
app/helpers/petition_helper.rb:33-34 : PetitionHelper#reveal_government_response?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.6 |
|
app/helpers/application_helper.rb:17-20
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.6 |
app/helpers/home_helper.rb:41-42 : HomeHelper#any_actioned_petitions?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.6 |
|
app/jobs/refresh_constituency_party_job.rb
«
annotate
»
Reek: found 13 code smells Saikuro: average complexity is 2.6 Flay: found 3 code duplications Roodi: found 1 design problems |
app/jobs/update_signature_counts_job.rb:86-87 : UpdateSignatureCountsJob#scheduled_time
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.6 |
|
app/controllers/petitions_controller.rb:44-46
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 2.5 |
app/models/petition/statistics.rb:27-28 : Statistics#refresh_pending_rate
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.6 |
|
app/controllers/petitions_controller.rb:78-80
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 2.5 |
app/models/petition/statistics.rb:23-24 : Statistics#refresh_duplicate_emails
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.6 |
|
app/controllers/petitions_controller.rb:50-52
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 2.5 |
app/models/domain.rb:145-146 : Domain#characters_regexp
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.6 |
|
app/controllers/local_petitions_controller.rb:14-16
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 2.5 |
app/models/trending_domain.rb:37-38 : TrendingDomain#window
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.6 |
|
app/controllers/petitions_controller.rb:72-74
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 2.5 |
app/models/trending_ip.rb:48-49 : TrendingIp#window
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.6 |
|
app/controllers/petitions_controller.rb:56-58
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 2.5 |
app/helpers/application_helper.rb:17-20 : ApplicationHelper#increment
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.6 |
|
app/controllers/petitions_controller.rb:38-40
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 2.5 |
app/controllers/petitions_controller.rb:44-46 : PetitionsController#check
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 2.5 |
|
app/controllers/petitions_controller.rb:84-86
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 2.5 |
app/controllers/petitions_controller.rb:84-86 : PetitionsController#thank_you
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 2.5 |
|
app/models/site.rb:445-447
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 2.5 |
app/controllers/petitions_controller.rb:78-80 : PetitionsController#moderation_info
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 2.5 |
|
app/controllers/trackers_controller.rb:23-24
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.5 |
app/controllers/petitions_controller.rb:72-74 : PetitionsController#gathering_support
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 2.5 |
|
app/helpers/sharing_helper.rb:2-3
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.5 |
app/controllers/petitions_controller.rb:56-58 : PetitionsController#new
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 2.5 |
|
app/helpers/sharing_helper.rb:26-27
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.5 |
app/controllers/petitions_controller.rb:50-52 : PetitionsController#check_results
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 2.5 |
|
app/helpers/sharing_helper.rb:18-19
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.5 |
app/controllers/petitions_controller.rb:38-40 : PetitionsController#count
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 2.5 |
|
app/controllers/signatures_controller.rb:172-173
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.5 |
app/controllers/local_petitions_controller.rb:14-16 : LocalPetitionsController#index
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 2.5 |
|
app/helpers/sharing_helper.rb:10-11
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.5 |
app/models/site.rb:445-447 : Site#port_string
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 2.5 |
|
app/models/concerns/browseable.rb:104-106
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.5 |
app/controllers/trackers_controller.rb:23-24 : TrackersController#fetch_petition
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.5 |
|
app/mailers/feedback_mailer.rb:2-8
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.5 |
app/controllers/signatures_controller.rb:172-173 : SignaturesController#retrieve_petition
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.5 |
|
app/models/government_response.rb
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 4.0 |
app/helpers/sharing_helper.rb:10-11 : SharingHelper#share_via_email
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.5 |
|
app/controllers/admin/petition_details_controller.rb:7-11
«
annotate
»
Flog: complexity is 4.5 |
app/helpers/sharing_helper.rb:18-19 : SharingHelper#share_via_twitter
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.5 |
|
app/controllers/admin/notes_controller.rb:13-17
«
annotate
»
Flog: complexity is 4.5 |
app/helpers/sharing_helper.rb:26-27 : SharingHelper#share_via_whatsapp
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.5 |
|
app/controllers/admin/petition_tags_controller.rb:8-12
«
annotate
»
Flog: complexity is 4.5 |
app/helpers/sharing_helper.rb:2-3 : SharingHelper#share_via_facebook
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.5 |
|
app/models/site.rb:357-358
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.5 |
app/models/concerns/browseable.rb:104-106 : Search#filters
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.5 |
|
app/models/site.rb:335-336
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.5 |
app/mailers/feedback_mailer.rb:2-8 : FeedbackMailer#send_feedback
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.5 |
|
lib/package_builder.rb:316-322
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.5 |
app/models/archived/signature.rb : Signature#set_email_sent_at_for
«
annotate
»
Saikuro: complexity is 1.0 Flog: average complexity is 3.5 |
|
app/models/domain.rb:117-120
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 2.4 |
app/controllers/concerns/form_tracking.rb : FormTracking#form_requests
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 3.2 |
|
app/controllers/admin/locks_controller.rb:28-32
«
annotate
»
Flog: complexity is 4.4 |
lib/package_builder.rb:316-322 : PackageBuilder#remove_artifacts
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.5 |
|
app/controllers/admin/locks_controller.rb:4-8
«
annotate
»
Flog: complexity is 4.4 |
app/models/site.rb:357-358 : Site#moderate_host_with_port
«
annotate
»
Saikuro: complexity is 1.0 Flog: average complexity is 3.5 |
|
app/controllers/admin/locks_controller.rb:12-16
«
annotate
»
Flog: complexity is 4.4 |
app/models/site.rb:335-336 : Site#host_with_port
«
annotate
»
Saikuro: complexity is 1.0 Flog: average complexity is 3.5 |
|
app/controllers/admin/locks_controller.rb:20-24
«
annotate
»
Flog: complexity is 4.4 |
app/models/petition.rb:876-877 : Petition#closed_early_due_to_election?
«
annotate
»
Flog: average complexity is 4.4 |
|
app/controllers/admin/archived/locks_controller.rb:28-32
«
annotate
»
Flog: complexity is 4.4 |
app/controllers/admin/archived/locks_controller.rb:28-32 : LocksController#destroy
«
annotate
»
Flog: average complexity is 4.4 |
|
app/controllers/admin/archived/locks_controller.rb:20-24
«
annotate
»
Flog: complexity is 4.4 |
app/controllers/admin/archived/locks_controller.rb:12-16 : LocksController#create
«
annotate
»
Flog: average complexity is 4.4 |
|
app/controllers/admin/archived/locks_controller.rb:12-16
«
annotate
»
Flog: complexity is 4.4 |
app/controllers/admin/archived/locks_controller.rb:4-8 : LocksController#show
«
annotate
»
Flog: average complexity is 4.4 |
|
app/controllers/admin/archived/locks_controller.rb:4-8
«
annotate
»
Flog: complexity is 4.4 |
app/controllers/admin/archived/locks_controller.rb:20-24 : LocksController#update
«
annotate
»
Flog: average complexity is 4.4 |
|
app/controllers/signatures_controller.rb:72-76
«
annotate
»
Flog: complexity is 4.4 |
app/controllers/admin/petitions_controller.rb:23-26 : PetitionsController#resend
«
annotate
»
Flog: complexity is 4.4 |
|
app/controllers/archived/signatures_controller.rb:7-11
«
annotate
»
Flog: complexity is 4.4 |
app/helpers/sharing_helper.rb:40-41 : SharingHelper#share_via_email_params
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
|
app/lib/audit_logger.rb:9-11
«
annotate
»
Flog: complexity is 4.4 |
app/helpers/sharing_helper.rb:48-49 : SharingHelper#share_via_whatsapp_params
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
|
app/jobs/archive_petitions_job.rb
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 4.0 |
app/helpers/sharing_helper.rb:44-45 : SharingHelper#share_via_twitter_params
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
|
app/controllers/admin/petitions_controller.rb:23-26
«
annotate
»
Flog: complexity is 4.4 |
app/helpers/petition_helper.rb:2-3 : PetitionHelper#public_petition_facets_with_counts
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
|
app/jobs/debated_petitions_job.rb:4-6
«
annotate
»
Flog: complexity is 4.4 |
app/helpers/archived_petition_helper.rb:22-23 : ArchivedPetitionHelper#archived_petition_facets_with_counts
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
|
app/jobs/archived/email_petitioners_job.rb:30-31
«
annotate
»
Flog: complexity is 4.4 |
app/helpers/page_title_helper.rb:20-21 : PageTitleBuilder#build
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
|
app/helpers/sharing_helper.rb:40-41
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
app/jobs/concerns/email_all_petition_signatories.rb:91-92 : EmailAllPetitionSignatories#signatures_to_email
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
|
app/helpers/sharing_helper.rb:48-49
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
app/jobs/archived/email_petitioners_job.rb : EmailPetitionersJob#log_exception
«
annotate
»
Saikuro: average complexity is 1.0 Flog: average complexity is 3.4 |
|
app/helpers/petition_helper.rb:2-3
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
app/jobs/concerns/email_delivery.rb:90-91 : EmailDelivery#petition_timestamp
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
|
app/helpers/archived_petition_helper.rb:22-23
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
app/jobs/concerns/email_delivery.rb:55-56 : EmailDelivery#log_exception
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
|
app/helpers/sharing_helper.rb:44-45
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
app/jobs/concerns/email_all_petition_signatories.rb:36-37 : ClassMethods#later_tonight
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
|
app/helpers/page_title_helper.rb:20-21
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
app/jobs/concerns/email_all_petition_signatories.rb:87-88 : EmailAllPetitionSignatories#petition_timestamp
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
|
app/jobs/concerns/email_delivery.rb:90-91
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
app/jobs/update_signature_counts_job.rb:66-67 : UpdateSignatureCountsJob#log_exception
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
|
app/jobs/concerns/email_all_petition_signatories.rb:36-37
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
app/jobs/trending_domains_by_petition_job.rb:37-38 : TrendingDomainsByPetitionJob#trending_domains
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
|
app/jobs/concerns/email_all_petition_signatories.rb:87-88
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
app/jobs/email_job.rb:40-41 : EmailJob#log_exception
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
|
app/jobs/concerns/email_all_petition_signatories.rb:91-92
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
app/lib/job_logger.rb:13-15 : JobLogger#debug
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
|
app/jobs/email_petitioners_job.rb:25-26
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
app/lib/job_logger.rb:21-23 : JobLogger#warn
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
|
app/jobs/concerns/email_delivery.rb:55-56
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
app/lib/job_logger.rb:17-19 : JobLogger#info
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
|
app/jobs/update_signature_counts_job.rb:66-67
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
app/lib/job_logger.rb:25-27 : JobLogger#error
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
|
app/jobs/email_job.rb:40-41
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
app/presenters/api_pagination_links_presenter.rb:66-67 : ApiPaginationLinksPresenter#url_params
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
|
app/jobs/trending_domains_by_petition_job.rb:37-38
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
app/models/concerns/browseable.rb:69-70 : Filters#to_hash
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
|
app/lib/job_logger.rb:25-27
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
app/models/concerns/browseable.rb:116-117 : Search#last_page?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
|
app/lib/job_logger.rb:21-23
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
app/models/concerns/browseable.rb:96-97 : Search#find_each
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
|
app/lib/job_logger.rb:13-15
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
app/models/concerns/browseable.rb:92-93 : Search#each
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
|
app/lib/job_logger.rb:17-19
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
app/models/domain.rb:125-126 : Domain#find_canonical_domain
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
|
app/presenters/api_pagination_links_presenter.rb:66-67
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
app/controllers/concerns/authentication.rb:53-54 : Authentication#store_target_location
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
|
app/models/concerns/browseable.rb:92-93
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
app/helpers/rejection_helper.rb:2-4 : RejectionHelper#rejection_reason
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 2.3 |
|
app/models/concerns/browseable.rb:96-97
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
app/controllers/feedback_controller.rb:4-6 : FeedbackController#new
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 2.3 |
|
app/models/concerns/browseable.rb:116-117
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
app/controllers/trackers_controller.rb:27-29 : TrackersController#verify_petition
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 2.3 |
|
app/models/concerns/browseable.rb:69-70
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
app/controllers/signatures_controller.rb:32-34 : SignaturesController#new
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 2.3 |
|
app/models/domain.rb:125-126
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
app/controllers/feedback_controller.rb:21-23 : FeedbackController#thanks
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 2.3 |
|
app/models/petition.rb
«
annotate
»
Churn: detected high level of churn (changed 15 times) Reek: found 42 code smells Saikuro: average complexity is 1.1 Flay: found 3 code duplications Roodi: found 4 design problems |
app/controllers/signatures_controller.rb:80-82 : SignaturesController#thank_you
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 2.3 |
|
app/controllers/concerns/authentication.rb:53-54
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
app/controllers/pages_controller.rb:8-10 : PagesController#help
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 2.3 |
|
app/models/holiday.rb:31-32
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
app/controllers/pages_controller.rb:14-16 : PagesController#privacy
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 2.3 |
|
app/models/holiday.rb:35-36
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.4 |
app/controllers/pages_controller.rb:2-4 : PagesController#index
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 2.3 |
|
app/models/archived/signature.rb:292-295
«
annotate
»
Flog: complexity is 4.3 |
app/controllers/admin/signatures_controller.rb:128-129 : SignaturesController#fetch_signature
«
annotate
»
Flog: average complexity is 4.3 |
|
app/models/archived/signature.rb:298-301
«
annotate
»
Flog: complexity is 4.3 |
app/controllers/admin/archived/petitions_controller.rb:90-94 : PetitionsController#set_streaming_headers
«
annotate
»
Flog: average complexity is 4.3 |
|
app/models/signature.rb:673-676
«
annotate
»
Flog: complexity is 4.3 |
app/controllers/admin/archived/petitions_controller.rb:77-82 : PetitionsController#render_csv
«
annotate
»
Flog: average complexity is 4.3 |
|
app/models/signature.rb:679-682
«
annotate
»
Flog: complexity is 4.3 |
lib/tasks/constituencies.rake:2-20 : namespace(epets)#namespace#constituencies
«
annotate
»
Flog: complexity is 4.3 |
|
app/jobs/backfill_constituencies_job.rb
«
annotate
»
Reek: found 4 code smells Saikuro: average complexity is 3.5 Roodi: found 1 design problems |
lib/package_builder.rb:284-285 : PackageBuilder#slack_message
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.3 |
|
app/helpers/rejection_helper.rb:2-4
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 2.3 |
app/presenters/petitions_csv_presenter.rb:6-7 : PetitionsCSVPresenter#initialize
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.3 |
|
app/controllers/signatures_controller.rb:80-82
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 2.3 |
: Statistics#none
Flog: average complexity is 4.3 |
|
app/controllers/trackers_controller.rb:27-29
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 2.3 |
app/helpers/cache_helper.rb:195-196 : CacheKey#version
«
annotate
»
Flog: complexity is 4.2 |
|
app/controllers/feedback_controller.rb:4-6
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 2.3 |
app/controllers/admin/archived/petition_details_controller.rb:25-26 : PetitionDetailsController#petition_params
«
annotate
»
Flog: average complexity is 4.2 |
|
app/controllers/feedback_controller.rb:21-23
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 2.3 |
app/controllers/signatures_controller.rb:142-143 : SignaturesController#signed_token_hash
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.2 |
|
app/controllers/signatures_controller.rb:32-34
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 2.3 |
app/models/concerns/geoip_lookup.rb : ClassMethods#geoip_db
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 3.2 |
|
app/controllers/pages_controller.rb:14-16
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 2.3 |
app/models/feedback.rb:6-7 : Feedback#petition_link?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.2 |
|
app/controllers/pages_controller.rb:8-10
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 2.3 |
app/controllers/admin/logs_controller.rb : LogsController#show
«
annotate
»
Reek: found 1 code smells Flog: complexity is 3.9 |
|
app/controllers/pages_controller.rb:2-4
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 2.3 |
app/models/petition.rb:341-342 : Petition#popular_in_constituency
«
annotate
»
Flog: complexity is 4.1 |
|
app/controllers/admin/archived/petitions_controller.rb:90-94
«
annotate
»
Flog: complexity is 4.3 |
app/models/petition.rb:345-346 : Petition#all_popular_in_constituency
«
annotate
»
Flog: complexity is 4.1 |
|
app/controllers/admin/archived/petitions_controller.rb:77-82
«
annotate
»
Flog: complexity is 4.3 |
app/models/site.rb:198-199 : Site#default_domain
«
annotate
»
Flog: complexity is 4.1 |
|
app/controllers/admin/petitions_controller.rb:60-65
«
annotate
»
Flog: complexity is 4.3 |
app/controllers/admin/logs_controller.rb:19-20 : LogsController#fetch_logs
«
annotate
»
Flog: complexity is 4.1 |
|
app/controllers/admin/petitions_controller.rb:73-77
«
annotate
»
Flog: complexity is 4.3 |
app/lib/active_support/cache/atomic_dalli_store.rb:40-42 : AtomicDalliStore#delete
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.0 |
|
lib/tasks/constituencies.rake:2-20
«
annotate
»
Flog: complexity is 4.3 |
: AutoLinker#none
Flog: complexity is 4.0 |
|
lib/package_builder.rb:284-285
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.3 |
: PetitionEmailsController#none
Flog: average complexity is 4.0 |
|
app/presenters/petitions_csv_presenter.rb:6-7
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.3 |
: FlashRender#none
Flog: complexity is 4.0 |
|
app/models/country_petition_journal.rb
«
annotate
»
Reek: found 5 code smells Saikuro: average complexity is 2.6 Flay: found 5 code duplications |
: PetitionCountJob#none
Flog: complexity is 4.0 |
|
app/models/signature_logs.rb:100-101
«
annotate
»
Flog: complexity is 4.3 |
app/jobs/concerns/email_all_petition_signatories.rb:71-77 : EmailAllPetitionSignatories#mailer_arguments
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.0 |
|
app/mailers/petition_mailer.rb
«
annotate
»
Reek: found 14 code smells Saikuro: average complexity is 2.3 Flay: found 7 code duplications |
app/lib/job_logger.rb:8-10 : JobLogger#initialize
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.0 |
|
app/models/constituency/api_query.rb
«
annotate
»
Reek: found 7 code smells Saikuro: average complexity is 2.8 Flay: found 1 code duplications Roodi: found 1 design problems |
app/presenters/api_pagination_links_presenter.rb:6-7 : ApiPaginationLinksPresenter#initialize
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.0 |
|
app/models/constituency_petition_journal.rb
«
annotate
»
Reek: found 5 code smells Saikuro: average complexity is 2.5 Flay: found 5 code duplications |
app/models/concerns/browseable.rb:65-66 : Filters#initialize
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.0 |
|
app/helpers/cache_helper.rb:195-196
«
annotate
»
Flog: complexity is 4.2 |
: EmailRequestedReceipt#none
Flog: complexity is 4.0 |
|
app/models/archived/signature.rb
«
annotate
»
Reek: found 12 code smells Saikuro: average complexity is 1.5 Flay: found 8 code duplications Roodi: found 3 design problems |
app/models/signature.rb : #trending_ips_by_petition
«
annotate
»
Saikuro: complexity is 4.0 |
|
app/controllers/signatures_controller.rb:142-143
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.2 |
app/models/constituency.rb : #find_by_postcode
«
annotate
»
Saikuro: complexity is 4.0 |
|
app/models/feedback.rb:6-7
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.2 |
app/models/petition.rb : #in_moderation
«
annotate
»
Saikuro: complexity is 4.0 |
|
app/models/admin_user.rb
«
annotate
»
Reek: found 8 code smells Saikuro: average complexity is 3.3 |
app/models/petition.rb:732-734 : Petition#archiving?
«
annotate
»
Flog: complexity is 4.0 |
|
app/models/petition.rb:341-342
«
annotate
»
Flog: complexity is 4.1 |
app/models/signature.rb:589-591 : Signature#validated_before?
«
annotate
»
Flog: complexity is 4.0 |
|
app/models/petition.rb:345-346
«
annotate
»
Flog: complexity is 4.1 |
app/controllers/local_petitions_controller.rb:58-59 : LocalPetitionsController#find_petitions
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.9 |
|
app/models/site.rb:198-199
«
annotate
»
Flog: complexity is 4.1 |
app/controllers/local_petitions_controller.rb:62-63 : LocalPetitionsController#find_all_petitions
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.9 |
|
app/lib/email_reminder.rb
«
annotate
»
Reek: found 5 code smells Saikuro: average complexity is 3.3 |
app/helpers/admin_helper.rb:83-85 : AdminHelper#trending_domains
«
annotate
»
Flog: complexity is 3.9 |
|
app/controllers/admin/logs_controller.rb:19-20
«
annotate
»
Flog: complexity is 4.1 |
app/helpers/admin_helper.rb:91-93 : AdminHelper#trending_ips
«
annotate
»
Flog: complexity is 3.9 |
|
app/controllers/archived/petitions_controller.rb:78-79
«
annotate
»
Flog: complexity is 4.1 |
app/helpers/admin_helper.rb:71-73 : AdminHelper#fraudulent_domains
«
annotate
»
Flog: complexity is 3.9 |
|
app/models/archived/debate_outcome.rb
«
annotate
»
Reek: found 7 code smells Saikuro: average complexity is 2.5 Flay: found 2 code duplications |
app/helpers/admin_helper.rb:79-81 : AdminHelper#fraudulent_ips
«
annotate
»
Flog: complexity is 3.9 |
|
app/lib/active_support/cache/atomic_dalli_store.rb:40-42
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.0 |
app/models/domain.rb:25-28 : Domain#before_validation#if
«
annotate
»
Flog: complexity is 3.9 |
|
app/controllers/admin/archived/petition_emails_controller.rb:51-59
«
annotate
»
Flog: complexity is 4.0 |
lib/tasks/bundle.rake:3-5 : namespace(bundle)#task#audit
«
annotate
»
Flog: complexity is 3.9 |
|
app/helpers/date_time_helper.rb:13-18
«
annotate
»
Flog: complexity is 4.0 |
lib/tasks/brakeman.rake:3-5 : namespace(brakeman)#task#check
«
annotate
»
Flog: complexity is 3.9 |
|
app/jobs/concerns/email_all_petition_signatories.rb:71-77
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.0 |
app/models/petition.rb:872-873 : Petition#fraudulent_domains?
«
annotate
»
Flog: complexity is 3.9 |
|
app/lib/job_logger.rb:8-10
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.0 |
: Feedback#none
Flog: complexity is 3.9 |
|
app/presenters/api_pagination_links_presenter.rb:6-7
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.0 |
app/models/petition.rb:667-668 : Petition#count_validated_signatures
«
annotate
»
Flog: complexity is 3.9 |
|
app/models/concerns/browseable.rb:65-66
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 3.0 |
app/models/site.rb:315-316 : Site#email_protocol
«
annotate
»
Saikuro: complexity is 1.0 Flog: average complexity is 2.9 |
|
app/models/archived/signature.rb:253-255
«
annotate
»
Flog: complexity is 4.0 |
app/models/site.rb:339-340 : Site#port
«
annotate
»
Saikuro: complexity is 1.0 Flog: average complexity is 2.9 |
|
app/models/petition.rb:732-734
«
annotate
»
Flog: complexity is 4.0 |
app/models/site.rb:353-354 : Site#moderate_host
«
annotate
»
Saikuro: complexity is 1.0 Flog: average complexity is 2.9 |
|
app/models/signature.rb:589-591
«
annotate
»
Flog: complexity is 4.0 |
app/models/site.rb:319-320 : Site#formatted_threshold_for_moderation
«
annotate
»
Saikuro: complexity is 1.0 Flog: average complexity is 2.9 |
|
app/models/signature.rb:516-518
«
annotate
»
Flog: complexity is 4.0 |
app/models/site.rb:323-324 : Site#formatted_threshold_for_response
«
annotate
»
Saikuro: complexity is 1.0 Flog: average complexity is 2.9 |
|
app/controllers/local_petitions_controller.rb:62-63
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.9 |
app/models/site.rb:327-328 : Site#formatted_threshold_for_debate
«
annotate
»
Saikuro: complexity is 1.0 Flog: average complexity is 2.9 |
|
app/controllers/local_petitions_controller.rb:58-59
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.9 |
app/models/site.rb:331-332 : Site#host
«
annotate
»
Saikuro: complexity is 1.0 Flog: average complexity is 2.9 |
|
lib/package_builder.rb:420-422
«
annotate
»
Flog: complexity is 3.9 |
app/models/signature.rb:694-695 : Signature#update_canonical_email
«
annotate
»
Flog: complexity is 3.9 |
|
app/helpers/admin_helper.rb:71-73
«
annotate
»
Flog: complexity is 3.9 |
app/models/signature.rb:496-497 : Signature#sanitized_name
«
annotate
»
Flog: complexity is 3.9 |
|
app/helpers/admin_helper.rb:91-93
«
annotate
»
Flog: complexity is 3.9 |
app/helpers/admin_hub_helper.rb : AdminHubHelper#action_counts
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/helpers/admin_helper.rb:79-81
«
annotate
»
Flog: complexity is 3.9 |
app/helpers/date_time_helper.rb : DateTimeHelper#last_updated_at_time
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 2.6 |
|
app/helpers/admin_helper.rb:83-85
«
annotate
»
Flog: complexity is 3.9 |
app/helpers/date_time_helper.rb : DateTimeHelper#local_date_time_format
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 2.6 |
|
app/models/domain.rb:25-28
«
annotate
»
Flog: complexity is 3.9 |
: RefreshConstituencyPartyJob#none
Flog: complexity is 3.8 |
|
lib/tasks/bundle.rake:3-5
«
annotate
»
Flog: complexity is 3.9 |
: FetchCountryRegisterJob#none
Flog: complexity is 3.8 |
|
lib/tasks/brakeman.rake:3-5
«
annotate
»
Flog: complexity is 3.9 |
app/lib/email_reminder.rb : EmailReminder#self.special_resend_of_signature_email_validation
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 3.0 |
|
app/jobs/concerns/email_all_petition_signatories.rb:32-33
«
annotate
»
Flog: complexity is 3.9 |
app/models/petition_creator.rb:118-120 : PetitionCreator#uk_citizenship
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.8 |
|
lib/package_builder.rb:344-345
«
annotate
»
Flog: complexity is 3.9 |
app/models/petition_creator.rb:114-116 : PetitionCreator#location_code
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.8 |
|
lib/package_builder.rb:348-349
«
annotate
»
Flog: complexity is 3.9 |
app/models/petition_creator.rb:136-138 : PetitionCreator#petition_creator_params
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.8 |
|
app/controllers/archived/petitions_controller.rb:31-32
«
annotate
»
Flog: complexity is 3.9 |
app/models/petition_creator.rb:122-124 : PetitionCreator#notify_by_email
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.8 |
|
app/controllers/archived/petitions_controller.rb:35-36
«
annotate
»
Flog: complexity is 3.9 |
: FeedbackEmailJob#none
Flog: complexity is 3.8 |
|
app/controllers/archived/petitions_controller.rb:70-71
«
annotate
»
Flog: complexity is 3.9 |
: EmailDuplicateSignaturesEmailJob#none
Flog: complexity is 3.8 |
|
app/helpers/markdown_helper.rb:44-45
«
annotate
»
Flog: complexity is 3.9 |
lib/tasks/epets.rake:59-61 : namespace(epets)#namespace(site)#task#disable
«
annotate
»
Flog: complexity is 3.8 |
|
app/helpers/markdown_helper.rb:40-41
«
annotate
»
Flog: complexity is 3.9 |
lib/tasks/epets.rake:101-102 : namespace(epets)#namespace(cache)#task#clear
«
annotate
»
Flog: complexity is 3.8 |
|
lib/package_builder.rb:231-232
«
annotate
»
Flog: complexity is 3.9 |
lib/tasks/epets.rake:69-71 : namespace(epets)#namespace(site)#task#unprotect
«
annotate
»
Flog: complexity is 3.8 |
|
app/models/archived/signature.rb:275-276
«
annotate
»
Flog: complexity is 3.9 |
lib/tasks/epets.rake:54-56 : namespace(epets)#namespace(site)#task#enable
«
annotate
»
Flog: complexity is 3.8 |
|
app/models/archived/signature.rb:271-272
«
annotate
»
Flog: complexity is 3.9 |
app/models/concerns/taggable.rb:28-29 : Taggable#tags_column
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.8 |
|
app/models/petition.rb:872-873
«
annotate
»
Flog: complexity is 3.9 |
app/helpers/auto_link_helper.rb:59-61 : AutoLinker#html_options
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.8 |
|
app/models/petition.rb:667-668
«
annotate
»
Flog: complexity is 3.9 |
app/controllers/signatures_controller.rb:134-136 : SignaturesController#signed_tokens
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.8 |
|
app/models/rate_limit.rb:268-269
«
annotate
»
Flog: complexity is 3.9 |
app/helpers/auto_link_helper.rb:55-57 : AutoLinker#sanitize_options
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.8 |
|
app/models/signature.rb:645-646
«
annotate
»
Flog: complexity is 3.9 |
app/jobs/close_petitions_early_job.rb : ClosePetitionsEarlyJob#perform
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/signature.rb:694-695
«
annotate
»
Flog: complexity is 3.9 |
app/models/signature.rb : Signature#ip_search?
«
annotate
»
Reek: found 2 code smells Flog: complexity is 2.9 |
|
app/models/signature.rb:649-650
«
annotate
»
Flog: complexity is 3.9 |
app/controllers/admin/archived/petitions_controller.rb:57-58 : PetitionsController#parliament_id
«
annotate
»
Flog: average complexity is 3.8 |
|
app/models/signature.rb:496-497
«
annotate
»
Flog: complexity is 3.9 |
app/models/constituency_petition_journal.rb:79-81 : ConstituencyPetitionJournal#decrement_signature_count
«
annotate
»
Flog: complexity is 3.8 |
|
app/models/invalidation.rb
«
annotate
»
Reek: found 16 code smells Saikuro: average complexity is 2.3 Roodi: found 2 design problems |
app/models/country_petition_journal.rb:71-73 : CountryPetitionJournal#decrement_signature_count
«
annotate
»
Flog: complexity is 3.8 |
|
app/controllers/admin/invalidations_controller.rb
«
annotate
»
Reek: found 5 code smells Saikuro: average complexity is 2.2 Flay: found 3 code duplications |
lib/package_builder.rb : PackageBuilder#ci?
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/models/concerns/geoip_lookup.rb
«
annotate
»
Reek: found 6 code smells Saikuro: average complexity is 2.2 Roodi: found 3 design problems |
lib/package_builder.rb : PackageBuilder#deploy_branch?
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/jobs/stop_petitions_early_job.rb
«
annotate
»
Reek: found 4 code smells Saikuro: average complexity is 2.7 Roodi: found 1 design problems |
app/controllers/admin/trending_domains_controller.rb:13-14 : TrendingDomainsController#fetch_petition
«
annotate
»
Flog: complexity is 3.7 |
|
app/controllers/admin/logs_controller.rb:10-13
«
annotate
»
Flog: complexity is 3.9 |
app/controllers/admin/archived/locks_controller.rb:42-43 : LocksController#fetch_petition
«
annotate
»
Flog: average complexity is 3.7 |
|
app/controllers/petitions_controller.rb:31-34
«
annotate
»
Flog: complexity is 3.9 |
app/controllers/admin/admin_users_controller.rb:52-53 : AdminUsersController#find_user
«
annotate
»
Flog: complexity is 3.7 |
|
app/controllers/archived/petitions_controller.rb:22-25
«
annotate
»
Flog: complexity is 3.9 |
app/controllers/admin/signatures_controller.rb:116-117 : SignaturesController#fetch_petition
«
annotate
»
Flog: complexity is 3.7 |
|
app/controllers/archived/petitions_controller.rb:47-48
«
annotate
»
Flog: complexity is 3.9 |
app/controllers/admin/take_down_controller.rb:19-20 : TakeDownController#fetch_petition
«
annotate
»
Flog: complexity is 3.7 |
|
app/models/invalidation.rb:261-262
«
annotate
»
Flog: complexity is 3.9 |
app/controllers/admin/invalidations_controller.rb:119-120 : InvalidationsController#find_invalidation
«
annotate
»
Flog: complexity is 3.7 |
|
app/models/rate_limit.rb:260-264
«
annotate
»
Flog: complexity is 3.9 |
app/controllers/admin/domains_controller.rb:59-60 : DomainsController#find_domain
«
annotate
»
Flog: complexity is 3.7 |
|
lib/package_builder.rb:168-177
«
annotate
»
Flog: complexity is 3.8 |
app/controllers/admin/archived/schedule_debate_controller.rb:25-26 : ScheduleDebateController#fetch_petition
«
annotate
»
Flog: average complexity is 3.7 |
|
app/models/petition_creator.rb:136-138
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.8 |
app/controllers/admin/archived/petition_tags_controller.rb:18-19 : PetitionTagsController#fetch_petition
«
annotate
»
Flog: average complexity is 3.7 |
|
app/models/petition_creator.rb:118-120
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.8 |
app/controllers/admin/archived/notes_controller.rb:27-28 : NotesController#fetch_petition
«
annotate
»
Flog: average complexity is 3.7 |
|
app/models/petition_creator.rb:114-116
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.8 |
app/controllers/admin/archived/petition_details_controller.rb:17-18 : PetitionDetailsController#fetch_petition
«
annotate
»
Flog: average complexity is 3.7 |
|
app/models/petition_creator.rb:122-124
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.8 |
app/controllers/admin/tags_controller.rb:56-57 : TagsController#find_tag
«
annotate
»
Flog: complexity is 3.7 |
|
lib/tasks/epets.rake:101-102
«
annotate
»
Flog: complexity is 3.8 |
app/controllers/admin/trending_ips_controller.rb:13-14 : TrendingIpsController#fetch_petition
«
annotate
»
Flog: complexity is 3.7 |
|
lib/tasks/epets.rake:59-61
«
annotate
»
Flog: complexity is 3.8 |
app/controllers/concerns/authentication.rb:14-16 : Authentication#current_session
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 1.7 |
|
lib/tasks/epets.rake:54-56
«
annotate
»
Flog: complexity is 3.8 |
lib/package_builder.rb:328-329 : PackageBuilder#short_revision
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.7 |
|
lib/tasks/epets.rake:69-71
«
annotate
»
Flog: complexity is 3.8 |
app/models/country_petition_journal.rb : CountryPetitionJournal#increment_signature_count
«
annotate
»
Reek: found 1 code smells Flog: complexity is 3.5 |
|
app/models/concerns/taggable.rb:28-29
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.8 |
app/jobs/update_petition_statistics_job.rb : UpdatePetitionStatisticsJob#perform
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/helpers/archived_petition_helper.rb
«
annotate
»
Reek: found 6 code smells Saikuro: average complexity is 3.0 |
app/models/country_petition_journal.rb : CountryPetitionJournal#reset_signature_count
«
annotate
»
Reek: found 1 code smells Flog: complexity is 3.5 |
|
app/helpers/auto_link_helper.rb:59-61
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.8 |
app/helpers/cache_helper.rb:200-201 : CacheHelper#cache_for
«
annotate
»
Flog: complexity is 3.7 |
|
app/helpers/auto_link_helper.rb:55-57
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.8 |
: AdminMailer#none
Flog: complexity is 3.7 |
|
app/controllers/signatures_controller.rb:134-136
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.8 |
app/models/site.rb : Site#database_migrating?
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 1.6 |
|
app/models/rate_limit.rb:194-195
«
annotate
»
Flog: complexity is 3.8 |
app/models/site.rb : Site#type_cast_feature_flag
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 2.0 Flog: complexity is 1.6 |
|
app/models/rate_limit.rb:205-206
«
annotate
»
Flog: complexity is 3.8 |
lib/health_check.rb : HealthCheck#stringify
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 2.0 Flog: complexity is 1.0 |
|
app/models/rate_limit.rb:183-184
«
annotate
»
Flog: complexity is 3.8 |
lib/health_check.rb : HealthCheck#localtime
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/rate_limit.rb:216-217
«
annotate
»
Flog: complexity is 3.8 |
app/controllers/admin/logs_controller.rb:35-36 : LogsController#set_content_disposition
«
annotate
»
Flog: complexity is 3.7 |
|
lib/package_builder.rb:9-10
«
annotate
»
Flog: complexity is 3.8 |
app/controllers/admin/statistics_controller.rb:40-41 : StatisticsController#set_content_disposition
«
annotate
»
Flog: complexity is 3.7 |
|
app/helpers/cache_helper.rb:137-139
«
annotate
»
Flog: complexity is 3.8 |
app/models/constituency.rb:23-24 : Constituency#before_validation#if
«
annotate
»
Flog: complexity is 3.7 |
|
app/models/constituency_petition_journal.rb:79-81
«
annotate
»
Flog: complexity is 3.8 |
app/jobs/close_petitions_job.rb : ClosePetitionsJob#perform
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/country_petition_journal.rb:71-73
«
annotate
»
Flog: complexity is 3.8 |
app/controllers/admin/archived/petitions_controller.rb:69-70 : PetitionsController#fetch_petitions
«
annotate
»
Flog: average complexity is 3.6 |
|
app/controllers/admin/archived/petitions_controller.rb:73-74
«
annotate
»
Flog: complexity is 3.7 |
app/jobs/backfill_constituencies_job.rb : BackfillConstituenciesJob#signatures_missing_constituency_id
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/controllers/admin/admin_users_controller.rb:52-53
«
annotate
»
Flog: complexity is 3.7 |
app/models/domain.rb : Domain#aliased_domain
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 2.6 |
|
app/controllers/admin/invalidations_controller.rb:119-120
«
annotate
»
Flog: complexity is 3.7 |
app/helpers/application_helper.rb:34-36 : ApplicationHelper#open_petition_page?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.6 |
|
app/controllers/admin/archived/signatures_controller.rb:75-76
«
annotate
»
Flog: complexity is 3.7 |
app/jobs/notify_trending_ip_job.rb:31-33 : NotifyTrendingIpJob#slack
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.6 |
|
app/controllers/admin/schedule_debate_controller.rb:25-26
«
annotate
»
Flog: complexity is 3.7 |
app/jobs/notify_trending_domain_job.rb:31-33 : NotifyTrendingDomainJob#slack
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.6 |
|
app/controllers/admin/trending_domains_controller.rb:13-14
«
annotate
»
Flog: complexity is 3.7 |
app/models/invalidation.rb:237-239 : Invalidation#date_range?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.6 |
|
app/controllers/admin/archived/locks_controller.rb:42-43
«
annotate
»
Flog: complexity is 3.7 |
app/models/site.rb:464-466 : Site#moderate_uri
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.6 |
|
app/controllers/admin/take_down_controller.rb:19-20
«
annotate
»
Flog: complexity is 3.7 |
app/models/parliament.rb:178-180 : Parliament#can_archive?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.6 |
|
app/controllers/admin/archived/petition_tags_controller.rb:18-19
«
annotate
»
Flog: complexity is 3.7 |
app/models/site.rb:460-462 : Site#uri
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.6 |
|
app/controllers/admin/locks_controller.rb:42-43
«
annotate
»
Flog: complexity is 3.7 |
app/models/rate_limit.rb:280-282 : RateLimit#country_rate_exceeded?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.6 |
|
app/controllers/admin/petitions_controller.rb:56-57
«
annotate
»
Flog: complexity is 3.7 |
app/models/rate_limit.rb:228-230 : RateLimit#ip_geoblocked?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.6 |
|
app/controllers/admin/archived/petition_details_controller.rb:17-18
«
annotate
»
Flog: complexity is 3.7 |
app/models/rate_limit.rb:246-248 : RateLimit#geoip_db
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.6 |
|
app/controllers/archived/signatures_controller.rb:17-19
«
annotate
»
Flog: complexity is 3.7 |
app/models/rate_limit.rb:104-106 : RateLimit#ignore_domain?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.6 |
|
app/controllers/admin/domains_controller.rb:59-60
«
annotate
»
Flog: complexity is 3.7 |
app/models/rate_limit.rb:292-294 : RateLimit#rate_exceeded?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.6 |
|
app/controllers/admin/signatures_controller.rb:116-117
«
annotate
»
Flog: complexity is 3.7 |
app/models/petition_creator.rb:225-227 : PetitionCreator#constituency
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.6 |
|
app/controllers/admin/archived/schedule_debate_controller.rb:25-26
«
annotate
»
Flog: complexity is 3.7 |
app/controllers/admin/parliaments_controller.rb:50-52 : ParliamentsController#schedule_closure?
«
annotate
»
Flog: complexity is 3.6 |
|
app/controllers/admin/archived/notes_controller.rb:27-28
«
annotate
»
Flog: complexity is 3.7 |
app/controllers/admin/parliaments_controller.rb:58-60 : ParliamentsController#archive_parliament?
«
annotate
»
Flog: complexity is 3.6 |
|
app/helpers/auto_link_helper.rb:13-14
«
annotate
»
Flog: complexity is 3.7 |
app/controllers/admin/parliaments_controller.rb:46-48 : ParliamentsController#email_creators?
«
annotate
»
Flog: complexity is 3.6 |
|
app/controllers/admin/trending_ips_controller.rb:13-14
«
annotate
»
Flog: complexity is 3.7 |
app/controllers/admin/parliaments_controller.rb:54-56 : ParliamentsController#archive_petitions?
«
annotate
»
Flog: complexity is 3.6 |
|
app/controllers/admin/tags_controller.rb:56-57
«
annotate
»
Flog: complexity is 3.7 |
app/controllers/admin/archived/petitions_controller.rb:85-87 : PetitionsController#set_file_headers
«
annotate
»
Flog: average complexity is 3.6 |
|
app/controllers/admin/petition_details_controller.rb:17-18
«
annotate
»
Flog: complexity is 3.7 |
lib/package_builder.rb : PackageBuilder#pull_request?
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/controllers/admin/petition_tags_controller.rb:18-19
«
annotate
»
Flog: complexity is 3.7 |
lib/postcode_sanitizer.rb:2-3 : PostcodeSanitizer#call
«
annotate
»
Flog: complexity is 3.6 |
|
app/controllers/admin/notes_controller.rb:27-28
«
annotate
»
Flog: complexity is 3.7 |
app/controllers/admin/admin_users_controller.rb:56-61 : AdminUsersController#admin_user_params
«
annotate
»
Flog: complexity is 3.6 |
|
app/mailers/archived/petition_mailer.rb:79-80
«
annotate
»
Flog: complexity is 3.7 |
app/controllers/admin/take_down_controller.rb:23-24 : TakeDownController#rejection_params
«
annotate
»
Flog: complexity is 3.6 |
|
app/controllers/concerns/authentication.rb:14-16
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 1.7 |
app/controllers/admin/searches_controller.rb:14-15 : SearchesController#petition_search?
«
annotate
»
Flog: complexity is 3.6 |
|
app/models/statistics.rb
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 2.7 Roodi: found 2 design problems |
app/controllers/admin/archived/petition_emails_controller.rb:95-96 : PetitionEmailsController#send_preview_email
«
annotate
»
Flog: average complexity is 3.6 |
|
lib/package_builder.rb:328-329
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.7 |
app/controllers/admin/searches_controller.rb:18-19 : SearchesController#signature_search?
«
annotate
»
Flog: complexity is 3.6 |
|
app/helpers/cache_helper.rb:200-201
«
annotate
»
Flog: complexity is 3.7 |
app/controllers/admin/profile_controller.rb:15-17 : ProfileController#admin_user_params
«
annotate
»
Flog: complexity is 3.6 |
|
app/controllers/archived/petitions_controller.rb:86-87
«
annotate
»
Flog: complexity is 3.7 |
app/controllers/admin/user_sessions_controller.rb:37-38 : UserSessionsController#user_session_params
«
annotate
»
Flog: complexity is 3.6 |
|
app/controllers/admin/logs_controller.rb:35-36
«
annotate
»
Flog: complexity is 3.7 |
app/controllers/admin/sites_controller.rb:27-37 : SitesController#site_params
«
annotate
»
Flog: complexity is 3.6 |
|
app/controllers/admin/statistics_controller.rb:40-41
«
annotate
»
Flog: complexity is 3.7 |
app/controllers/admin/archived/schedule_debate_controller.rb:29-30 : ScheduleDebateController#params_for_update
«
annotate
»
Flog: average complexity is 3.6 |
|
app/models/petition.rb:876-877
«
annotate
»
Flog: complexity is 3.7 |
app/controllers/admin/parliaments_controller.rb:36-42 : ParliamentsController#parliament_params
«
annotate
»
Flog: complexity is 3.6 |
|
app/models/constituency.rb:23-24
«
annotate
»
Flog: complexity is 3.7 |
app/controllers/admin/invalidations_controller.rb:127-128 : InvalidationsController#index_url
«
annotate
»
Flog: complexity is 3.6 |
|
app/models/constituency.rb:57-58
«
annotate
»
Flog: complexity is 3.7 |
app/controllers/admin/archived/petition_tags_controller.rb:22-23 : PetitionTagsController#petition_params
«
annotate
»
Flog: average complexity is 3.6 |
|
app/models/moderation_delay.rb
«
annotate
»
Reek: found 4 code smells Saikuro: complexity is 3.0 |
app/controllers/admin/archived/government_response_controller.rb:38-39 : GovernmentResponseController#government_response_params
«
annotate
»
Flog: average complexity is 3.6 |
|
app/helpers/application_helper.rb:34-36
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.6 |
app/controllers/admin/archived/notes_controller.rb:31-32 : NotesController#note_params
«
annotate
»
Flog: average complexity is 3.6 |
|
app/jobs/notify_trending_ip_job.rb:31-33
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.6 |
app/controllers/admin/archived/petitions_controller.rb:27-28 : PetitionsController#petition_id?
«
annotate
»
Flog: average complexity is 3.6 |
|
app/jobs/notify_trending_domain_job.rb:31-33
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.6 |
app/controllers/admin/tasks_controller.rb:25-26 : TasksController#selected_tasks
«
annotate
»
Flog: complexity is 3.6 |
|
app/models/site.rb:464-466
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.6 |
app/controllers/admin/moderation_controller.rb:19-20 : ModerationController#moderation_params
«
annotate
»
Flog: complexity is 3.6 |
|
app/models/site.rb:460-462
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.6 |
app/controllers/admin/tags_controller.rb:76-77 : TagsController#index_url
«
annotate
»
Flog: complexity is 3.6 |
|
app/models/invalidation.rb:237-239
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.6 |
app/helpers/auto_link_helper.rb:42-44 : AutoLinker#scope
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.6 |
|
app/models/parliament.rb:178-180
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.6 |
lib/tasks/countries.rake:4-6 : namespace(epets)#namespace(countries)#task#fetch
«
annotate
»
Flog: complexity is 3.6 |
|
app/models/rate_limit.rb:292-294
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.6 |
lib/tasks/constituencies.rake:4-6 : namespace(epets)#namespace(constituencies)#task#import
«
annotate
»
Flog: complexity is 3.6 |
|
app/models/rate_limit.rb:246-248
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.6 |
lib/tasks/epets.rake:13-15 : namespace(epets)#task#threshold_email_reminder
«
annotate
»
Flog: complexity is 3.6 |
|
app/models/rate_limit.rb:104-106
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.6 |
lib/tasks/petitions.rake:12-14 : namespace(epets)#namespace(petitions)#task#count
«
annotate
»
Flog: complexity is 3.6 |
|
app/models/rate_limit.rb:228-230
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.6 |
app/models/site.rb:421-423 : Site#before_save#if
«
annotate
»
Flog: complexity is 3.6 |
|
app/models/rate_limit.rb:280-282
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.6 |
app/controllers/admin/archived/petition_emails_controller.rb:51-59 : PetitionEmailsController#destroy
«
annotate
»
Flog: average complexity is 3.6 |
|
app/models/petition_creator.rb:225-227
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.6 |
app/models/constituency_petition_journal.rb : ConstituencyPetitionJournal#increment_signature_count
«
annotate
»
Reek: found 1 code smells Flog: complexity is 3.5 |
|
app/controllers/admin/parliaments_controller.rb:46-48
«
annotate
»
Flog: complexity is 3.6 |
app/models/constituency_petition_journal.rb : ConstituencyPetitionJournal#reset_signature_count
«
annotate
»
Reek: found 1 code smells Flog: complexity is 3.5 |
|
app/controllers/admin/parliaments_controller.rb:58-60
«
annotate
»
Flog: complexity is 3.6 |
app/controllers/admin/invalidations_controller.rb : Admin#create
«
annotate
»
Saikuro: average complexity is 3.5 |
|
app/controllers/admin/parliaments_controller.rb:50-52
«
annotate
»
Flog: complexity is 3.6 |
app/models/signature_logs.rb : Log#blank?
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/controllers/admin/parliaments_controller.rb:54-56
«
annotate
»
Flog: complexity is 3.6 |
lib/tasks/epets.rake:24-41 : namespace(epets)#namespace#whenever
«
annotate
»
Flog: complexity is 3.5 |
|
app/models/archived/petition.rb:280-287
«
annotate
»
Flog: complexity is 3.6 |
app/models/concerns/browseable.rb:112-113 : Search#second_page?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.5 |
|
app/models/archived/petition.rb:268-275
«
annotate
»
Flog: complexity is 3.6 |
app/models/concerns/browseable.rb:108-109 : Search#first_page?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.5 |
|
app/helpers/search_helper.rb
«
annotate
»
Reek: found 4 code smells Saikuro: average complexity is 3.0 |
app/models/constituency.rb:74-75 : Constituency#mp_url
«
annotate
»
Flog: complexity is 3.5 |
|
app/controllers/admin/signatures_controller.rb
«
annotate
»
Reek: found 20 code smells Saikuro: average complexity is 1.7 Flay: found 4 code duplications |
app/models/trending_domain.rb:33-34 : TrendingDomain#ends_at
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.5 |
|
app/presenters/petitions_csv_presenter.rb
«
annotate
»
Reek: found 3 code smells Saikuro: complexity is 3.0 |
app/models/signature.rb:484-485 : Signature#name=
«
annotate
»
Flog: complexity is 3.5 |
|
app/controllers/admin/archived/petitions_controller.rb:85-87
«
annotate
»
Flog: complexity is 3.6 |
app/models/trending_ip.rb:44-45 : TrendingIp#ends_at
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.5 |
|
app/controllers/admin/petitions_controller.rb:68-70
«
annotate
»
Flog: complexity is 3.6 |
: ImportConstituenciesJob#none
Flog: complexity is 3.5 |
|
app/jobs/import_constituencies_job.rb
«
annotate
»
Reek: found 11 code smells Saikuro: average complexity is 2.2 Flay: found 1 code duplications |
app/helpers/date_time_helper.rb : DateTimeHelper#christmas_period?
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/controllers/admin/archived/petitions_controller.rb:57-58
«
annotate
»
Flog: complexity is 3.6 |
app/models/rejection.rb : Rejection#state_for_petition
«
annotate
»
Saikuro: average complexity is 2.0 Flog: average complexity is 1.5 |
|
lib/postcode_sanitizer.rb:2-3
«
annotate
»
Flog: complexity is 3.6 |
app/models/debate_outcome.rb : DebateOutcome#debate_state
«
annotate
»
Saikuro: average complexity is 2.0 Flog: average complexity is 1.5 |
|
app/controllers/admin/archived/petition_emails_controller.rb:95-96
«
annotate
»
Flog: complexity is 3.6 |
app/helpers/date_time_helper.rb : DateTimeHelper#easter_period?
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/controllers/admin/archived/petition_tags_controller.rb:22-23
«
annotate
»
Flog: complexity is 3.6 |
: DeprecatedAttributes#none
Flog: complexity is 3.5 |
|
lib/health_check.rb:44-45
«
annotate
»
Flog: complexity is 3.6 |
app/helpers/sharing_helper.rb : SharingHelper#share_params
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/controllers/admin/archived/government_response_controller.rb:38-39
«
annotate
»
Flog: complexity is 3.6 |
app/models/signature_logs.rb:10-12 : Log#initialize
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.5 |
|
app/controllers/admin/archived/schedule_debate_controller.rb:29-30
«
annotate
»
Flog: complexity is 3.6 |
app/models/rate_limit.rb:139-141 : RateLimit#blocked_ips=
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.5 |
|
app/controllers/admin/schedule_debate_controller.rb:29-30
«
annotate
»
Flog: complexity is 3.6 |
app/models/rate_limit.rb:121-123 : RateLimit#blocked_domains=
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.5 |
|
app/controllers/admin/take_down_controller.rb:23-24
«
annotate
»
Flog: complexity is 3.6 |
app/models/rate_limit.rb:130-132 : RateLimit#allowed_ips=
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.5 |
|
app/controllers/admin/profile_controller.rb:15-17
«
annotate
»
Flog: complexity is 3.6 |
app/models/rate_limit.rb:112-114 : RateLimit#allowed_domains=
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.5 |
|
app/controllers/admin/searches_controller.rb:14-15
«
annotate
»
Flog: complexity is 3.6 |
app/models/rate_limit.rb:157-159 : RateLimit#ignored_domains=
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.5 |
|
app/controllers/admin/searches_controller.rb:18-19
«
annotate
»
Flog: complexity is 3.6 |
app/models/rate_limit.rb:152-154 : RateLimit#countries=
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.5 |
|
app/controllers/admin/archived/notes_controller.rb:31-32
«
annotate
»
Flog: complexity is 3.6 |
app/controllers/admin/signatures_controller.rb:120-122 : SignaturesController#scope
«
annotate
»
Flog: complexity is 3.4 |
|
app/controllers/admin/admin_users_controller.rb:56-61
«
annotate
»
Flog: complexity is 3.6 |
app/helpers/admin_hub_helper.rb:6-8 : AdminHubHelper#archived_petition_total_count
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/controllers/admin/parliaments_controller.rb:36-42
«
annotate
»
Flog: complexity is 3.6 |
app/helpers/admin_hub_helper.rb:2-4 : AdminHubHelper#petition_total_count
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/controllers/admin/archived/petitions_controller.rb:27-28
«
annotate
»
Flog: complexity is 3.6 |
app/helpers/admin_hub_helper.rb:42-44 : AdminHubHelper#untagged_in_moderation_count
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/controllers/admin/petition_emails_controller.rb:95-96
«
annotate
»
Flog: complexity is 3.6 |
app/helpers/admin_hub_helper.rb:38-40 : AdminHubHelper#tagged_in_moderation_count
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/controllers/admin/invalidations_controller.rb:127-128
«
annotate
»
Flog: complexity is 3.6 |
app/controllers/concerns/bulk_verification.rb:26-28 : BulkVerification#bulk_verifier
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/controllers/admin/sites_controller.rb:27-37
«
annotate
»
Flog: complexity is 3.6 |
app/helpers/admin_hub_helper.rb:30-32 : AdminHubHelper#overdue_in_moderation_count
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/controllers/admin/user_sessions_controller.rb:37-38
«
annotate
»
Flog: complexity is 3.6 |
app/helpers/admin_hub_helper.rb:26-28 : AdminHubHelper#nearly_overdue_in_moderation_count
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/controllers/admin/petition_tags_controller.rb:22-23
«
annotate
»
Flog: complexity is 3.6 |
app/helpers/auto_link_helper.rb:124-125 : AutoLinkHelper#auto_link
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/controllers/admin/moderation_controller.rb:19-20
«
annotate
»
Flog: complexity is 3.6 |
app/helpers/admin_hub_helper.rb:14-16 : AdminHubHelper#recently_in_moderation_count
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/controllers/admin/notes_controller.rb:31-32
«
annotate
»
Flog: complexity is 3.6 |
app/helpers/admin_hub_helper.rb:10-12 : AdminHubHelper#in_moderation_count
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/controllers/admin/petitions_controller.rb:30-31
«
annotate
»
Flog: complexity is 3.6 |
app/helpers/page_title_helper.rb:30-32 : PageTitleBuilder#action
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/controllers/application_controller.rb:101-102
«
annotate
»
Flog: complexity is 3.6 |
app/helpers/petition_helper.rb:25-27 : PetitionHelper#petition_list_header
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/controllers/admin/petition_details_controller.rb:21-25
«
annotate
»
Flog: complexity is 3.6 |
app/controllers/application_controller.rb:97-98 : ApplicationController#do_not_cache
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/controllers/admin/government_response_controller.rb:38-39
«
annotate
»
Flog: complexity is 3.6 |
app/jobs/trending_ips_by_petition_job.rb:50-52 : TrendingIpsByPetitionJob#starts_at
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/controllers/admin/tasks_controller.rb:25-26
«
annotate
»
Flog: complexity is 3.6 |
app/jobs/concerns/email_delivery.rb:63-65 : EmailDelivery#can_send_email?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/controllers/admin/tags_controller.rb:76-77
«
annotate
»
Flog: complexity is 3.6 |
app/jobs/trending_domains_by_petition_job.rb:49-51 : TrendingDomainsByPetitionJob#starts_at
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/controllers/application_controller.rb:35-36
«
annotate
»
Flog: complexity is 3.6 |
app/models/concerns/browseable.rb:100-102 : Search#facets
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/jobs/reset_petition_signature_count_job.rb:13-14
«
annotate
»
Flog: complexity is 3.6 |
app/models/domain.rb:149-151 : Domain#extension_regexp
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/jobs/reset_petition_signature_count_job.rb:25-26
«
annotate
»
Flog: complexity is 3.6 |
app/models/admin_user.rb:104-106 : AdminUser#can_edit_responses?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/jobs/petition_count_job.rb:19-20
«
annotate
»
Flog: complexity is 3.6 |
app/models/admin_user.rb:100-102 : AdminUser#can_take_petitions_down?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/jobs/update_signature_counts_job.rb:62-63
«
annotate
»
Flog: complexity is 3.6 |
app/models/trending_ip.rb:54-56 : TrendingIp#geoip_db
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/helpers/auto_link_helper.rb:42-44
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.6 |
app/jobs/sponsor_signed_email_below_threshold_email_job.rb:5-8 : SponsorSignedEmailBelowThresholdEmailJob#perform
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 1.4 |
|
lib/tasks/countries.rake:4-6
«
annotate
»
Flog: complexity is 3.6 |
app/jobs/sponsor_signed_email_on_threshold_email_job.rb:5-8 : SponsorSignedEmailOnThresholdEmailJob#perform
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 1.4 |
|
lib/tasks/constituencies.rake:4-6
«
annotate
»
Flog: complexity is 3.6 |
lib/package_builder.rb:469-470 : PackageBuilder#application_stop_script_file
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
lib/tasks/epets.rake:13-15
«
annotate
»
Flog: complexity is 3.6 |
app/helpers/markdown_helper.rb:36-37 : MarkdownHelper#markdown_parser
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
lib/tasks/petitions.rake:12-14
«
annotate
»
Flog: complexity is 3.6 |
app/helpers/markdown_helper.rb:28-29 : MarkdownHelper#html_renderer
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/models/site.rb:421-423
«
annotate
»
Flog: complexity is 3.6 |
app/helpers/cache_helper.rb:47-48 : Keys#constituency
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/models/archived/rejection.rb:26-28
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 1.6 |
app/helpers/cache_helper.rb:101-102 : Keys#value_for
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/models/archived/debate_outcome.rb:41-43
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 1.6 |
lib/package_builder.rb:433-438 : PackageBuilder#appspec_yaml
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/jobs/concerns/rate_limiting.rb
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 3.0 Roodi: found 1 design problems |
lib/package_builder.rb:429-430 : PackageBuilder#appspec_file
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/controllers/admin/archived/petitions_controller.rb:69-70
«
annotate
»
Flog: complexity is 3.5 |
lib/package_builder.rb:425-426 : PackageBuilder#scripts_path
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/controllers/admin/petitions_controller.rb:52-53
«
annotate
»
Flog: complexity is 3.5 |
lib/package_builder.rb:324-325 : PackageBuilder#revision_file
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/validators/email_validator.rb:15-17
«
annotate
»
Flog: complexity is 3.5 |
lib/package_builder.rb:223-224 : PackageBuilder#package_path
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/models/constituency_petition_journal.rb:74-76
«
annotate
»
Flog: complexity is 3.5 |
lib/package_builder.rb:219-220 : PackageBuilder#package_name
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/models/constituency_petition_journal.rb:69-71
«
annotate
»
Flog: complexity is 3.5 |
lib/package_builder.rb:516-517 : PackageBuilder#register_with_elb_script_file
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/models/country_petition_journal.rb:66-68
«
annotate
»
Flog: complexity is 3.5 |
lib/package_builder.rb:512-513 : PackageBuilder#deregister_from_elb_script_file
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/models/country_petition_journal.rb:61-63
«
annotate
»
Flog: complexity is 3.5 |
app/controllers/petitions_controller.rb:148-149 : PetitionsController#redirect_to_gathering_support_url
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/controllers/admin/archived/signatures_controller.rb
«
annotate
»
Reek: found 11 code smells Saikuro: average complexity is 1.7 Flay: found 4 code duplications |
app/controllers/petitions_controller.rb:156-157 : PetitionsController#redirect_to_moderation_info_url
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
lib/tasks/epets.rake:24-41
«
annotate
»
Flog: complexity is 3.5 |
app/controllers/petitions_controller.rb:168-169 : PetitionsController#redirect_to_stopped_page
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/models/archived/signature.rb:233-234
«
annotate
»
Flog: complexity is 3.5 |
lib/package_builder.rb:508-509 : PackageBuilder#common_functions_script_file
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/models/concerns/browseable.rb:112-113
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.5 |
app/controllers/petitions_controller.rb:172-173 : PetitionsController#redirect_to_petition_url
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/models/concerns/browseable.rb:108-109
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.5 |
lib/package_builder.rb:480-481 : PackageBuilder#after_install_script_file
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/models/petition.rb:834-835
«
annotate
»
Flog: complexity is 3.5 |
lib/package_builder.rb:458-459 : PackageBuilder#application_start_script_file
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/models/constituency.rb:74-75
«
annotate
»
Flog: complexity is 3.5 |
app/presenters/petition_csv_presenter.rb:48-49 : PetitionCSVPresenter#public_url
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/models/signature.rb:484-485
«
annotate
»
Flog: complexity is 3.5 |
app/presenters/petition_csv_presenter.rb:52-53 : PetitionCSVPresenter#admin_url
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/models/trending_domain.rb:33-34
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.5 |
app/models/petition.rb:381-382 : Petition#untagged_in_moderation
«
annotate
»
Flog: complexity is 3.4 |
|
app/models/signature.rb:669-670
«
annotate
»
Flog: complexity is 3.5 |
app/models/petition.rb:373-374 : Petition#overdue_in_moderation
«
annotate
»
Flog: complexity is 3.4 |
|
app/models/trending_ip.rb:44-45
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.5 |
app/models/petition.rb:365-366 : Petition#recently_in_moderation
«
annotate
»
Flog: complexity is 3.4 |
|
app/models/signature_logs.rb
«
annotate
»
Reek: found 16 code smells Saikuro: average complexity is 2.0 Flay: found 1 code duplications |
app/models/petition.rb:407-408 : Petition#moderation_threshold_reached_at
«
annotate
»
Flog: complexity is 3.4 |
|
app/jobs/fetch_country_register_job.rb
«
annotate
»
Reek: found 8 code smells Saikuro: average complexity is 2.2 Flay: found 1 code duplications |
app/models/petition.rb:377-378 : Petition#tagged_in_moderation
«
annotate
»
Flog: complexity is 3.4 |
|
app/models/signature_logs.rb:10-12
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.5 |
app/models/petition.rb:403-404 : Petition#signature_count_validated_at
«
annotate
»
Flog: complexity is 3.4 |
|
app/models/rate_limit.rb:139-141
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.5 |
app/models/petition.rb:415-416 : Petition#moderation_overdue_at
«
annotate
»
Flog: complexity is 3.4 |
|
app/models/rate_limit.rb:157-159
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.5 |
app/models/petition.rb:399-400 : Petition#last_signed_at
«
annotate
»
Flog: complexity is 3.4 |
|
app/models/rate_limit.rb:152-154
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.5 |
app/models/petition.rb:411-412 : Petition#moderation_near_overdue_at
«
annotate
»
Flog: complexity is 3.4 |
|
app/models/rate_limit.rb:112-114
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.5 |
app/models/petition.rb:244-245 : Petition#response_threshold_reached
«
annotate
»
Flog: complexity is 3.4 |
|
app/models/rate_limit.rb:121-123
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.5 |
app/models/petition.rb:272-273 : Petition#with_debate_outcome
«
annotate
»
Flog: complexity is 3.4 |
|
app/models/rate_limit.rb:130-132
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.5 |
app/models/petition.rb:228-229 : Petition#not_hidden
«
annotate
»
Flog: complexity is 3.4 |
|
app/controllers/admin/signatures_controller.rb:120-122
«
annotate
»
Flog: complexity is 3.4 |
app/models/parliament.rb:67-68 : Parliament#dissolution_faq_url?
«
annotate
»
Flog: complexity is 3.4 |
|
app/lib/admin/task_runner.rb:35-36
«
annotate
»
Flog: complexity is 3.4 |
app/models/parliament.rb:190-191 : Parliament#show_on_a_map?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/models/archived/petition.rb
«
annotate
»
Reek: found 18 code smells Saikuro: average complexity is 1.0 Flay: found 3 code duplications Roodi: found 2 design problems |
app/models/parliament.rb:182-183 : Parliament#formatted_threshold_for_response
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/helpers/admin_hub_helper.rb:30-32
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/parliament.rb:186-187 : Parliament#formatted_threshold_for_debate
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/helpers/petition_helper.rb:25-27
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/parliament.rb:119-120 : Parliament#period?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/controllers/concerns/bulk_verification.rb:26-28
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/site.rb:343-344 : Site#protocol
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/helpers/auto_link_helper.rb:124-125
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/site.rb:361-362 : Site#moderate_port
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/helpers/page_title_helper.rb:30-32
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/site.rb:365-366 : Site#moderate_protocol
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/helpers/admin_hub_helper.rb:6-8
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/invalidation.rb:209-210 : Invalidation#ip_address_scope
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/helpers/admin_hub_helper.rb:10-12
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/invalidation.rb:229-230 : Invalidation#constituency_id_scope
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/helpers/admin_hub_helper.rb:2-4
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/invalidation.rb:233-234 : Invalidation#location_code_scope
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/helpers/admin_hub_helper.rb:42-44
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/invalidation.rb:193-194 : Invalidation#petition_scope
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/helpers/admin_hub_helper.rb:14-16
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/invalidation.rb:205-206 : Invalidation#postcode_scope
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/helpers/admin_hub_helper.rb:38-40
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/site.rb:250-251 : Site#default_petition_duration
«
annotate
»
Flog: complexity is 3.4 |
|
app/helpers/admin_hub_helper.rb:26-28
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/petition.rb:176-177 : Petition#awaiting_debate_date
«
annotate
»
Flog: complexity is 3.4 |
|
app/controllers/application_controller.rb:97-98
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/parliament.rb:27-28 : Parliament#government
«
annotate
»
Flog: complexity is 3.4 |
|
app/jobs/concerns/email_delivery.rb:63-65
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/site.rb:42-43 : Site#enabled?
«
annotate
»
Flog: complexity is 3.4 |
|
app/jobs/trending_ips_by_petition_job.rb:50-52
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/site.rb:246-247 : Site#default_login_timeout
«
annotate
»
Flog: complexity is 3.4 |
|
app/jobs/trending_domains_by_petition_job.rb:49-51
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/site.rb:234-235 : Site#default_password
«
annotate
»
Flog: complexity is 3.4 |
|
app/models/concerns/browseable.rb:100-102
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/site.rb:254-255 : Site#default_minimum_number_of_sponsors
«
annotate
»
Flog: complexity is 3.4 |
|
app/models/domain.rb:149-151
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/site.rb:230-231 : Site#default_username
«
annotate
»
Flog: complexity is 3.4 |
|
app/models/admin_user.rb:104-106
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/parliament.rb:63-64 : Parliament#dissolution_faq_url
«
annotate
»
Flog: complexity is 3.4 |
|
app/models/admin_user.rb:100-102
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/site.rb:226-227 : Site#default_feedback_email
«
annotate
»
Flog: complexity is 3.4 |
|
app/models/trending_ip.rb:54-56
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/site.rb:222-223 : Site#default_email_from
«
annotate
»
Flog: complexity is 3.4 |
|
app/jobs/sponsor_signed_email_below_threshold_email_job.rb:5-8
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 1.4 |
app/models/site.rb:218-219 : Site#default_port
«
annotate
»
Flog: complexity is 3.4 |
|
app/jobs/sponsor_signed_email_on_threshold_email_job.rb:5-8
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 1.4 |
app/models/site.rb:258-259 : Site#default_maximum_number_of_sponsors
«
annotate
»
Flog: complexity is 3.4 |
|
app/jobs/archived/email_petitioners_job.rb:26-27
«
annotate
»
Flog: complexity is 3.4 |
app/models/parliament.rb:47-48 : Parliament#dissolution_heading
«
annotate
»
Flog: complexity is 3.4 |
|
lib/package_builder.rb:13-14
«
annotate
»
Flog: complexity is 3.4 |
app/models/petition.rb:196-197 : Petition#debated
«
annotate
»
Flog: complexity is 3.4 |
|
app/helpers/cache_helper.rb:133-134
«
annotate
»
Flog: complexity is 3.4 |
app/models/invalidation.rb:93-94 : Invalidation#running
«
annotate
»
Flog: complexity is 3.4 |
|
app/helpers/markdown_helper.rb:36-37
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/site.rb:262-263 : Site#default_threshold_for_moderation
«
annotate
»
Flog: complexity is 3.4 |
|
lib/package_builder.rb:516-517
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/site.rb:122-123 : Site#enable_signature_counts!
«
annotate
»
Flog: complexity is 3.4 |
|
app/controllers/petitions_controller.rb:168-169
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/site.rb:118-119 : Site#disable_signature_counts!
«
annotate
»
Flog: complexity is 3.4 |
|
lib/package_builder.rb:512-513
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/site.rb:114-115 : Site#touch
«
annotate
»
Flog: complexity is 3.4 |
|
lib/package_builder.rb:508-509
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/site.rb:106-107 : Site#login_timeout
«
annotate
»
Flog: complexity is 3.4 |
|
lib/package_builder.rb:480-481
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/site.rb:266-267 : Site#default_threshold_for_moderation_delay
«
annotate
»
Flog: complexity is 3.4 |
|
app/helpers/markdown_helper.rb:28-29
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/site.rb:102-103 : Site#protected?
«
annotate
»
Flog: complexity is 3.4 |
|
app/helpers/cache_helper.rb:47-48
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/site.rb:270-271 : Site#default_threshold_for_response
«
annotate
»
Flog: complexity is 3.4 |
|
app/helpers/cache_helper.rb:101-102
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/parliament.rb:51-52 : Parliament#dissolution_message
«
annotate
»
Flog: complexity is 3.4 |
|
app/controllers/petitions_controller.rb:148-149
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/parliament.rb:59-60 : Parliament#dissolved_message
«
annotate
»
Flog: complexity is 3.4 |
|
app/controllers/petitions_controller.rb:172-173
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/parliament.rb:43-44 : Parliament#notification_cutoff_at
«
annotate
»
Flog: complexity is 3.4 |
|
app/controllers/petitions_controller.rb:156-157
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/parliament.rb:39-40 : Parliament#dissolution_at
«
annotate
»
Flog: complexity is 3.4 |
|
lib/package_builder.rb:433-438
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/parliament.rb:55-56 : Parliament#dissolved_heading
«
annotate
»
Flog: complexity is 3.4 |
|
lib/package_builder.rb:429-430
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/petition.rb:188-189 : Petition#debate_threshold_reached
«
annotate
»
Flog: complexity is 3.4 |
|
lib/package_builder.rb:425-426
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/parliament.rb:31-32 : Parliament#opening_at
«
annotate
»
Flog: complexity is 3.4 |
|
lib/package_builder.rb:458-459
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/petition.rb:180-181 : Petition#awaiting_response
«
annotate
»
Flog: complexity is 3.4 |
|
lib/package_builder.rb:324-325
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/site.rb:274-275 : Site#default_threshold_for_debate
«
annotate
»
Flog: complexity is 3.4 |
|
lib/package_builder.rb:469-470
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/petition.rb:144-145 : Petition#current
«
annotate
»
Flog: complexity is 3.4 |
|
lib/package_builder.rb:223-224
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/parliament.rb:23-24 : Parliament#current
«
annotate
»
Flog: complexity is 3.4 |
|
lib/package_builder.rb:219-220
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/archived/signature.rb : Signature#get_email_sent_at_for
«
annotate
»
Saikuro: complexity is 1.0 Flog: average complexity is 2.4 |
|
app/presenters/petition_csv_presenter.rb:52-53
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/archived/signature.rb : Signature#invalidated?
«
annotate
»
Saikuro: complexity is 1.0 Flog: average complexity is 2.4 |
|
app/presenters/petition_csv_presenter.rb:48-49
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/archived/signature.rb : Signature#unsubscribed?
«
annotate
»
Saikuro: complexity is 1.0 Flog: average complexity is 2.4 |
|
app/models/archived/rejection.rb:22-23
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/archived/signature.rb : Signature#pending?
«
annotate
»
Saikuro: complexity is 1.0 Flog: average complexity is 2.4 |
|
app/models/archived/petition.rb:107-108
«
annotate
»
Flog: complexity is 3.4 |
app/models/archived/signature.rb : Signature#united_kingdom?
«
annotate
»
Saikuro: complexity is 1.0 Flog: average complexity is 2.4 |
|
app/models/archived/petition.rb:103-104
«
annotate
»
Flog: complexity is 3.4 |
app/models/archived/signature.rb : Signature#fraudulent?
«
annotate
»
Saikuro: complexity is 1.0 Flog: average complexity is 2.4 |
|
app/models/archived/signature.rb:89-90
«
annotate
»
Flog: complexity is 3.4 |
app/models/constituency/api_client.rb:31-32 : ApiClient#escape_path
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/models/archived/signature.rb:73-74
«
annotate
»
Flog: complexity is 3.4 |
app/models/constituency/api_client.rb:27-28 : ApiClient#path
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/models/archived/signature.rb:208-210
«
annotate
»
Flog: complexity is 3.4 |
app/models/signature.rb:423-424 : Signature#validated_at
«
annotate
»
Flog: complexity is 3.4 |
|
app/models/archived/petition.rb:163-164
«
annotate
»
Flog: complexity is 3.4 |
app/models/signature.rb:415-417 : Signature#postcode_search?
«
annotate
»
Flog: complexity is 3.4 |
|
app/models/archived/petition.rb:159-160
«
annotate
»
Flog: complexity is 3.4 |
app/models/signature.rb:137-138 : Signature#for_postcode
«
annotate
»
Flog: complexity is 3.4 |
|
app/models/archived/petition.rb:151-152
«
annotate
»
Flog: complexity is 3.4 |
app/models/signature.rb:117-118 : Signature#for_email
«
annotate
»
Flog: complexity is 3.4 |
|
app/models/archived/petition.rb:119-120
«
annotate
»
Flog: complexity is 3.4 |
app/models/signature.rb:113-114 : Signature#for_domain
«
annotate
»
Flog: complexity is 3.4 |
|
app/models/archived/petition.rb:171-172
«
annotate
»
Flog: complexity is 3.4 |
app/models/petition_creator.rb:213-214 : PetitionCreator#done?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/models/archived/signature.rb:69-70
«
annotate
»
Flog: complexity is 3.4 |
app/models/petition_creator.rb:229-230 : PetitionCreator#constituency_id
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/models/petition.rb:373-374
«
annotate
»
Flog: complexity is 3.4 |
app/models/petition_creator.rb:86-87 : PetitionCreator#action?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/models/petition.rb:381-382
«
annotate
»
Flog: complexity is 3.4 |
app/models/petition_creator.rb:94-95 : PetitionCreator#background?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/models/petition.rb:399-400
«
annotate
»
Flog: complexity is 3.4 |
app/models/petition_creator.rb:144-145 : PetitionCreator#stage_index
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/models/petition.rb:415-416
«
annotate
»
Flog: complexity is 3.4 |
app/models/petition_creator.rb:140-141 : PetitionCreator#moving_backwards?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
|
app/models/petition.rb:365-366
«
annotate
»
Flog: complexity is 3.4 |
app/models/constituency/api_query.rb : ApiQuery#client
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/petition.rb:407-408
«
annotate
»
Flog: complexity is 3.4 |
app/models/task.rb : Task#task_for
«
annotate
»
Reek: found 1 code smells Flog: complexity is 2.7 |
|
app/models/petition.rb:377-378
«
annotate
»
Flog: complexity is 3.4 |
app/controllers/admin/signatures_controller.rb:136-140 : SignaturesController#index_url
«
annotate
»
Flog: complexity is 3.4 |
|
app/models/petition.rb:411-412
«
annotate
»
Flog: complexity is 3.4 |
app/controllers/admin/signatures_controller.rb : Admin#scope
«
annotate
»
Saikuro: average complexity is 3.3 |
|
app/models/petition.rb:403-404
«
annotate
»
Flog: complexity is 3.4 |
app/controllers/concerns/bulk_verification.rb:22-24 : BulkVerification#bulk_verification_token
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.3 |
|
app/models/petition.rb:228-229
«
annotate
»
Flog: complexity is 3.4 |
app/models/rejection.rb : Rejection#hide_petition?
«
annotate
»
Saikuro: average complexity is 1.0 Flog: average complexity is 2.3 |
|
app/models/petition.rb:272-273
«
annotate
»
Flog: complexity is 3.4 |
: InvalidateSignaturesJob#none
Flog: complexity is 3.3 |
|
app/models/petition.rb:244-245
«
annotate
»
Flog: complexity is 3.4 |
: NotifyEveryoneOfModerationDecisionJob#none
Flog: complexity is 3.3 |
|
app/models/site.rb:361-362
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/parliament.rb:127-129 : Parliament#dissolution_announced?
«
annotate
»
Saikuro: complexity is 1.0 Flog: average complexity is 2.3 |
|
app/models/site.rb:50-51
«
annotate
»
Flog: complexity is 3.4 |
app/helpers/page_title_helper.rb:34-36 : PageTitleBuilder#key
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/parliament.rb:23-24
«
annotate
»
Flog: complexity is 3.4 |
app/lib/cloud_front_remote_ip.rb:5-7 : CloudFrontRemoteIp#call
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/petition.rb:144-145
«
annotate
»
Flog: complexity is 3.4 |
app/controllers/admin/petition_statistics_controller.rb:5-8 : PetitionStatisticsController#update
«
annotate
»
Flog: complexity is 3.2 |
|
app/models/site.rb:274-275
«
annotate
»
Flog: complexity is 3.4 |
app/models/petition/statistics.rb:5-6 : after_commit#on
«
annotate
»
Flog: complexity is 3.2 |
|
app/models/site.rb:46-47
«
annotate
»
Flog: complexity is 3.4 |
lib/tasks/errors.rake:15-16 : namespace(errors)#task#data_uri
«
annotate
»
Flog: complexity is 3.2 |
|
app/models/petition.rb:180-181
«
annotate
»
Flog: complexity is 3.4 |
lib/tasks/petitions.rake:63-64 : namespace(epets)#namespace(petitions)#task#update_moderation_lag
«
annotate
»
Flog: complexity is 3.2 |
|
app/models/parliament.rb:31-32
«
annotate
»
Flog: complexity is 3.4 |
app/helpers/home_helper.rb:64-65 : HomeHelper#petition_count
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/petition.rb:188-189
«
annotate
»
Flog: complexity is 3.4 |
app/helpers/home_helper.rb:17-18 : ActionedPetitionsDecorator#[]
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/parliament.rb:55-56
«
annotate
»
Flog: complexity is 3.4 |
app/controllers/feedback_controller.rb:41-42 : FeedbackController#user_agent
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/parliament.rb:39-40
«
annotate
»
Flog: complexity is 3.4 |
app/controllers/concerns/form_tracking.rb:14-15 : FormTracking#form_request_id
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/parliament.rb:43-44
«
annotate
»
Flog: complexity is 3.4 |
app/controllers/concerns/form_tracking.rb:28-29 : FormTracking#form_token
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/parliament.rb:79-80
«
annotate
»
Flog: complexity is 3.4 |
app/helpers/auto_link_helper.rb:68-69 : AutoLinker#auto_link_all
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/parliament.rb:59-60
«
annotate
»
Flog: complexity is 3.4 |
app/controllers/concerns/form_tracking.rb:32-33 : FormTracking#form_requested_at
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/parliament.rb:75-76
«
annotate
»
Flog: complexity is 3.4 |
app/helpers/petition_helper.rb:29-30 : PetitionHelper#petition_list_header?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/site.rb:34-35
«
annotate
»
Flog: complexity is 3.4 |
lib/arel_extensions.rb:31-32 : Predications#overlaps
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/site.rb:38-39
«
annotate
»
Flog: complexity is 3.4 |
lib/arel_extensions.rb:27-28 : Predications#contains
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/parliament.rb:51-52
«
annotate
»
Flog: complexity is 3.4 |
lib/arel_extensions.rb:23-24 : Predications#contained
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/site.rb:54-55
«
annotate
»
Flog: complexity is 3.4 |
app/helpers/sharing_helper.rb:36-37 : SharingHelper#share_via_facebook_params
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/site.rb:58-59
«
annotate
»
Flog: complexity is 3.4 |
app/helpers/sharing_helper.rb:52-53 : SharingHelper#share_title
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/site.rb:270-271
«
annotate
»
Flog: complexity is 3.4 |
app/helpers/page_title_helper.rb:71-72 : PageTitleBuilder#formatted_postcode
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/site.rb:62-63
«
annotate
»
Flog: complexity is 3.4 |
app/helpers/admin_hub_helper.rb:77-78 : AdminHubHelper#action_count
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/site.rb:74-75
«
annotate
»
Flog: complexity is 3.4 |
lib/package_builder.rb:79-80 : PackageBuilder#application_name
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/site.rb:78-79
«
annotate
»
Flog: complexity is 3.4 |
lib/package_builder.rb:138-139 : PackageBuilder#credentials
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/site.rb:98-99
«
annotate
»
Flog: complexity is 3.4 |
app/controllers/application_controller.rb:75-76 : ApplicationController#redirect_to_home_page
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/site.rb:102-103
«
annotate
»
Flog: complexity is 3.4 |
app/controllers/sponsors_controller.rb:72-73 : SponsorsController#thank_you_url
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/site.rb:266-267
«
annotate
»
Flog: complexity is 3.4 |
app/controllers/application_controller.rb:47-48 : ApplicationController#redirect_to_url_without_format
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/site.rb:106-107
«
annotate
»
Flog: complexity is 3.4 |
app/jobs/trending_ips_by_petition_job.rb:42-43 : TrendingIpsByPetitionJob#petitions
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/site.rb:114-115
«
annotate
»
Flog: complexity is 3.4 |
app/jobs/backfill_constituencies_job.rb:30-31 : BackfillConstituenciesJob#reschedule?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/site.rb:118-119
«
annotate
»
Flog: complexity is 3.4 |
app/jobs/concerns/email_all_petition_signatories.rb:40-41 : ClassMethods#midnight
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/site.rb:122-123
«
annotate
»
Flog: complexity is 3.4 |
app/jobs/concerns/email_delivery.rb:82-83 : EmailDelivery#create_email
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/site.rb:262-263
«
annotate
»
Flog: complexity is 3.4 |
app/jobs/concerns/email_delivery.rb:67-68 : EmailDelivery#send_email
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/invalidation.rb:93-94
«
annotate
»
Flog: complexity is 3.4 |
app/jobs/archived/email_petitioners_job.rb : EmailPetitionersJob#mailer_arguments
«
annotate
»
Saikuro: average complexity is 1.0 Flog: average complexity is 2.2 |
|
app/models/petition.rb:196-197
«
annotate
»
Flog: complexity is 3.4 |
app/jobs/reset_petition_signature_count_job.rb:17-18 : ResetPetitionSignatureCountJob#send_notification
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/parliament.rb:47-48
«
annotate
»
Flog: complexity is 3.4 |
app/jobs/update_signature_counts_job.rb:74-75 : UpdateSignatureCountsJob#petition_ids
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/parliament.rb:67-68
«
annotate
»
Flog: complexity is 3.4 |
app/jobs/update_signature_counts_job.rb:78-79 : UpdateSignatureCountsJob#petitions
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/site.rb:258-259
«
annotate
»
Flog: complexity is 3.4 |
app/jobs/reset_petition_signature_count_job.rb:21-22 : ResetPetitionSignatureCountJob#exception
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/site.rb:218-219
«
annotate
»
Flog: complexity is 3.4 |
app/jobs/trending_domains_by_petition_job.rb:41-42 : TrendingDomainsByPetitionJob#petitions
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/site.rb:222-223
«
annotate
»
Flog: complexity is 3.4 |
app/presenters/api_pagination_links_presenter.rb:30-31 : ApiPaginationLinksPresenter#first_url
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/site.rb:226-227
«
annotate
»
Flog: complexity is 3.4 |
app/models/concerns/browseable.rb:169-170 : Search#model
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/parliament.rb:63-64
«
annotate
»
Flog: complexity is 3.4 |
app/models/concerns/browseable.rb:214-215 : ClassMethods#filter
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/site.rb:230-231
«
annotate
»
Flog: complexity is 3.4 |
app/models/concerns/browseable.rb:218-219 : ClassMethods#search
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/site.rb:254-255
«
annotate
»
Flog: complexity is 3.4 |
app/models/concerns/browseable.rb:128-129 : Search#previous_params
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/site.rb:234-235
«
annotate
»
Flog: complexity is 3.4 |
app/models/concerns/browseable.rb:24-25 : Facets#[]
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/site.rb:246-247
«
annotate
»
Flog: complexity is 3.4 |
app/models/concerns/browseable.rb:144-145 : Search#search?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/site.rb:42-43
«
annotate
»
Flog: complexity is 3.4 |
app/models/concerns/browseable.rb:140-141 : Search#scoped?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/parliament.rb:27-28
«
annotate
»
Flog: complexity is 3.4 |
app/models/concerns/browseable.rb:148-149 : Search#to_a
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/petition.rb:176-177
«
annotate
»
Flog: complexity is 3.4 |
app/models/concerns/browseable.rb:132-133 : Search#next_params
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/site.rb:250-251
«
annotate
»
Flog: complexity is 3.4 |
app/models/concerns/taggable.rb:41-42 : Taggable#tags=
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/invalidation.rb:205-206
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/concerns/geoip_lookup.rb:34-35 : GeoipLookup#iso_code_for
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/invalidation.rb:193-194
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/concerns/geoip_lookup.rb:30-31 : GeoipLookup#geoip_lookup
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/invalidation.rb:233-234
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/concerns/geoip_lookup.rb:38-39 : GeoipLookup#country_name_for
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/invalidation.rb:229-230
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/constituency_petition_journal.rb:56-57 : ConstituencyPetitionJournal#last_signed_at
«
annotate
»
Flog: complexity is 3.2 |
|
app/models/invalidation.rb:209-210
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/domain.rb:4-7 : Domain#with_options#class_name
«
annotate
»
Flog: complexity is 3.2 |
|
app/models/site.rb:331-332
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/domain.rb:81-82 : Domain#aliased_domain?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/site.rb:327-328
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/domain.rb:89-90 : Domain#alias?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/site.rb:323-324
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/domain.rb:93-94 : Domain#alias
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/site.rb:319-320
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/admin_user.rb:108-109 : AdminUser#account_disabled
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/site.rb:365-366
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/admin_user.rb:88-89 : AdminUser#is_a_sysadmin?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/site.rb:353-354
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/email_requested_receipt.rb:18-19 : EmailRequestedReceipt#valid_timestamp?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/site.rb:315-316
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/admin_user.rb:92-93 : AdminUser#is_a_moderator?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/site.rb:343-344
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/parliament.rb:105-106 : Parliament#name
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
|
app/models/site.rb:339-340
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/parliament.rb:15-17 : Parliament#instance
«
annotate
»
Flog: complexity is 3.2 |
|
app/models/parliament.rb:119-120
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/site.rb:190-191 : Site#default_url_components
«
annotate
»
Flog: complexity is 3.2 |
|
app/models/parliament.rb:186-187
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/site.rb:210-211 : Site#default_moderate_url_components
«
annotate
»
Flog: complexity is 3.2 |
|
app/models/parliament.rb:182-183
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/country_petition_journal.rb:48-49 : CountryPetitionJournal#last_signed_at
«
annotate
»
Flog: complexity is 3.2 |
|
app/models/parliament.rb:190-191
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/location.rb:22-23 : Location#menu
«
annotate
»
Flog: complexity is 3.2 |
|
app/models/constituency/api_client.rb:27-28
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/location.rb:28-29 : Location#start_date
«
annotate
»
Flog: complexity is 3.2 |
|
app/models/constituency/api_client.rb:31-32
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
app/models/location.rb:32-33 : Location#end_date
«
annotate
»
Flog: complexity is 3.2 |
|
app/models/signature.rb:415-417
«
annotate
»
Flog: complexity is 3.4 |
app/models/signature.rb:435-436 : Signature#normalize_email
«
annotate
»
Flog: complexity is 3.2 |
|
app/models/signature.rb:423-424
«
annotate
»
Flog: complexity is 3.4 |
app/models/statistics.rb:54-55 : Statistics#select_rows
«
annotate
»
Flog: complexity is 3.2 |
|
app/models/signature.rb:137-138
«
annotate
»
Flog: complexity is 3.4 |
app/mailers/petition_mailer.rb:176-177 : PetitionMailer#unsubscribe_url
«
annotate
»
Saikuro: average complexity is 1.0 Flog: average complexity is 2.2 |
|
app/models/signature.rb:117-118
«
annotate
»
Flog: complexity is 3.4 |
: PerishableTokenGenerator#none
Flog: complexity is 3.2 |
|
app/models/signature.rb:113-114
«
annotate
»
Flog: complexity is 3.4 |
app/models/admin_user.rb:32-34 : AdminUser#before_update#if
«
annotate
»
Flog: complexity is 3.0 |
|
app/models/petition_creator.rb:213-214
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
: FormTracking#none
Flog: complexity is 3.0 |
|
app/models/petition_creator.rb:229-230
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
: UserSessionsController#none
Flog: complexity is 3.0 |
|
app/models/petition_creator.rb:86-87
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
: HolidaysController#none
Flog: complexity is 3.0 |
|
app/models/petition_creator.rb:94-95
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
: ParliamentsController#none
Flog: complexity is 3.0 |
|
app/models/petition_creator.rb:140-141
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
: TrendingDomainsController#none
Flog: complexity is 3.0 |
|
app/models/petition_creator.rb:144-145
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.4 |
: PetitionStatisticsController#none
Flog: complexity is 3.0 |
|
lib/package_builder.rb:401-403
«
annotate
»
Flog: complexity is 3.4 |
: RateLimitsController#none
Flog: complexity is 3.0 |
|
lib/package_builder.rb:269-271
«
annotate
»
Flog: complexity is 3.4 |
: SitesController#none
Flog: complexity is 3.0 |
|
app/controllers/concerns/flash_i18n.rb
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 3.0 Roodi: found 1 design problems |
: TasksController#none
Flog: complexity is 3.0 |
|
app/controllers/admin/signatures_controller.rb:136-140
«
annotate
»
Flog: complexity is 3.4 |
: TrendingIpsController#none
Flog: complexity is 3.0 |
|
app/models/debate_outcome.rb
«
annotate
»
Reek: found 7 code smells Saikuro: average complexity is 1.8 Flay: found 2 code duplications |
: ApplicationJob#none
Flog: complexity is 3.0 |
|
app/controllers/concerns/bulk_verification.rb:22-24
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.3 |
: DeliverPetitionEmailJob#none
Flog: average complexity is 3.0 |
|
app/jobs/notify_everyone_of_moderation_decision_job.rb:27-31
«
annotate
»
Flog: complexity is 3.3 |
app/controllers/concerns/form_tracking.rb:10-11 : FormTracking#build_form_request
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.0 |
|
app/jobs/notify_everyone_of_moderation_decision_job.rb:19-23
«
annotate
»
Flog: complexity is 3.3 |
app/helpers/home_helper.rb:50-52 : HomeHelper#explanation_petitions
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.0 |
|
app/mailers/archived/petition_mailer.rb
«
annotate
»
Reek: found 9 code smells Saikuro: average complexity is 1.4 Flay: found 5 code duplications |
app/controllers/signatures_controller.rb:229-234 : SignaturesController#signature_params_for_new
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.0 |
|
app/helpers/page_title_helper.rb:34-36
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/jobs/trending_ips_by_petition_job.rb:46-48 : TrendingIpsByPetitionJob#window
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.0 |
|
app/lib/cloud_front_remote_ip.rb:5-7
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/jobs/trending_domains_by_petition_job.rb:45-47 : TrendingDomainsByPetitionJob#window
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.0 |
|
app/controllers/concerns/form_tracking.rb:18-20
«
annotate
»
Flog: complexity is 3.2 |
app/models/admin_user.rb:80-81 : AdminUser#name
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.0 |
|
app/controllers/admin/petition_statistics_controller.rb:5-8
«
annotate
»
Flog: complexity is 3.2 |
app/models/admin_user.rb:84-85 : AdminUser#pretty_name
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.0 |
|
app/models/petition/statistics.rb:5-6
«
annotate
»
Flog: complexity is 3.2 |
app/models/moderation_delay.rb:9-10 : ModerationDelay#attributes
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.0 |
|
lib/tasks/errors.rake:15-16
«
annotate
»
Flog: complexity is 3.2 |
app/models/admin_user.rb:42-44 : AdminUser#current_password
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 1.0 |
|
app/models/concerns/geoip_lookup.rb:25-27
«
annotate
»
Flog: complexity is 3.2 |
app/models/holiday.rb:41-43 : Holiday#christmas
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.0 |
|
lib/tasks/petitions.rake:63-64
«
annotate
»
Flog: complexity is 3.2 |
app/models/constituency_petition_journal.rb : ConstituencyPetitionJournal##reset_signature_counts_for
«
annotate
»
Saikuro: complexity is 3.0 |
|
app/controllers/feedback_controller.rb:41-42
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/models/constituency_petition_journal.rb : ConstituencyPetitionJournal##increment_signature_counts_for
«
annotate
»
Saikuro: complexity is 3.0 |
|
lib/arel_extensions.rb:31-32
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/models/signature.rb : #validate!
«
annotate
»
Saikuro: complexity is 3.0 |
|
app/helpers/sharing_helper.rb:36-37
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/models/signature.rb : #destroy!
«
annotate
»
Saikuro: average complexity is 3.0 |
|
app/helpers/sharing_helper.rb:52-53
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/models/signature.rb : #subscribe!
«
annotate
»
Saikuro: average complexity is 3.0 |
|
app/controllers/concerns/form_tracking.rb:14-15
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/models/signature.rb : #invalidate!
«
annotate
»
Saikuro: complexity is 3.0 |
|
lib/arel_extensions.rb:27-28
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/models/signature.rb : #trending_domains_by_petition
«
annotate
»
Saikuro: complexity is 3.0 |
|
lib/arel_extensions.rb:23-24
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/models/country_petition_journal.rb : CountryPetitionJournal##reset_signature_counts_for
«
annotate
»
Saikuro: complexity is 3.0 |
|
app/controllers/concerns/form_tracking.rb:28-29
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/models/country_petition_journal.rb : CountryPetitionJournal##increment_signature_counts_for
«
annotate
»
Saikuro: complexity is 3.0 |
|
app/controllers/concerns/form_tracking.rb:32-33
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
: PetitionMailer#none
Flog: average complexity is 3.0 |
|
app/helpers/page_title_helper.rb:71-72
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/models/domain.rb : Domain##normalize
«
annotate
»
Saikuro: complexity is 3.0 |
|
app/helpers/admin_hub_helper.rb:77-78
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/models/domain.rb : Domain##candidates
«
annotate
»
Saikuro: complexity is 3.0 |
|
lib/package_builder.rb:79-80
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/controllers/admin/invalidations_controller.rb : Admin#count
«
annotate
»
Saikuro: complexity is 3.0 |
|
lib/package_builder.rb:138-139
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/controllers/admin/invalidations_controller.rb : Admin#cancel
«
annotate
»
Saikuro: complexity is 3.0 |
|
app/helpers/page_title_helper.rb:4-5
«
annotate
»
Flog: complexity is 3.2 |
app/controllers/admin/invalidations_controller.rb : Admin#start
«
annotate
»
Saikuro: complexity is 3.0 |
|
app/helpers/home_helper.rb:64-65
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/models/holiday.rb:45-47 : Holiday#easter
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.0 |
|
app/helpers/petition_helper.rb:29-30
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/controllers/admin/invalidations_controller.rb : Admin#update
«
annotate
»
Saikuro: average complexity is 2.9 |
|
app/helpers/auto_link_helper.rb:68-69
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/models/country_petition_journal.rb : CountryPetitionJournal#for
«
annotate
»
Reek: found 1 code smells Flog: complexity is 2.7 |
|
app/helpers/home_helper.rb:17-18
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/models/feedback_signature.rb:20-22 : main#rfc2822
«
annotate
»
Flog: complexity is 2.9 |
|
app/controllers/sponsors_controller.rb:72-73
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/models/petition.rb:834-835 : Petition#set_email_requested_at_for
«
annotate
»
Flog: average complexity is 2.9 |
|
app/controllers/application_controller.rb:47-48
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
: EmailDebateOutcomesJob#none
Flog: average complexity is 2.8 |
|
app/controllers/application_controller.rb:75-76
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
: EmailDebateScheduledJob#none
Flog: average complexity is 2.8 |
|
app/jobs/concerns/email_delivery.rb:67-68
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
: PetitionAndEmailConfirmationForSponsorEmailJob#none
Flog: complexity is 2.8 |
|
app/jobs/concerns/email_all_petition_signatories.rb:40-41
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
: EmailThresholdResponseJob#none
Flog: average complexity is 2.8 |
|
app/jobs/backfill_constituencies_job.rb:30-31
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
: EmailConfirmationForSignerEmailJob#none
Flog: complexity is 2.8 |
|
app/jobs/trending_ips_by_petition_job.rb:42-43
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/models/signature.rb : Signature#inline_updates?
«
annotate
»
Reek: found 1 code smells Flog: complexity is 2.4 |
|
app/jobs/email_petitioners_job.rb:21-22
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/models/domain.rb : Domain#default_domain
«
annotate
»
Reek: found 1 code smells Flog: complexity is 2.7 |
|
app/jobs/concerns/email_delivery.rb:82-83
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/helpers/date_time_helper.rb : DateTimeHelper#date_format
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.5 |
|
app/jobs/reset_petition_signature_count_job.rb:17-18
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/helpers/date_time_helper.rb : DateTimeHelper#date_format_admin
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.5 |
|
app/jobs/update_signature_counts_job.rb:78-79
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/models/signature.rb:702-703 : Signature#email_threshold_reached?
«
annotate
»
Flog: complexity is 2.7 |
|
app/jobs/reset_petition_signature_count_job.rb:21-22
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/helpers/date_time_helper.rb : DateTimeHelper#short_date_format
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.5 |
|
app/jobs/update_signature_counts_job.rb:74-75
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/models/constituency_petition_journal.rb : ConstituencyPetitionJournal#for
«
annotate
»
Reek: found 1 code smells Flog: complexity is 2.7 |
|
app/jobs/trending_domains_by_petition_job.rb:41-42
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/helpers/date_time_helper.rb : DateTimeHelper#short_date_time_format
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.5 |
|
app/models/concerns/browseable.rb:218-219
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/controllers/concerns/authentication.rb : Authentication#set_login_timeout
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.4 |
|
app/models/concerns/browseable.rb:169-170
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
lib/arel_extensions.rb : PostgreSQL#visit_Arel_Nodes_Contained
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/models/concerns/browseable.rb:214-215
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/helpers/cache_helper.rb : Keys#last_petition_created_at
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/presenters/api_pagination_links_presenter.rb:30-31
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
lib/arel_extensions.rb : PostgreSQL#visit_Arel_Nodes_Contains
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/models/concerns/browseable.rb:132-133
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
lib/arel_extensions.rb : PostgreSQL#visit_Arel_Nodes_Overlaps
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/models/concerns/browseable.rb:128-129
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/helpers/cache_helper.rb : Keys#site_updated_at
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/models/concerns/taggable.rb:41-42
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/helpers/cache_helper.rb:175-177 : CacheKey#dependencies
«
annotate
»
Flog: complexity is 2.6 |
|
app/models/concerns/browseable.rb:24-25
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/helpers/cache_helper.rb:183-185 : CacheKey#keys
«
annotate
»
Flog: complexity is 2.6 |
|
app/models/concerns/browseable.rb:144-145
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/models/petition.rb:780-782 : Petition#government_response?
«
annotate
»
Flog: average complexity is 2.6 |
|
app/models/concerns/browseable.rb:140-141
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/models/petition.rb:826-828 : Petition#email_requested_receipt!
«
annotate
»
Flog: complexity is 2.6 |
|
app/models/concerns/browseable.rb:148-149
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/models/petition.rb:868-870 : Petition#fraudulent_domains
«
annotate
»
Flog: complexity is 2.6 |
|
app/models/concerns/geoip_lookup.rb:38-39
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/models/petition.rb:784-786 : Petition#debate_outcome?
«
annotate
»
Flog: complexity is 2.6 |
|
app/models/concerns/geoip_lookup.rb:34-35
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/models/petition.rb:740-742 : Petition#editing_disabled?
«
annotate
»
Flog: complexity is 2.6 |
|
app/models/concerns/geoip_lookup.rb:30-31
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/models/petition.rb:539-541 : Petition#valid_signature_count!
«
annotate
»
Flog: complexity is 2.6 |
|
app/models/constituency_petition_journal.rb:56-57
«
annotate
»
Flog: complexity is 3.2 |
app/helpers/signature_helper.rb : SignatureHelper#siganture_count_options
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/models/domain.rb:4-7
«
annotate
»
Flog: complexity is 3.2 |
app/helpers/application_helper.rb:42-44 : ApplicationHelper#back_url
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.6 |
|
app/models/archived/signature.rb:216-217
«
annotate
»
Flog: complexity is 3.2 |
app/helpers/markdown_helper.rb : MarkdownHelper#text_renderer
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/models/domain.rb:89-90
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/controllers/admin/archived/notes_controller.rb:23-25 : NotesController#fetch_note
«
annotate
»
Flog: average complexity is 2.6 |
|
app/models/domain.rb:93-94
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/controllers/admin/archived/government_response_controller.rb:34-36 : GovernmentResponseController#fetch_government_response
«
annotate
»
Flog: average complexity is 2.6 |
|
app/models/domain.rb:81-82
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/controllers/admin/archived/debate_outcomes_controller.rb:34-36 : DebateOutcomesController#fetch_debate_outcome
«
annotate
»
Flog: average complexity is 2.6 |
|
app/models/admin_user.rb:108-109
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/lib/quiet_logger.rb : QuietLogger#logger
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/models/admin_user.rb:88-89
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/validators/email_validator.rb : EmailValidator#parsed_email
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/models/admin_user.rb:92-93
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/models/feedback_signature.rb:6-7 : main#email
«
annotate
»
Flog: complexity is 2.6 |
|
app/models/email_requested_receipt.rb:18-19
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
lib/package_builder.rb : PackageBuilder#register_with_elb_script
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/models/site.rb:190-191
«
annotate
»
Flog: complexity is 3.2 |
app/jobs/delete_petition_job.rb : DeletePetitionJob#perform
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/models/site.rb:210-211
«
annotate
»
Flog: complexity is 3.2 |
app/jobs/invalidate_signatures_job.rb : InvalidateSignaturesJob#perform
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/models/parliament.rb:105-106
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/jobs/email_job.rb : EmailJob#set_appsignal_namespace
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/models/parliament.rb:15-17
«
annotate
»
Flog: complexity is 3.2 |
app/controllers/admin/moderation_delays_controller.rb : ModerationDelaysController#example_petition
«
annotate
»
Reek: found 1 code smells Flog: complexity is 2.2 |
|
app/models/country_petition_journal.rb:48-49
«
annotate
»
Flog: complexity is 3.2 |
app/jobs/archive_petition_job.rb : ArchivePetitionJob#parliament
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/models/location.rb:32-33
«
annotate
»
Flog: complexity is 3.2 |
app/jobs/email_threshold_reminder_job.rb : EmailThresholdReminderJob#perform
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/models/location.rb:28-29
«
annotate
»
Flog: complexity is 3.2 |
lib/package_builder.rb : PackageBuilder#slack_webhook
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/models/location.rb:22-23
«
annotate
»
Flog: complexity is 3.2 |
app/models/government_response.rb:13-15 : GovernmentResponse#responded_on
«
annotate
»
Saikuro: average complexity is 1.0 Flog: average complexity is 1.6 |
|
app/models/signature.rb:435-436
«
annotate
»
Flog: complexity is 3.2 |
app/controllers/local_petitions_controller.rb:46-47 : LocalPetitionsController#find_by_postcode
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.6 |
|
app/models/statistics.rb:54-55
«
annotate
»
Flog: complexity is 3.2 |
app/jobs/notify_trending_ip_job.rb:27-29 : NotifyTrendingIpJob#rate_limit
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.6 |
|
app/mailers/petition_mailer.rb:176-177
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.2 |
app/jobs/notify_trending_domain_job.rb:27-29 : NotifyTrendingDomainJob#rate_limit
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.6 |
|
app/controllers/admin/petition_emails_controller.rb:51-59
«
annotate
»
Flog: complexity is 3.1 |
app/jobs/refresh_constituency_party_job.rb:29-31 : RefreshConstituencyPartyJob#members
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.6 |
|
app/validators/email_validator.rb
«
annotate
»
Reek: found 6 code smells Saikuro: average complexity is 2.3 |
app/models/signature_logs.rb:82-83 : SignatureLogs#initialize
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.6 |
|
app/helpers/debate_outcome_helper.rb
«
annotate
»
Reek: found 5 code smells Saikuro: average complexity is 2.3 |
app/models/signature_logs.rb:92-94 : SignatureLogs#client
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.6 |
|
app/controllers/admin/domains_controller.rb
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 2.0 Flay: found 2 code duplications |
app/models/rate_limit.rb:144-146 : RateLimit#blocked_ips_list
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.6 |
|
app/models/admin_user.rb:32-34
«
annotate
»
Flog: complexity is 3.0 |
app/models/rate_limit.rb:126-128 : RateLimit#blocked_domains_list
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.6 |
|
app/models/constituency.rb
«
annotate
»
Reek: found 7 code smells Saikuro: average complexity is 1.8 Roodi: found 1 design problems |
app/models/rate_limit.rb:117-119 : RateLimit#allowed_domains_list
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.6 |
|
app/jobs/notify_everyone_of_moderation_decision_job.rb
«
annotate
»
Reek: found 4 code smells Saikuro: average complexity is 2.3 |
app/models/rate_limit.rb:135-137 : RateLimit#allowed_ips_list
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.6 |
|
app/controllers/sponsors_controller.rb
«
annotate
»
Reek: found 4 code smells Saikuro: complexity is 2.0 Flay: found 1 code duplications |
app/models/rate_limit.rb:162-164 : RateLimit#ignored_domains_list
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.6 |
|
app/models/task.rb
«
annotate
»
Reek: found 4 code smells Saikuro: average complexity is 2.3 Flay: found 1 code duplications |
app/models/rate_limit.rb:148-150 : RateLimit#allowed_countries
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.6 |
|
app/controllers/concerns/form_tracking.rb:10-11
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.0 |
app/controllers/admin/statistics_controller.rb:6-8 : StatisticsController#index
«
annotate
»
Flog: complexity is 2.5 |
|
app/helpers/home_helper.rb:50-52
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.0 |
app/jobs/refresh_constituencies_job.rb : RefreshConstituenciesJob#perform
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/controllers/signatures_controller.rb:229-234
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.0 |
app/jobs/feedback_email_job.rb : FeedbackEmailJob#feedback_sending_disabled?
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/jobs/trending_ips_by_petition_job.rb:46-48
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.0 |
app/jobs/petition_count_job.rb : PetitionCountJob#petitions
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/jobs/trending_domains_by_petition_job.rb:45-47
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.0 |
app/mailers/petition_mailer.rb:152-154 : PetitionMailer#signature_belongs_to_creator?
«
annotate
»
Saikuro: average complexity is 1.0 Flog: average complexity is 1.5 |
|
app/models/admin_user.rb:84-85
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.0 |
lib/health_check.rb : HealthCheck#hostname
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/models/admin_user.rb:80-81
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.0 |
app/models/petition.rb:760-761 : Petition#force_checkout!
«
annotate
»
Flog: average complexity is 2.5 |
|
app/models/moderation_delay.rb:9-10
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.0 |
app/models/petition.rb:622-623 : Petition#publish
«
annotate
»
Flog: complexity is 2.5 |
|
app/models/admin_user.rb:42-44
«
annotate
»
Saikuro: complexity is 2.0 Flog: complexity is 1.0 |
lib/package_builder.rb : PackageBuilder#application_start_script
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/models/holiday.rb:45-47
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.0 |
app/jobs/notify_creators_that_moderation_is_delayed_job.rb : NotifyCreatorsThatModerationIsDelayedJob#petitions
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/models/holiday.rb:41-43
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 2.0 |
lib/package_builder.rb : PackageBuilder#application_stop_script
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/lib/admin/task_runner.rb
«
annotate
»
Reek: found 3 code smells Saikuro: average complexity is 2.0 Roodi: found 1 design problems |
lib/package_builder.rb : PackageBuilder#appsignal_push_api_key
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/models/site.rb
«
annotate
»
Reek: found 16 code smells Saikuro: average complexity is 1.1 Flay: found 1 code duplications Roodi: found 1 design problems |
app/jobs/application_job.rb : ApplicationJob#reload_parliament
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/jobs/archived/deliver_debate_scheduled_email_job.rb
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 2.0 Flay: found 1 code duplications |
lib/package_builder.rb : PackageBuilder#common_functions_script
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/jobs/archived/deliver_debate_outcome_email_job.rb
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 2.0 Flay: found 1 code duplications |
app/jobs/application_job.rb : ApplicationJob#reload_site
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/jobs/archived/deliver_threshold_response_email_job.rb
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 2.0 Flay: found 1 code duplications |
app/jobs/concerns/email_delivery.rb : EmailDelivery#set_appsignal_namespace
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/models/archived/signature.rb:190-194
«
annotate
»
Flog: complexity is 2.9 |
app/jobs/concerns/email_all_petition_signatories.rb : EmailAllPetitionSignatories#set_appsignal_namespace
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/models/signature.rb:397-401
«
annotate
»
Flog: complexity is 2.9 |
app/models/archived/petition.rb : Petition#constituencies
«
annotate
»
Reek: found 1 code smells Flog: complexity is 2.4 |
|
app/models/site.rb:449-452
«
annotate
»
Flog: complexity is 2.9 |
app/models/archived/petition.rb : Petition#locations
«
annotate
»
Reek: found 1 code smells Flog: complexity is 2.4 |
|
app/models/feedback_signature.rb:20-22
«
annotate
»
Flog: complexity is 2.9 |
app/jobs/notify_creators_that_parliament_is_dissolving_job.rb : NotifyCreatorsThatParliamentIsDissolvingJob#petitions
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/models/concerns/geoip_lookup.rb:5-9
«
annotate
»
Flog: complexity is 2.8 |
lib/package_builder.rb : PackageBuilder#deployment_group_name
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/controllers/local_petitions_controller.rb
«
annotate
»
Reek: found 7 code smells Saikuro: average complexity is 2.0 |
app/controllers/admin/invalidations_controller.rb:131-132 : InvalidationsController#redirect_to_index_url
«
annotate
»
Flog: complexity is 2.4 |
|
lib/package_builder.rb
«
annotate
»
Reek: found 48 code smells Saikuro: average complexity is 1.4 Roodi: found 1 design problems |
app/controllers/admin/invalidations_controller.rb:115-116 : InvalidationsController#build_invalidation
«
annotate
»
Flog: complexity is 2.4 |
|
app/controllers/admin/sites_controller.rb
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 2.0 Flay: found 1 code duplications |
app/controllers/admin/invalidations_controller.rb:123-124 : InvalidationsController#find_invalidations
«
annotate
»
Flog: complexity is 2.4 |
|
app/controllers/admin/moderation_delays_controller.rb
«
annotate
»
Reek: found 6 code smells Saikuro: average complexity is 2.0 |
app/controllers/admin/domains_controller.rb:63-64 : DomainsController#build_domain
«
annotate
»
Flog: complexity is 2.4 |
|
lib/arel_extensions.rb
«
annotate
»
Reek: found 12 code smells Saikuro: average complexity is 1.0 Roodi: found 3 design problems |
app/controllers/admin/archived/petition_emails_controller.rb:67-68 : PetitionEmailsController#build_email
«
annotate
»
Flog: average complexity is 2.4 |
|
app/helpers/form_helper.rb
«
annotate
»
Reek: found 5 code smells Saikuro: average complexity is 2.0 Roodi: found 1 design problems |
app/controllers/admin/tags_controller.rb:52-53 : TagsController#find_tags
«
annotate
»
Flog: complexity is 2.4 |
|
app/controllers/signatures_controller.rb
«
annotate
»
Reek: found 7 code smells Saikuro: average complexity is 1.6 Flay: found 1 code duplications |
app/controllers/admin/moderation_delays_controller.rb:31-32 : ModerationDelaysController#build_moderation_delay
«
annotate
»
Flog: complexity is 2.4 |
|
app/controllers/admin/petition_emails_controller.rb
«
annotate
»
Reek: found 5 code smells Saikuro: average complexity is 1.5 Flay: found 1 code duplications |
app/controllers/admin/tags_controller.rb:60-61 : TagsController#build_tag
«
annotate
»
Flog: complexity is 2.4 |
|
app/controllers/admin/archived/petition_emails_controller.rb
«
annotate
»
Reek: found 5 code smells Saikuro: average complexity is 1.5 Flay: found 1 code duplications |
app/controllers/admin/tags_controller.rb:80-81 : TagsController#redirect_to_index_url
«
annotate
»
Flog: complexity is 2.4 |
|
app/controllers/admin/searches_controller.rb
«
annotate
»
Reek: found 1 code smells Saikuro: average complexity is 2.5 |
app/helpers/archived_petition_helper.rb:18-20 : ArchivedPetitionHelper#archived_parliaments
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.4 |
|
app/models/domain.rb
«
annotate
»
Reek: found 9 code smells Saikuro: average complexity is 1.9 |
app/helpers/admin_hub_helper.rb:61-63 : ActionCountsDecorator#counts
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.4 |
|
app/models/signature.rb:702-703
«
annotate
»
Flog: complexity is 2.7 |
app/helpers/home_helper.rb:54-56 : HomeHelper#actioned_petitions_decorator
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.4 |
|
app/models/task.rb:11-16
«
annotate
»
Flog: complexity is 2.7 |
app/helpers/home_helper.rb:27-29 : ActionedPetitionsDecorator#actioned
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.4 |
|
app/models/constituency_petition_journal.rb:12-17
«
annotate
»
Flog: complexity is 2.7 |
app/jobs/archived/email_petitioners_job.rb : EmailPetitionersJob#perform
«
annotate
»
Saikuro: average complexity is 1.0 Flog: average complexity is 1.4 |
|
app/models/domain.rb:68-73
«
annotate
»
Flog: complexity is 2.7 |
app/jobs/trending_ips_by_petition_job.rb:54-56 : TrendingIpsByPetitionJob#ends_at
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.4 |
|
app/models/country_petition_journal.rb:12-17
«
annotate
»
Flog: complexity is 2.7 |
app/jobs/trending_ips_by_petition_job.rb:34-36 : TrendingIpsByPetitionJob#rate_limit
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.4 |
|
app/helpers/home_helper.rb
«
annotate
»
Reek: found 4 code smells Saikuro: average complexity is 2.0 |
app/jobs/concerns/rate_limiting.rb:30-32 : RateLimiting#rate_limit
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.4 |
|
app/jobs/concerns/email_delivery.rb
«
annotate
»
Reek: found 3 code smells Saikuro: average complexity is 1.5 Flay: found 1 code duplications |
app/jobs/concerns/email_all_petition_signatories.rb:28-30 : ClassMethods#requested_at
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.4 |
|
app/lib/audit_logger.rb
«
annotate
»
Reek: found 4 code smells Saikuro: average complexity is 2.0 |
app/jobs/email_duplicate_signatures_email_job.rb:16-18 : EmailDuplicateSignaturesEmailJob#rate_limit
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.4 |
|
app/helpers/cache_helper.rb:175-177
«
annotate
»
Flog: complexity is 2.6 |
app/jobs/archived/deliver_petition_email_job.rb:7-10 : DeliverPetitionEmailJob#perform
«
annotate
»
Saikuro: average complexity is 1.0 Flog: average complexity is 1.4 |
|
app/helpers/cache_helper.rb:183-185
«
annotate
»
Flog: complexity is 2.6 |
app/jobs/trending_domains_by_petition_job.rb:53-55 : TrendingDomainsByPetitionJob#ends_at
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.4 |
|
app/models/archived/petition.rb:256-258
«
annotate
»
Flog: complexity is 2.6 |
app/jobs/trending_domains_by_petition_job.rb:33-35 : TrendingDomainsByPetitionJob#rate_limit
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.4 |
|
app/models/petition.rb:826-828
«
annotate
»
Flog: complexity is 2.6 |
app/lib/job_logger.rb:33-35 : JobLogger#logger
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.4 |
|
app/models/petition.rb:868-870
«
annotate
»
Flog: complexity is 2.6 |
app/models/concerns/browseable.rb:184-186 : Search#results
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.4 |
|
app/models/petition.rb:740-742
«
annotate
»
Flog: complexity is 2.6 |
app/models/concerns/browseable.rb:210-211 : ClassMethods#facet
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.4 |
|
app/models/petition.rb:784-786
«
annotate
»
Flog: complexity is 2.6 |
lib/tasks/deploy.rake:10-11 : namespace(deploy)#task#dev
«
annotate
»
Flog: complexity is 2.4 |
|
app/models/petition.rb:780-782
«
annotate
»
Flog: complexity is 2.6 |
lib/tasks/deploy.rake:25-26 : namespace(deploy)#task#production
«
annotate
»
Flog: complexity is 2.4 |
|
app/models/petition.rb:539-541
«
annotate
»
Flog: complexity is 2.6 |
lib/tasks/deploy.rake:20-21 : namespace(deploy)#task#preview
«
annotate
»
Flog: complexity is 2.4 |
|
app/helpers/application_helper.rb:42-44
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.6 |
lib/tasks/deploy.rake:5-6 : namespace(deploy)#task#build
«
annotate
»
Flog: complexity is 2.4 |
|
app/controllers/admin/archived/debate_outcomes_controller.rb:34-36
«
annotate
»
Flog: complexity is 2.6 |
lib/tasks/deploy.rake:15-16 : namespace(deploy)#task#staging
«
annotate
»
Flog: complexity is 2.4 |
|
app/controllers/admin/archived/notes_controller.rb:23-25
«
annotate
»
Flog: complexity is 2.6 |
lib/tasks/epets.rake:26-31 : namespace(epets)#namespace(whenever)#task#update_crontab_primary
«
annotate
»
Flog: complexity is 2.4 |
|
app/controllers/admin/archived/government_response_controller.rb:34-36
«
annotate
»
Flog: complexity is 2.6 |
lib/tasks/epets.rake:35-41 : namespace(epets)#namespace(whenever)#task#update_crontab_all
«
annotate
»
Flog: complexity is 2.4 |
|
app/controllers/admin/debate_outcomes_controller.rb:34-36
«
annotate
»
Flog: complexity is 2.6 |
lib/tasks/epets.rake:47-48 : namespace(epets)#namespace(jobs)#task#unlock_all
«
annotate
»
Flog: complexity is 2.4 |
|
app/controllers/admin/government_response_controller.rb:34-36
«
annotate
»
Flog: complexity is 2.6 |
app/helpers/cache_helper.rb:187-188 : CacheKey#fragment_keys
«
annotate
»
Flog: complexity is 2.4 |
|
app/controllers/admin/notes_controller.rb:23-25
«
annotate
»
Flog: complexity is 2.6 |
app/helpers/cache_helper.rb:191-192 : CacheKey#fragments
«
annotate
»
Flog: complexity is 2.4 |
|
app/lib/quiet_logger.rb
«
annotate
»
Reek: found 3 code smells Saikuro: average complexity is 2.0 |
app/controllers/admin/statistics_controller.rb:28-29 : StatisticsController#period
«
annotate
»
Flog: complexity is 2.4 |
|
app/helpers/date_time_helper.rb:29-31
«
annotate
»
Flog: complexity is 2.6 |
app/models/petition.rb:700-701 : Petition#closed?
«
annotate
»
Flog: average complexity is 2.4 |
|
app/helpers/date_time_helper.rb:33-35
«
annotate
»
Flog: complexity is 2.6 |
app/models/petition.rb:683-684 : Petition#moderated?
«
annotate
»
Flog: average complexity is 2.4 |
|
lib/health_check.rb:52-57
«
annotate
»
Flog: complexity is 2.6 |
app/models/petition.rb:772-773 : Petition#can_have_debate_added?
«
annotate
»
Flog: average complexity is 2.4 |
|
app/models/domain.rb:77-79
«
annotate
»
Flog: complexity is 2.6 |
app/models/petition.rb:720-721 : Petition#published?
«
annotate
»
Flog: average complexity is 2.4 |
|
app/models/feedback_signature.rb:6-7
«
annotate
»
Flog: complexity is 2.6 |
app/models/petition.rb:704-705 : Petition#stopped?
«
annotate
»
Flog: average complexity is 2.4 |
|
app/controllers/petitions_controller.rb
«
annotate
»
Reek: found 7 code smells Saikuro: average complexity is 1.7 Roodi: found 1 design problems |
app/models/petition.rb:692-693 : Petition#rejected?
«
annotate
»
Flog: average complexity is 2.4 |
|
app/controllers/local_petitions_controller.rb:46-47
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.6 |
app/models/petition.rb:696-697 : Petition#hidden?
«
annotate
»
Flog: average complexity is 2.4 |
|
app/jobs/notify_trending_ip_job.rb:27-29
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.6 |
app/models/petition.rb:844-845 : Petition#awaiting_debate?
«
annotate
»
Flog: complexity is 2.4 |
|
app/jobs/refresh_constituency_party_job.rb:29-31
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.6 |
app/models/petition.rb:848-849 : Petition#debated?
«
annotate
»
Flog: complexity is 2.4 |
|
app/jobs/notify_trending_domain_job.rb:27-29
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.6 |
app/models/petition.rb:852-853 : Petition#not_debated?
«
annotate
»
Flog: complexity is 2.4 |
|
app/models/signature_logs.rb:92-94
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.6 |
app/models/petition.rb:776-777 : Petition#in_todo_list?
«
annotate
»
Flog: complexity is 2.4 |
|
app/models/signature_logs.rb:82-83
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.6 |
app/models/petition.rb:708-709 : Petition#flagged?
«
annotate
»
Flog: complexity is 2.4 |
|
app/models/rate_limit.rb:144-146
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.6 |
app/models/petition.rb:712-713 : Petition#pending?
«
annotate
»
Flog: complexity is 2.4 |
|
app/models/rate_limit.rb:135-137
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.6 |
app/models/petition.rb:724-725 : Petition#visible?
«
annotate
»
Flog: complexity is 2.4 |
|
app/models/rate_limit.rb:148-150
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.6 |
app/models/petition.rb:716-717 : Petition#validated?
«
annotate
»
Flog: complexity is 2.4 |
|
app/models/rate_limit.rb:162-164
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.6 |
app/models/petition.rb:535-536 : Petition#valid_signature_count?
«
annotate
»
Flog: complexity is 2.4 |
|
app/models/rate_limit.rb:126-128
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.6 |
app/models/petition.rb:587-588 : Petition#approve?
«
annotate
»
Flog: complexity is 2.4 |
|
app/models/rate_limit.rb:117-119
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.6 |
app/models/petition.rb:591-592 : Petition#reject?
«
annotate
»
Flog: complexity is 2.4 |
|
app/controllers/admin/rate_limits_controller.rb
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.8 Flay: found 1 code duplications |
app/models/petition.rb:595-596 : Petition#flag?
«
annotate
»
Flog: complexity is 2.4 |
|
app/helpers/debate_outcome_helper.rb:11-12
«
annotate
»
Flog: complexity is 2.5 |
app/models/petition.rb:671-672 : Petition#collecting_sponsors?
«
annotate
»
Flog: complexity is 2.4 |
|
app/controllers/admin/statistics_controller.rb:6-8
«
annotate
»
Flog: complexity is 2.5 |
app/models/petition.rb:675-676 : Petition#awaiting_moderation?
«
annotate
»
Flog: complexity is 2.4 |
|
app/controllers/admin/government_response_controller.rb
«
annotate
»
Reek: found 3 code smells Saikuro: average complexity is 1.3 Flay: found 1 code duplications |
app/models/petition.rb:679-680 : Petition#in_moderation?
«
annotate
»
Flog: complexity is 2.4 |
|
app/controllers/admin/holidays_controller.rb
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.8 Flay: found 1 code duplications |
app/models/petition.rb:687-688 : Petition#open?
«
annotate
»
Flog: complexity is 2.4 |
|
app/models/archived/government_response.rb
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 2.0 |
app/models/signature.rb:745-746 : Signature#generate_uuid
«
annotate
»
Flog: complexity is 2.4 |
|
app/controllers/admin/archived/government_response_controller.rb
«
annotate
»
Reek: found 3 code smells Saikuro: average complexity is 1.3 Flay: found 1 code duplications |
app/models/signature.rb:690-691 : Signature#update_uuid
«
annotate
»
Flog: complexity is 2.4 |
|
app/models/government_response.rb:13-15
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.5 |
app/controllers/application_controller.rb : ApplicationController#parliament_dissolved?
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/mailers/petition_mailer.rb:152-154
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.5 |
app/controllers/application_controller.rb : ApplicationController#public_petition_facets
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/jobs/deliver_debate_scheduled_email_job.rb
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 2.0 |
app/controllers/application_controller.rb : ApplicationController#reload_parliament
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/controllers/admin/archived/debate_outcomes_controller.rb
«
annotate
»
Reek: found 3 code smells Saikuro: average complexity is 1.3 Flay: found 1 code duplications |
app/controllers/application_controller.rb : ApplicationController#reload_site
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/models/archived/petition.rb:328-329
«
annotate
»
Flog: complexity is 2.5 |
app/controllers/application_controller.rb : ApplicationController#site_enabled?
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/models/petition.rb:760-761
«
annotate
»
Flog: complexity is 2.5 |
lib/package_builder.rb : PackageBuilder#deregister_from_elb_script
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/models/petition.rb:622-623
«
annotate
»
Flog: complexity is 2.5 |
app/controllers/admin/signatures_controller.rb : Admin#search_params
«
annotate
»
Saikuro: average complexity is 2.3 |
|
app/jobs/deliver_threshold_response_email_job.rb
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 2.0 |
lib/package_builder.rb : PackageBuilder#description
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
lib/health_check.rb
«
annotate
»
Reek: found 9 code smells Saikuro: average complexity is 1.6 |
app/controllers/admin/signatures_controller.rb:10-12 : SignaturesController#index
«
annotate
»
Flog: average complexity is 2.3 |
|
app/jobs/deliver_debate_outcome_email_job.rb
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 2.0 |
app/controllers/admin/invalidations_controller.rb:7-9 : InvalidationsController#index
«
annotate
»
Flog: complexity is 2.3 |
|
app/controllers/admin/debate_outcomes_controller.rb
«
annotate
»
Reek: found 3 code smells Saikuro: average complexity is 1.3 Flay: found 1 code duplications |
app/controllers/admin/sites_controller.rb:5-7 : SitesController#edit
«
annotate
»
Flog: complexity is 2.3 |
|
app/controllers/admin/invalidations_controller.rb:131-132
«
annotate
»
Flog: complexity is 2.4 |
app/controllers/admin/rate_limits_controller.rb:5-7 : RateLimitsController#edit
«
annotate
»
Flog: complexity is 2.3 |
|
app/controllers/admin/invalidations_controller.rb:123-124
«
annotate
»
Flog: complexity is 2.4 |
app/controllers/admin/take_down_controller.rb:27-29 : TakeDownController#send_notifications
«
annotate
»
Flog: complexity is 2.3 |
|
app/controllers/admin/petition_emails_controller.rb:67-68
«
annotate
»
Flog: complexity is 2.4 |
app/controllers/admin/domains_controller.rb:29-31 : DomainsController#edit
«
annotate
»
Flog: complexity is 2.3 |
|
app/controllers/admin/archived/petition_emails_controller.rb:67-68
«
annotate
»
Flog: complexity is 2.4 |
app/controllers/admin/domains_controller.rb:13-15 : DomainsController#new
«
annotate
»
Flog: complexity is 2.3 |
|
app/controllers/admin/invalidations_controller.rb:115-116
«
annotate
»
Flog: complexity is 2.4 |
app/controllers/admin/domains_controller.rb:7-9 : DomainsController#index
«
annotate
»
Flog: complexity is 2.3 |
|
app/controllers/admin/domains_controller.rb:63-64
«
annotate
»
Flog: complexity is 2.4 |
app/controllers/admin/holidays_controller.rb:5-7 : HolidaysController#edit
«
annotate
»
Flog: complexity is 2.3 |
|
app/controllers/admin/moderation_delays_controller.rb:31-32
«
annotate
»
Flog: complexity is 2.4 |
app/controllers/admin/trending_domains_controller.rb:5-7 : TrendingDomainsController#index
«
annotate
»
Flog: complexity is 2.3 |
|
app/controllers/admin/tags_controller.rb:60-61
«
annotate
»
Flog: complexity is 2.4 |
app/controllers/admin/invalidations_controller.rb:13-15 : InvalidationsController#new
«
annotate
»
Flog: complexity is 2.3 |
|
app/controllers/admin/tags_controller.rb:52-53
«
annotate
»
Flog: complexity is 2.4 |
app/controllers/admin/tags_controller.rb:8-10 : TagsController#index
«
annotate
»
Flog: complexity is 2.3 |
|
app/controllers/admin/tags_controller.rb:80-81
«
annotate
»
Flog: complexity is 2.4 |
app/controllers/admin/tags_controller.rb:30-32 : TagsController#edit
«
annotate
»
Flog: complexity is 2.3 |
|
app/helpers/archived_petition_helper.rb:18-20
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.4 |
app/controllers/admin/tags_controller.rb:14-16 : TagsController#new
«
annotate
»
Flog: complexity is 2.3 |
|
app/helpers/home_helper.rb:27-29
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.4 |
app/controllers/admin/moderation_delays_controller.rb:4-6 : ModerationDelaysController#new
«
annotate
»
Flog: complexity is 2.3 |
|
app/helpers/admin_hub_helper.rb:61-63
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.4 |
app/controllers/admin/moderation_controller.rb:23-25 : ModerationController#send_notifications
«
annotate
»
Flog: complexity is 2.3 |
|
app/helpers/home_helper.rb:54-56
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.4 |
app/controllers/admin/trending_ips_controller.rb:5-7 : TrendingIpsController#index
«
annotate
»
Flog: complexity is 2.3 |
|
app/jobs/trending_ips_by_petition_job.rb:34-36
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.4 |
lib/package_builder.rb : PackageBuilder#info
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/jobs/email_petitioners_job.rb:14-17
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.4 |
lib/package_builder.rb : PackageBuilder#profile
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/jobs/concerns/email_all_petition_signatories.rb:28-30
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.4 |
lib/tasks/errors.rake:1-37 : namespace#errors
«
annotate
»
Flog: complexity is 2.3 |
|
app/jobs/trending_ips_by_petition_job.rb:54-56
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.4 |
lib/tasks/epets.rake:99-102 : namespace(epets)#namespace#cache
«
annotate
»
Flog: complexity is 2.3 |
|
app/jobs/concerns/rate_limiting.rb:30-32
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.4 |
lib/tasks/epets.rake:45-48 : namespace(epets)#namespace#jobs
«
annotate
»
Flog: complexity is 2.3 |
|
app/jobs/archived/deliver_petition_email_job.rb:7-10
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.4 |
app/models/rate_limit.rb : RateLimit#strip_comments
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/jobs/email_duplicate_signatures_email_job.rb:16-18
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.4 |
app/models/petition_creator.rb : PetitionCreator#send_email_to_gather_sponsors
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/jobs/trending_domains_by_petition_job.rb:53-55
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.4 |
app/models/constituency/api_client.rb : ApiClient#sanitize
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/jobs/trending_domains_by_petition_job.rb:33-35
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.4 |
app/models/petition_creator.rb : PetitionCreator#postcode_validator
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/lib/job_logger.rb:33-35
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.4 |
app/controllers/concerns/form_tracking.rb : FormTracking#generate_form_token
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/models/concerns/browseable.rb:210-211
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.4 |
app/helpers/form_helper.rb : FormHelper#countries_for_select
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/models/concerns/browseable.rb:184-186
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.4 |
app/models/site.rb:110-111 : Site#reload
«
annotate
»
Flog: complexity is 2.3 |
|
lib/tasks/deploy.rake:5-6
«
annotate
»
Flog: complexity is 2.4 |
app/models/parliament.rb:11-12 : Parliament#before_remove_const
«
annotate
»
Flog: complexity is 2.3 |
|
lib/tasks/deploy.rake:15-16
«
annotate
»
Flog: complexity is 2.4 |
app/models/parliament.rb:83-84 : Parliament#reload
«
annotate
»
Flog: complexity is 2.3 |
|
lib/tasks/deploy.rake:10-11
«
annotate
»
Flog: complexity is 2.4 |
app/models/site.rb:26-27 : Site#before_remove_const
«
annotate
»
Flog: complexity is 2.3 |
|
lib/tasks/deploy.rake:20-21
«
annotate
»
Flog: complexity is 2.4 |
app/controllers/admin/moderation_delays_controller.rb:43-44 : ModerationDelaysController#save_attributes_to_session
«
annotate
»
Flog: complexity is 2.2 |
|
lib/tasks/deploy.rake:25-26
«
annotate
»
Flog: complexity is 2.4 |
: NotifyCreatorOfSponsoredPetitionBeingStoppedJob#none
Flog: complexity is 2.2 |
|
lib/tasks/epets.rake:47-48
«
annotate
»
Flog: complexity is 2.4 |
: NotifyCreatorOfValidatedPetitionBeingStoppedJob#none
Flog: complexity is 2.2 |
|
lib/tasks/epets.rake:35-41
«
annotate
»
Flog: complexity is 2.4 |
: NotifyCreatorThatModerationIsDelayedJob#none
Flog: complexity is 2.2 |
|
lib/tasks/epets.rake:26-31
«
annotate
»
Flog: complexity is 2.4 |
: NotifyCreatorThatParliamentIsDissolvingJob#none
Flog: complexity is 2.2 |
|
app/helpers/cache_helper.rb:187-188
«
annotate
»
Flog: complexity is 2.4 |
app/models/signature_logs.rb : SignatureLogs#log_group_name
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
lib/package_builder.rb:142-143
«
annotate
»
Flog: complexity is 2.4 |
lib/tasks/epets.rake:20-21 : namespace(epets)#task#special_resend_of_signature_email_validation
«
annotate
»
Flog: complexity is 2.2 |
|
lib/package_builder.rb:108-109
«
annotate
»
Flog: complexity is 2.4 |
app/controllers/admin/signatures_controller.rb:112-113 : SignaturesController#petition_scope?
«
annotate
»
Flog: complexity is 2.2 |
|
app/helpers/cache_helper.rb:191-192
«
annotate
»
Flog: complexity is 2.4 |
app/helpers/admin_helper.rb:29-30 : AdminHelper#admin_signature_states_for_select
«
annotate
»
Flog: complexity is 2.2 |
|
lib/package_builder.rb:292-293
«
annotate
»
Flog: complexity is 2.4 |
app/controllers/admin/archived/petitions_controller.rb:39-41 : PetitionsController#redirect_to_admin_hub
«
annotate
»
Flog: complexity is 2.2 |
|
app/controllers/admin/statistics_controller.rb:28-29
«
annotate
»
Flog: complexity is 2.4 |
app/controllers/admin/user_sessions_controller.rb:41-42 : UserSessionsController#last_request_update_allowed?
«
annotate
»
Flog: complexity is 2.2 |
|
app/models/archived/petition.rb:379-380
«
annotate
»
Flog: complexity is 2.4 |
app/controllers/admin/user_sessions_controller.rb:31-32 : UserSessionsController#continue
«
annotate
»
Flog: complexity is 2.2 |
|
app/models/archived/petition.rb:214-215
«
annotate
»
Flog: complexity is 2.4 |
app/helpers/cache_helper.rb:157-158 : CacheKey#build
«
annotate
»
Flog: complexity is 2.2 |
|
app/models/archived/petition.rb:230-231
«
annotate
»
Flog: complexity is 2.4 |
app/controllers/admin/archived/petition_emails_controller.rb:87-88 : PetitionEmailsController#send_preview_email?
«
annotate
»
Flog: average complexity is 2.2 |
|
app/models/archived/signature.rb:245-246
«
annotate
»
Flog: complexity is 2.4 |
app/controllers/admin/archived/petition_emails_controller.rb:83-84 : PetitionEmailsController#send_email_to_petitioners?
«
annotate
»
Flog: average complexity is 2.2 |
|
app/models/archived/signature.rb:249-250
«
annotate
»
Flog: complexity is 2.4 |
app/helpers/admin_helper.rb:49-50 : AdminHelper#admin_parliaments_for_select
«
annotate
»
Flog: complexity is 2.2 |
|
app/models/archived/petition.rb:234-235
«
annotate
»
Flog: complexity is 2.4 |
app/controllers/admin/take_down_controller.rb:33-34 : TakeDownController#send_email_to_creator_and_sponsors?
«
annotate
»
Flog: complexity is 2.2 |
|
app/models/archived/petition.rb:222-223
«
annotate
»
Flog: complexity is 2.4 |
: Dependencies#none
Flog: complexity is 2.2 |
|
app/models/archived/petition.rb:238-239
«
annotate
»
Flog: complexity is 2.4 |
app/controllers/admin/archived/schedule_debate_controller.rb:33-34 : ScheduleDebateController#send_email_to_petitioners?
«
annotate
»
Flog: average complexity is 2.2 |
|
app/models/archived/signature.rb:229-230
«
annotate
»
Flog: complexity is 2.4 |
app/controllers/admin/signatures_controller.rb:132-133 : SignaturesController#search_params
«
annotate
»
Flog: average complexity is 2.2 |
|
app/models/archived/signature.rb:237-238
«
annotate
»
Flog: complexity is 2.4 |
app/controllers/admin/archived/government_response_controller.rb:42-43 : GovernmentResponseController#send_email_to_petitioners?
«
annotate
»
Flog: average complexity is 2.2 |
|
app/models/archived/petition.rb:226-227
«
annotate
»
Flog: complexity is 2.4 |
app/controllers/admin/archived/debate_outcomes_controller.rb:46-47 : DebateOutcomesController#send_email_to_petitioners?
«
annotate
»
Flog: average complexity is 2.2 |
|
app/models/archived/signature.rb:241-242
«
annotate
»
Flog: complexity is 2.4 |
app/controllers/admin/tasks_controller.rb:17-19 : TasksController#redirect_to_tasks_tab
«
annotate
»
Flog: complexity is 2.2 |
|
app/models/archived/signature.rb:257-258
«
annotate
»
Flog: complexity is 2.4 |
app/controllers/admin/moderation_delays_controller.rb:68-69 : ModerationDelaysController#feedback_signature
«
annotate
»
Flog: complexity is 2.2 |
|
app/models/archived/signature.rb:279-280
«
annotate
»
Flog: complexity is 2.4 |
app/controllers/admin/tasks_controller.rb:21-22 : TasksController#missing_tasks?
«
annotate
»
Flog: complexity is 2.2 |
|
app/models/archived/signature.rb:314-315
«
annotate
»
Flog: complexity is 2.4 |
app/controllers/admin/moderation_delays_controller.rb:47-48 : ModerationDelaysController#send_email_to_creators?
«
annotate
»
Flog: complexity is 2.2 |
|
app/models/archived/petition.rb:218-219
«
annotate
»
Flog: complexity is 2.4 |
: StatisticsController#none
Flog: complexity is 2.2 |
|
app/models/archived/petition.rb:364-365
«
annotate
»
Flog: complexity is 2.4 |
app/controllers/admin/moderation_controller.rb:29-30 : ModerationController#send_email_to_creator_and_sponsors?
«
annotate
»
Flog: complexity is 2.2 |
|
app/models/petition.rb:848-849
«
annotate
»
Flog: complexity is 2.4 |
: ArchivePetitionJob#none
Flog: complexity is 2.2 |
|
app/models/petition.rb:852-853
«
annotate
»
Flog: complexity is 2.4 |
: Log#none
Flog: complexity is 2.2 |
|
app/models/petition.rb:830-831
«
annotate
»
Flog: complexity is 2.4 |
app/models/signature.rb:492-493 : Signature#postcode=
«
annotate
»
Flog: complexity is 2.2 |
|
app/models/petition.rb:844-845
«
annotate
»
Flog: complexity is 2.4 |
app/models/invalidation.rb : Invalidation#table
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/models/petition.rb:692-693
«
annotate
»
Flog: complexity is 2.4 |
lib/package_builder.rb : PackageBuilder#region
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/models/petition.rb:683-684
«
annotate
»
Flog: complexity is 2.4 |
app/models/petition_creator.rb : PetitionCreator#email_validator
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/models/petition.rb:708-709
«
annotate
»
Flog: complexity is 2.4 |
app/models/holiday.rb:3-4 : Holiday#before_remove_const
«
annotate
»
Flog: complexity is 2.1 |
|
app/models/petition.rb:671-672
«
annotate
»
Flog: complexity is 2.4 |
lib/tasks/signatures.rake:2-8 : namespace(epets)#namespace#signatures
«
annotate
»
Flog: complexity is 2.1 |
|
app/models/petition.rb:591-592
«
annotate
»
Flog: complexity is 2.4 |
lib/tasks/countries.rake:2-6 : namespace(epets)#namespace#countries
«
annotate
»
Flog: complexity is 2.1 |
|
app/models/petition.rb:595-596
«
annotate
»
Flog: complexity is 2.4 |
lib/tasks/bundle.rake:1-5 : namespace#bundle
«
annotate
»
Flog: complexity is 2.1 |
|
app/models/petition.rb:772-773
«
annotate
»
Flog: complexity is 2.4 |
lib/tasks/brakeman.rake:1-5 : namespace#brakeman
«
annotate
»
Flog: complexity is 2.1 |
|
app/models/petition.rb:687-688
«
annotate
»
Flog: complexity is 2.4 |
lib/tasks/data-generator.rake:8-103 : namespace#data
«
annotate
»
Flog: complexity is 2.1 |
|
app/models/petition.rb:587-588
«
annotate
»
Flog: complexity is 2.4 |
app/controllers/petitions_controller.rb:164-165 : PetitionsController#stopped?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/models/petition.rb:696-697
«
annotate
»
Flog: complexity is 2.4 |
app/controllers/local_petitions_controller.rb:54-55 : LocalPetitionsController#constituency?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/models/petition.rb:700-701
«
annotate
»
Flog: complexity is 2.4 |
app/controllers/local_petitions_controller.rb:42-43 : LocalPetitionsController#postcode?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/models/petition.rb:776-777
«
annotate
»
Flog: complexity is 2.4 |
lib/package_builder.rb:300-301 : PackageBuilder#release_bucket
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/models/petition.rb:704-705
«
annotate
»
Flog: complexity is 2.4 |
app/controllers/petitions_controller.rb:160-161 : PetitionsController#moderated?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/models/petition.rb:535-536
«
annotate
»
Flog: complexity is 2.4 |
app/controllers/petitions_controller.rb:152-153 : PetitionsController#in_moderation?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/models/petition.rb:716-717
«
annotate
»
Flog: complexity is 2.4 |
app/controllers/petitions_controller.rb:144-145 : PetitionsController#collecting_sponsors?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/models/petition.rb:720-721
«
annotate
»
Flog: complexity is 2.4 |
app/helpers/cache_helper.rb:9-10 : Dependencies#initialize
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/models/petition.rb:724-725
«
annotate
»
Flog: complexity is 2.4 |
app/helpers/cache_helper.rb:39-40 : Keys#initialize
«
annotate
»
Saikuro: average complexity is 1.0 Flog: complexity is 1.1 |
|
app/models/petition.rb:675-676
«
annotate
»
Flog: complexity is 2.4 |
lib/package_builder.rb:304-305 : PackageBuilder#release_key
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/models/petition.rb:712-713
«
annotate
»
Flog: complexity is 2.4 |
app/helpers/cache_helper.rb:43-45 : Keys#archived_petition_page
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/models/petition.rb:679-680
«
annotate
»
Flog: complexity is 2.4 |
lib/health_check_middleware.rb:4-5 : HealthCheckMiddleware#initialize
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/models/signature_logs.rb:15-16
«
annotate
»
Flog: complexity is 2.4 |
app/helpers/cache_helper.rb:71-73 : Keys#petition_page
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/models/signature.rb:763-764
«
annotate
»
Flog: complexity is 2.4 |
app/helpers/cache_helper.rb:59-61 : Keys#home_page
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/models/signature.rb:520-521
«
annotate
»
Flog: complexity is 2.4 |
app/helpers/cache_helper.rb:55-57 : Keys#open_petition_page
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/models/signature.rb:745-746
«
annotate
»
Flog: complexity is 2.4 |
app/helpers/cache_helper.rb:51-53 : Keys#create_petition_page
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/models/signature.rb:741-742
«
annotate
»
Flog: complexity is 2.4 |
lib/package_builder.rb:332-333 : PackageBuilder#commit_url
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/models/signature.rb:500-501
«
annotate
»
Flog: complexity is 2.4 |
app/lib/active_support/cache/atomic_dalli_store.rb:51-52 : AtomicDalliStore#ttl_key
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/models/signature.rb:690-691
«
annotate
»
Flog: complexity is 2.4 |
app/presenters/petition_csv_presenter.rb:11-12 : PetitionCSVPresenter#initialize
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/models/signature.rb:508-509
«
annotate
»
Flog: complexity is 2.4 |
: Note#none
Flog: average complexity is 2.1 |
|
app/models/signature.rb:706-707
«
annotate
»
Flog: complexity is 2.4 |
app/models/invalidation.rb:108-110 : Invalidation#cancelled?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/models/signature.rb:512-513
«
annotate
»
Flog: complexity is 2.4 |
app/models/site.rb:375-376 : Site#password_digest
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/models/signature.rb:504-505
«
annotate
»
Flog: complexity is 2.4 |
app/models/invalidation.rb:112-114 : Invalidation#completed?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/models/signature.rb:665-666
«
annotate
»
Flog: complexity is 2.4 |
app/models/invalidation.rb:129-131 : Invalidation#started?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/models/constituency/api_client.rb
«
annotate
»
Reek: found 5 code smells Saikuro: average complexity is 1.7 |
app/models/invalidation.rb:133-135 : Invalidation#enqueued?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/helpers/cache_helper.rb
«
annotate
»
Reek: found 15 code smells Saikuro: average complexity is 1.4 |
app/models/petition_creator.rb:22-23 : PetitionCreator#read_attribute_for_validation
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/controllers/admin/archived/schedule_debate_controller.rb
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.4 Flay: found 1 code duplications |
app/models/petition_creator.rb:26-27 : PetitionCreator#to_partial_path
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
|
app/controllers/admin/archived/petitions_controller.rb:19-21
«
annotate
»
Flog: complexity is 2.3 |
app/models/site.rb:138-139 : Site#moderation_overdue_in_days
«
annotate
»
Flog: complexity is 2.1 |
|
app/controllers/admin/holidays_controller.rb:5-7
«
annotate
»
Flog: complexity is 2.3 |
app/models/site.rb:142-143 : Site#moderation_near_overdue_in_days
«
annotate
»
Flog: complexity is 2.1 |
|
app/controllers/admin/archived/signatures_controller.rb:9-11
«
annotate
»
Flog: complexity is 2.3 |
app/models/debate_outcome.rb : DebateOutcome#date
«
annotate
»
Saikuro: average complexity is 1.0 Flog: average complexity is 1.1 |
|
app/controllers/admin/rate_limits_controller.rb:5-7
«
annotate
»
Flog: complexity is 2.3 |
: PingController#none
Flog: complexity is 2.0 |
|
app/controllers/admin/take_down_controller.rb:27-29
«
annotate
»
Flog: complexity is 2.3 |
: LocksController#none
Flog: average complexity is 2.0 |
|
app/controllers/admin/signatures_controller.rb:10-12
«
annotate
»
Flog: complexity is 2.3 |
: ScheduleDebateController#none
Flog: average complexity is 2.0 |
|
app/controllers/admin/trending_domains_controller.rb:5-7
«
annotate
»
Flog: complexity is 2.3 |
: TakeDownController#none
Flog: complexity is 2.0 |
|
app/controllers/admin/invalidations_controller.rb:7-9
«
annotate
»
Flog: complexity is 2.3 |
: HomeHelper#none
Flog: complexity is 2.0 |
|
app/controllers/admin/invalidations_controller.rb:13-15
«
annotate
»
Flog: complexity is 2.3 |
: ActionedPetitionsDecorator#none
Flog: complexity is 2.0 |
|
app/controllers/admin/domains_controller.rb:29-31
«
annotate
»
Flog: complexity is 2.3 |
: FeedbackController#none
Flog: complexity is 2.0 |
|
app/controllers/admin/sites_controller.rb:5-7
«
annotate
»
Flog: complexity is 2.3 |
: ActionCountsDecorator#none
Flog: complexity is 2.0 |
|
app/controllers/admin/domains_controller.rb:13-15
«
annotate
»
Flog: complexity is 2.3 |
: PetitionDetailsController#none
Flog: average complexity is 2.0 |
|
app/controllers/admin/domains_controller.rb:7-9
«
annotate
»
Flog: complexity is 2.3 |
: PetitionTagsController#none
Flog: average complexity is 2.0 |
|
app/controllers/admin/tags_controller.rb:8-10
«
annotate
»
Flog: complexity is 2.3 |
: ModerationDelaysController#none
Flog: complexity is 2.0 |
|
app/controllers/admin/tags_controller.rb:14-16
«
annotate
»
Flog: complexity is 2.3 |
: ModerationController#none
Flog: complexity is 2.0 |
|
app/controllers/admin/tags_controller.rb:30-32
«
annotate
»
Flog: complexity is 2.3 |
: GatherSponsorsForPetitionEmailJob#none
Flog: complexity is 2.0 |
|
app/controllers/admin/petitions_controller.rb:17-19
«
annotate
»
Flog: complexity is 2.3 |
: DeliverDebateOutcomeEmailJob#none
Flog: average complexity is 2.0 |
|
app/controllers/admin/moderation_controller.rb:23-25
«
annotate
»
Flog: complexity is 2.3 |
: NotifyCreatorsThatParliamentIsDissolvingJob#none
Flog: complexity is 2.0 |
|
app/controllers/admin/moderation_delays_controller.rb:4-6
«
annotate
»
Flog: complexity is 2.3 |
: NotifyCreatorsThatModerationIsDelayedJob#none
Flog: complexity is 2.0 |
|
app/controllers/admin/trending_ips_controller.rb:5-7
«
annotate
»
Flog: complexity is 2.3 |
: EnqueuePetitionStatisticsUpdatesJob#none
Flog: complexity is 2.0 |
|
app/controllers/admin/schedule_debate_controller.rb
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.4 Flay: found 1 code duplications |
: ArchiveSignaturesJob#none
Flog: complexity is 2.0 |
|
app/jobs/notify_trending_domain_job.rb
«
annotate
»
Reek: found 7 code smells Saikuro: average complexity is 1.0 Flay: found 1 code duplications |
: SponsorSignedEmailOnThresholdEmailJob#none
Flog: complexity is 2.0 |
|
lib/tasks/errors.rake:1-37
«
annotate
»
Flog: complexity is 2.3 |
: SponsorSignedEmailBelowThresholdEmailJob#none
Flog: complexity is 2.0 |
|
lib/tasks/epets.rake:45-48
«
annotate
»
Flog: complexity is 2.3 |
: BackfillConstituenciesJob#none
Flog: complexity is 2.0 |
|
lib/tasks/epets.rake:99-102
«
annotate
»
Flog: complexity is 2.3 |
: DeliverThresholdResponseEmailJob#none
Flog: average complexity is 2.0 |
|
app/jobs/notify_trending_ip_job.rb
«
annotate
»
Reek: found 7 code smells Saikuro: average complexity is 1.0 Flay: found 1 code duplications |
app/jobs/feedback_email_job.rb:11-12 : FeedbackEmailJob#before_perform#if
«
annotate
»
Flog: complexity is 2.0 |
|
app/helpers/petition_helper.rb
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 2.0 |
: DeliverDebateScheduledEmailJob#none
Flog: average complexity is 2.0 |
|
app/controllers/admin/archived/petitions_controller.rb
«
annotate
»
Reek: found 7 code smells Saikuro: average complexity is 1.5 |
: ResetPetitionSignatureCountJob#none
Flog: complexity is 2.0 |
|
app/models/rejection.rb
«
annotate
»
Reek: found 1 code smells Saikuro: average complexity is 1.5 Flay: found 1 code duplications |
: QuietLogger#none
Flog: complexity is 2.0 |
|
app/models/site.rb:110-111
«
annotate
»
Flog: complexity is 2.3 |
: NotifyCreatorThatPetitionIsPublishedEmailJob#none
Flog: complexity is 2.0 |
|
app/models/parliament.rb:11-12
«
annotate
»
Flog: complexity is 2.3 |
: NotifySponsorThatPetitionWasRejectedEmailJob#none
Flog: complexity is 2.0 |
|
app/models/parliament.rb:83-84
«
annotate
»
Flog: complexity is 2.3 |
: NotifyCreatorThatPetitionWasRejectedEmailJob#none
Flog: complexity is 2.0 |
|
app/models/site.rb:26-27
«
annotate
»
Flog: complexity is 2.3 |
: NotifySponsorThatPetitionIsPublishedEmailJob#none
Flog: complexity is 2.0 |
|
app/controllers/admin/petitions_controller.rb
«
annotate
»
Reek: found 5 code smells Saikuro: average complexity is 1.5 |
: CloudFrontRemoteIp#none
Flog: complexity is 2.0 |
|
app/helpers/date_time_helper.rb:65-66
«
annotate
»
Flog: complexity is 2.2 |
: JobLogger#none
Flog: complexity is 2.0 |
|
app/helpers/date_time_helper.rb:69-70
«
annotate
»
Flog: complexity is 2.2 |
: Filters#none
Flog: complexity is 2.0 |
|
app/helpers/admin_hub_helper.rb:72-75
«
annotate
»
Flog: complexity is 2.2 |
: GeoipLookup#none
Flog: complexity is 2.0 |
|
app/controllers/admin/moderation_delays_controller.rb:43-44
«
annotate
»
Flog: complexity is 2.2 |
app/helpers/rejection_helper.rb:24-25 : RejectionHelper#rejection_descriptions
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/helpers/date_time_helper.rb
«
annotate
»
Reek: found 14 code smells Saikuro: average complexity is 1.3 |
app/helpers/page_title_helper.rb:16-17 : PageTitleBuilder#initialize
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/controllers/archived/petitions_controller.rb
«
annotate
»
Reek: found 8 code smells Saikuro: average complexity is 1.4 |
app/helpers/page_title_helper.rb:76-77 : PageTitleHelper#page_title
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/controllers/admin/parliaments_controller.rb
«
annotate
»
Reek: found 3 code smells Saikuro: average complexity is 1.6 |
lib/health_check.rb:11-12 : HealthCheck#initialize
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
lib/tasks/epets.rake:20-21
«
annotate
»
Flog: complexity is 2.2 |
lib/health_check.rb:32-33 : HealthCheck#url
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/controllers/admin/petition_emails_controller.rb:83-84
«
annotate
»
Flog: complexity is 2.2 |
app/controllers/concerns/authentication.rb:24-25 : Authentication#logged_in?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/controllers/archived/petitions_controller.rb:60-61
«
annotate
»
Flog: complexity is 2.2 |
app/controllers/concerns/bulk_verification.rb:18-19 : BulkVerification#bulk_request?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/helpers/admin_helper.rb:49-50
«
annotate
»
Flog: complexity is 2.2 |
lib/health_check.rb:36-37 : HealthCheck#client_ip
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/helpers/admin_helper.rb:29-30
«
annotate
»
Flog: complexity is 2.2 |
app/controllers/signatures_controller.rb:193-194 : SignaturesController#thank_you_url
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/helpers/cache_helper.rb:157-158
«
annotate
»
Flog: complexity is 2.2 |
app/helpers/sharing_helper.rb:60-61 : SharingHelper#share_button
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/controllers/admin/user_sessions_controller.rb:41-42
«
annotate
»
Flog: complexity is 2.2 |
app/helpers/sharing_helper.rb:6-7 : SharingHelper#share_via_facebook_url
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/controllers/admin/user_sessions_controller.rb:31-32
«
annotate
»
Flog: complexity is 2.2 |
app/helpers/sharing_helper.rb:14-15 : SharingHelper#share_via_email_url
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
lib/health_check.rb:40-41
«
annotate
»
Flog: complexity is 2.2 |
app/helpers/sharing_helper.rb:22-23 : SharingHelper#share_via_twitter_url
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/controllers/admin/archived/government_response_controller.rb:42-43
«
annotate
»
Flog: complexity is 2.2 |
app/controllers/signatures_controller.rb:197-198 : SignaturesController#signed_token_failure_url
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/controllers/admin/archived/schedule_debate_controller.rb:33-34
«
annotate
»
Flog: complexity is 2.2 |
app/helpers/sharing_helper.rb:30-31 : SharingHelper#share_via_whatsapp_url
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/controllers/admin/archived/signatures_controller.rb:79-80
«
annotate
»
Flog: complexity is 2.2 |
app/controllers/ping_controller.rb:5-7 : PingController#ping
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/controllers/admin/archived/debate_outcomes_controller.rb:46-47
«
annotate
»
Flog: complexity is 2.2 |
app/controllers/sponsors_controller.rb:98-99 : SponsorsController#validate_creator
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/controllers/admin/archived/petitions_controller.rb:39-41
«
annotate
»
Flog: complexity is 2.2 |
app/controllers/sponsors_controller.rb:76-77 : SponsorsController#signed_token_failure_url
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/controllers/admin/schedule_debate_controller.rb:33-34
«
annotate
»
Flog: complexity is 2.2 |
app/controllers/application_controller.rb:59-60 : ApplicationController#service_unavailable
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/controllers/admin/petition_emails_controller.rb:87-88
«
annotate
»
Flog: complexity is 2.2 |
app/lib/admin/task_runner.rb:31-32 : TaskRunner#initialize
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
lib/health_check.rb:7-8
«
annotate
»
Flog: complexity is 2.2 |
app/models/petition/statistics.rb:17-19 : Statistics#refreshed?
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/controllers/admin/take_down_controller.rb:33-34
«
annotate
»
Flog: complexity is 2.2 |
app/models/concerns/browseable.rb:20-21 : Facets#initialize
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/controllers/admin/signatures_controller.rb:112-113
«
annotate
»
Flog: complexity is 2.2 |
app/models/admin_user.rb:46-47 : AdminUser#current_password=
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
|
app/controllers/admin/signatures_controller.rb:132-133
«
annotate
»
Flog: complexity is 2.2 |
app/models/petition.rb : #in_need_of_stopping
«
annotate
»
Saikuro: complexity is 2.0 |
|
app/helpers/sharing_helper.rb:56-57
«
annotate
»
Flog: complexity is 2.2 |
app/models/constituency.rb : #refresh!
«
annotate
»
Saikuro: complexity is 2.0 |
|
app/controllers/admin/archived/petition_emails_controller.rb:83-84
«
annotate
»
Flog: complexity is 2.2 |
app/models/country_petition_journal.rb : CountryPetitionJournal##invalidate_signature_for
«
annotate
»
Saikuro: complexity is 2.0 |
|
app/controllers/admin/archived/petition_emails_controller.rb:87-88
«
annotate
»
Flog: complexity is 2.2 |
app/models/task.rb : Task##task_for
«
annotate
»
Saikuro: complexity is 2.0 |
|
app/controllers/admin/debate_outcomes_controller.rb:46-47
«
annotate
»
Flog: complexity is 2.2 |
app/lib/admin/task_runner.rb : #run
«
annotate
»
Saikuro: complexity is 2.0 |
|
app/controllers/admin/moderation_delays_controller.rb:72-73
«
annotate
»
Flog: complexity is 2.2 |
app/lib/email_reminder.rb : EmailReminder#self.logger
«
annotate
»
Saikuro: complexity is 2.0 |
|
app/controllers/admin/tasks_controller.rb:17-19
«
annotate
»
Flog: complexity is 2.2 |
app/controllers/admin/take_down_controller.rb : Admin#send_notifications
«
annotate
»
Saikuro: average complexity is 2.0 |
|
app/controllers/admin/government_response_controller.rb:42-43
«
annotate
»
Flog: complexity is 2.2 |
app/models/signature.rb : #validated
«
annotate
»
Saikuro: average complexity is 2.0 |
|
app/controllers/admin/tasks_controller.rb:21-22
«
annotate
»
Flog: complexity is 2.2 |
app/models/signature.rb : #column_name_for
«
annotate
»
Saikuro: average complexity is 2.0 |
|
app/controllers/admin/moderation_controller.rb:29-30
«
annotate
»
Flog: complexity is 2.2 |
app/models/signature.rb : #ip_search?
«
annotate
»
Saikuro: average complexity is 2.0 |
|
app/controllers/admin/moderation_delays_controller.rb:68-69
«
annotate
»
Flog: complexity is 2.2 |
app/models/signature.rb : #missing_constituency_id
«
annotate
»
Saikuro: complexity is 2.0 |
|
app/controllers/admin/moderation_delays_controller.rb:47-48
«
annotate
»
Flog: complexity is 2.2 |
app/models/petition.rb : #close_petitions!
«
annotate
»
Saikuro: complexity is 2.0 |
|
app/jobs/close_petitions_job.rb:4-5
«
annotate
»
Flog: complexity is 2.2 |
app/controllers/admin/statistics_controller.rb : Admin#moderation
«
annotate
»
Saikuro: complexity is 2.0 |
|
app/jobs/backfill_constituencies_job.rb:26-27
«
annotate
»
Flog: complexity is 2.2 |
app/controllers/admin/statistics_controller.rb : Admin#parliament
«
annotate
»
Saikuro: complexity is 2.0 |
|
app/jobs/archived/email_petitioners_job.rb:22-23
«
annotate
»
Flog: complexity is 2.2 |
app/controllers/admin/moderation_delays_controller.rb : Admin#enqeue_job
«
annotate
»
Saikuro: complexity is 2.0 |
|
app/jobs/update_petition_statistics_job.rb:4-5
«
annotate
»
Flog: complexity is 2.2 |
app/controllers/admin/moderation_delays_controller.rb : Admin#moderation_delay_params
«
annotate
»
Saikuro: complexity is 2.0 |
|
app/jobs/close_petitions_early_job.rb:10-11
«
annotate
»
Flog: complexity is 2.2 |
app/controllers/admin/tags_controller.rb : Admin#tag_params
«
annotate
»
Saikuro: complexity is 2.0 |
|
app/models/rejection.rb:19-20
«
annotate
»
Flog: complexity is 2.2 |
app/models/site.rb : Site##constraints_for_moderation
«
annotate
»
Saikuro: complexity is 2.0 |
|
app/models/archived/petition.rb:296-297
«
annotate
»
Flog: complexity is 2.2 |
app/models/site.rb : Site##default_moderate_url
«
annotate
»
Saikuro: complexity is 2.0 |
|
app/models/constituency/api_query.rb:37-39
«
annotate
»
Flog: complexity is 2.2 |
app/models/site.rb : Site##default_url
«
annotate
»
Saikuro: complexity is 2.0 |
|
app/models/signature.rb:492-493
«
annotate
»
Flog: complexity is 2.2 |
app/models/site.rb : Site##constraints_for_public
«
annotate
»
Saikuro: complexity is 2.0 |
|
app/mailers/archived/petition_mailer.rb:103-104
«
annotate
»
Flog: complexity is 2.2 |
app/controllers/admin/signatures_controller.rb : Admin#bulk_destroy
«
annotate
»
Saikuro: average complexity is 2.0 |
|
app/controllers/admin/tags_controller.rb
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.8 |
app/controllers/admin/signatures_controller.rb : Admin#bulk_subscribe
«
annotate
»
Saikuro: average complexity is 2.0 |
|
app/models/holiday.rb:3-4
«
annotate
»
Flog: complexity is 2.1 |
app/controllers/admin/signatures_controller.rb : Admin#subscribe
«
annotate
»
Saikuro: average complexity is 2.0 |
|
app/controllers/application_controller.rb
«
annotate
»
Reek: found 11 code smells Saikuro: average complexity is 1.2 |
app/controllers/admin/signatures_controller.rb : Admin#bulk_unsubscribe
«
annotate
»
Saikuro: average complexity is 2.0 |
|
lib/tasks/signatures.rake:2-8
«
annotate
»
Flog: complexity is 2.1 |
app/controllers/admin/signatures_controller.rb : Admin#unsubscribe
«
annotate
»
Saikuro: average complexity is 2.0 |
|
lib/tasks/bundle.rake:1-5
«
annotate
»
Flog: complexity is 2.1 |
app/controllers/admin/signatures_controller.rb : Admin#bulk_validate
«
annotate
»
Saikuro: complexity is 2.0 |
|
lib/tasks/countries.rake:2-6
«
annotate
»
Flog: complexity is 2.1 |
app/controllers/admin/signatures_controller.rb : Admin#validate
«
annotate
»
Saikuro: complexity is 2.0 |
|
lib/tasks/brakeman.rake:1-5
«
annotate
»
Flog: complexity is 2.1 |
app/controllers/admin/signatures_controller.rb : Admin#bulk_invalidate
«
annotate
»
Saikuro: complexity is 2.0 |
|
lib/tasks/data-generator.rake:8-103
«
annotate
»
Flog: complexity is 2.1 |
app/controllers/admin/signatures_controller.rb : Admin#invalidate
«
annotate
»
Saikuro: complexity is 2.0 |
|
app/controllers/petitions_controller.rb:160-161
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
app/models/petition.rb : #close_petitions_early!
«
annotate
»
Saikuro: complexity is 2.0 |
|
app/controllers/petitions_controller.rb:144-145
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
app/controllers/admin/domains_controller.rb : Admin#domain_params
«
annotate
»
Saikuro: complexity is 2.0 |
|
app/helpers/cache_helper.rb:9-10
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
app/models/petition.rb : #stop_petitions_early!
«
annotate
»
Saikuro: complexity is 2.0 |
|
app/helpers/cache_helper.rb:39-40
«
annotate
»
Saikuro: average complexity is 1.0 Flog: complexity is 1.1 |
app/models/constituency_petition_journal.rb : ConstituencyPetitionJournal##invalidate_signature_for
«
annotate
»
Saikuro: complexity is 2.0 |
|
lib/package_builder.rb:300-301
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
app/models/domain.rb : Domain##rules
«
annotate
»
Saikuro: complexity is 2.0 |
|
lib/health_check_middleware.rb:4-5
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
app/models/domain.rb : Domain##rule
«
annotate
»
Saikuro: complexity is 2.0 |
|
app/controllers/petitions_controller.rb:152-153
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
app/models/domain.rb : Domain##default_domain
«
annotate
»
Saikuro: complexity is 2.0 |
|
app/controllers/local_petitions_controller.rb:54-55
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
app/models/petition.rb : #open_at_dissolution
«
annotate
»
Saikuro: complexity is 2.0 |
|
app/helpers/cache_helper.rb:55-57
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
app/helpers/cache_helper.rb : Dependencies#csv_cache
«
annotate
»
Saikuro: complexity is 2.0 |
|
app/helpers/cache_helper.rb:51-53
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
app/controllers/archived/petitions_controller.rb : Archived#redirect_to_valid_state
«
annotate
»
Saikuro: complexity is 2.0 |
|
lib/package_builder.rb:304-305
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
app/controllers/archived/petitions_controller.rb : Archived#fetch_parliament
«
annotate
»
Saikuro: complexity is 2.0 |
|
app/controllers/petitions_controller.rb:164-165
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
app/controllers/archived/petitions_controller.rb : Archived#index
«
annotate
»
Saikuro: complexity is 2.0 |
|
app/helpers/cache_helper.rb:43-45
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
app/helpers/cache_helper.rb : Keys#dependency_keys
«
annotate
»
Saikuro: complexity is 2.0 |
|
lib/package_builder.rb:332-333
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
app/controllers/archived/petitions_controller.rb : Archived#fetch_petition
«
annotate
»
Saikuro: complexity is 2.0 |
|
app/controllers/local_petitions_controller.rb:42-43
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
app/controllers/archived/petitions_controller.rb : Archived#show
«
annotate
»
Saikuro: complexity is 2.0 |
|
app/helpers/cache_helper.rb:71-73
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
app/controllers/admin/invalidations_controller.rb : Admin#index
«
annotate
»
Saikuro: average complexity is 2.0 |
|
app/helpers/cache_helper.rb:59-61
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
app/models/trending_domain.rb : TrendingDomain##search
«
annotate
»
Saikuro: complexity is 2.0 |
|
app/lib/active_support/cache/atomic_dalli_store.rb:51-52
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
app/controllers/admin/invalidations_controller.rb : Admin#invalidation_params
«
annotate
»
Saikuro: complexity is 2.0 |
|
app/presenters/petition_csv_presenter.rb:11-12
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
app/controllers/admin/invalidations_controller.rb : Admin#destroy
«
annotate
»
Saikuro: average complexity is 2.0 |
|
app/models/archived/debate_outcome.rb:35-36
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
app/models/trending_ip.rb : TrendingIp##search
«
annotate
»
Saikuro: complexity is 2.0 |
|
app/models/parliament.rb:127-129
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
app/models/petition.rb:599-600 : Petition#moderation=
«
annotate
»
Flog: complexity is 2.0 |
|
app/models/site.rb:375-376
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
app/models/signature.rb:593-594 : Signature#reload
«
annotate
»
Flog: complexity is 2.0 |
|
app/models/invalidation.rb:133-135
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
app/models/petition.rb:830-831 : Petition#get_email_requested_at_for
«
annotate
»
Flog: average complexity is 1.8 |
|
app/models/invalidation.rb:108-110
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
app/controllers/admin/invalidations_controller.rb : Admin#edit
«
annotate
»
Saikuro: average complexity is 1.7 |
|
app/models/invalidation.rb:112-114
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
app/models/petition.rb:638-640 : Petition#rejection
«
annotate
»
Flog: complexity is 1.6 |
|
app/models/invalidation.rb:129-131
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
app/models/petition.rb:451-453 : Petition#statistics
«
annotate
»
Flog: complexity is 1.6 |
|
app/models/petition_creator.rb:26-27
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
app/models/signature.rb:661-663 : Signature#signed_token
«
annotate
»
Flog: complexity is 1.6 |
|
app/models/petition_creator.rb:22-23
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.1 |
app/models/petition.rb:361-362 : Petition#unarchived
«
annotate
»
Flog: complexity is 1.6 |
|
app/models/site.rb:142-143
«
annotate
»
Flog: complexity is 2.1 |
app/models/petition.rb:349-350 : Petition#sanitized_tag
«
annotate
»
Flog: complexity is 1.6 |
|
app/models/site.rb:138-139
«
annotate
»
Flog: complexity is 2.1 |
app/models/petition.rb:395-396 : Petition#grouping
«
annotate
»
Flog: complexity is 1.6 |
|
app/controllers/admin/locks_controller.rb
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.7 |
app/models/petition.rb:264-265 : Petition#todo_list
«
annotate
»
Flog: complexity is 1.6 |
|
app/jobs/email_job.rb
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 1.0 Flay: found 1 code duplications |
app/models/petition.rb:252-253 : Petition#stoppable
«
annotate
»
Flog: complexity is 1.6 |
|
app/controllers/admin/archived/locks_controller.rb
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.7 |
app/models/petition.rb:248-249 : Petition#selectable
«
annotate
»
Flog: complexity is 1.6 |
|
app/jobs/feedback_email_job.rb:11-12
«
annotate
»
Flog: complexity is 2.0 |
app/models/petition.rb:236-237 : Petition#not_scheduled
«
annotate
»
Flog: complexity is 1.6 |
|
app/helpers/rejection_helper.rb:24-25
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
app/models/petition.rb:240-241 : Petition#respondable
«
annotate
»
Flog: complexity is 1.6 |
|
app/helpers/sharing_helper.rb:6-7
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
app/models/petition.rb:232-233 : Petition#not_responded
«
annotate
»
Flog: complexity is 1.6 |
|
lib/health_check.rb:36-37
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
app/models/petition.rb:268-269 : Petition#visible
«
annotate
»
Flog: complexity is 1.6 |
|
app/helpers/sharing_helper.rb:22-23
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
app/models/petition.rb:256-257 : Petition#show
«
annotate
»
Flog: complexity is 1.6 |
|
lib/health_check.rb:11-12
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
app/models/petition.rb:224-225 : Petition#not_debated
«
annotate
»
Flog: complexity is 1.6 |
|
app/helpers/sharing_helper.rb:14-15
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
app/models/petition.rb:220-221 : Petition#moderated
«
annotate
»
Flog: complexity is 1.6 |
|
app/controllers/concerns/bulk_verification.rb:18-19
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
app/models/petition.rb:116-117 : Petition#by_most_recent_debate_outcome
«
annotate
»
Flog: complexity is 1.6 |
|
app/controllers/signatures_controller.rb:193-194
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
app/models/site.rb:178-179 : Site#default_protocol
«
annotate
»
Flog: complexity is 1.6 |
|
app/controllers/signatures_controller.rb:197-198
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
app/models/petition.rb:164-165 : Petition#sponsored_state
«
annotate
»
Flog: complexity is 1.6 |
|
app/helpers/sharing_helper.rb:30-31
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
app/models/petition.rb:160-161 : Petition#rejected_state
«
annotate
»
Flog: complexity is 1.6 |
|
app/helpers/sharing_helper.rb:60-61
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
app/models/petition.rb:108-109 : Petition#by_most_popular
«
annotate
»
Flog: complexity is 1.6 |
|
app/helpers/page_title_helper.rb:16-17
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
app/models/invalidation.rb:65-66 : Invalidation#by_most_recent
«
annotate
»
Flog: complexity is 1.6 |
|
lib/health_check.rb:32-33
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
app/models/invalidation.rb:69-70 : Invalidation#by_longest_running
«
annotate
»
Flog: complexity is 1.6 |
|
app/helpers/page_title_helper.rb:76-77
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
app/models/petition.rb:140-141 : Petition#by_waiting_for_response_longest
«
annotate
»
Flog: complexity is 1.6 |
|
app/controllers/concerns/authentication.rb:24-25
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
app/models/petition.rb:136-137 : Petition#by_waiting_for_debate_longest
«
annotate
»
Flog: complexity is 1.6 |
|
app/controllers/ping_controller.rb:5-7
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
app/models/petition.rb:132-133 : Petition#by_oldest
«
annotate
»
Flog: complexity is 1.6 |
|
app/controllers/sponsors_controller.rb:98-99
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
app/models/petition.rb:128-129 : Petition#by_most_relevant_debate_date
«
annotate
»
Flog: complexity is 1.6 |
|
app/controllers/application_controller.rb:59-60
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
app/models/petition.rb:124-125 : Petition#by_most_recent_response
«
annotate
»
Flog: complexity is 1.6 |
|
app/controllers/sponsors_controller.rb:76-77
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
app/models/petition.rb:120-121 : Petition#by_most_recent_moderation_threshold_reached
«
annotate
»
Flog: complexity is 1.6 |
|
app/lib/admin/task_runner.rb:31-32
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
app/models/petition.rb:148-149 : Petition#open_state
«
annotate
»
Flog: complexity is 1.6 |
|
app/models/petition/statistics.rb:17-19
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
app/models/petition.rb:152-153 : Petition#closed_state
«
annotate
»
Flog: complexity is 1.6 |
|
app/models/concerns/browseable.rb:20-21
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
app/models/petition.rb:112-113 : Petition#by_most_recent
«
annotate
»
Flog: complexity is 1.6 |
|
app/models/admin_user.rb:46-47
«
annotate
»
Saikuro: complexity is 1.0 Flog: complexity is 1.0 |
app/models/petition.rb:156-157 : Petition#hidden_state
«
annotate
»
Flog: complexity is 1.6 |
|
app/models/petition.rb:599-600
«
annotate
»
Flog: complexity is 2.0 |
app/models/site.rb:194-195 : Site#default_host
«
annotate
»
Flog: complexity is 1.6 |
|
app/models/signature.rb:593-594
«
annotate
»
Flog: complexity is 2.0 |
app/models/site.rb:214-215 : Site#default_moderate_host
«
annotate
»
Flog: complexity is 1.6 |
|
app/controllers/archived/signatures_controller.rb
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.6 |
app/models/invalidation.rb:89-90 : Invalidation#pending
«
annotate
»
Flog: complexity is 1.6 |
|
app/controllers/admin/user_sessions_controller.rb
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.6 |
app/models/signature_logs.rb:77-78 : SignatureLogs#find
«
annotate
»
Flog: complexity is 1.6 |
|
app/models/trending_ip.rb
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.3 |
app/models/site.rb:170-171 : Site#default_title
«
annotate
»
Flog: complexity is 1.6 |
|
app/models/trending_domain.rb
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.3 |
app/models/petition.rb:200-201 : Petition#for_state
«
annotate
»
Flog: complexity is 1.6 |
|
app/helpers/admin_helper.rb
«
annotate
»
Reek: found 19 code smells Flay: found 3 code duplications |
app/models/petition.rb:192-193 : Petition#debateable
«
annotate
»
Flog: complexity is 1.6 |
|
app/controllers/admin/logs_controller.rb
«
annotate
»
Reek: found 4 code smells Saikuro: average complexity is 1.2 |
app/models/petition.rb:184-185 : Petition#collecting_sponsors
«
annotate
»
Flog: complexity is 1.6 |
|
app/models/parliament.rb
«
annotate
»
Reek: found 6 code smells Saikuro: average complexity is 1.0 |
app/models/site.rb:174-175 : Site#default_scheme
«
annotate
»
Flog: complexity is 1.6 |
|
app/controllers/admin/moderation_controller.rb
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.4 |
app/models/petition.rb:172-173 : Petition#awaiting_debate
«
annotate
»
Flog: complexity is 1.6 |
|
app/controllers/admin/notes_controller.rb
«
annotate
»
Reek: found 3 code smells Saikuro: average complexity is 1.2 |
app/models/petition.rb:168-169 : Petition#stopped_state
«
annotate
»
Flog: complexity is 1.6 |
|
app/controllers/admin/archived/notes_controller.rb
«
annotate
»
Reek: found 3 code smells Saikuro: average complexity is 1.2 |
app/models/constituency.rb:61-62 : Constituency#query
«
annotate
»
Flog: complexity is 1.6 |
|
app/controllers/admin/admin_users_controller.rb
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.4 |
app/models/constituency.rb:37-38 : Constituency#by_ons_code
«
annotate
»
Flog: complexity is 1.6 |
|
app/controllers/admin/trending_ips_controller.rb
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.3 |
app/models/signature.rb:419-420 : Signature#sector_search?
«
annotate
»
Flog: complexity is 1.6 |
|
app/controllers/admin/statistics_controller.rb
«
annotate
»
Reek: found 1 code smells Saikuro: average complexity is 1.7 |
app/models/signature.rb:403-404 : Signature#domain_search?
«
annotate
»
Flog: complexity is 1.6 |
|
app/helpers/markdown_helper.rb
«
annotate
»
Reek: found 4 code smells Saikuro: average complexity is 1.0 |
app/models/signature.rb:407-408 : Signature#email_search?
«
annotate
»
Flog: complexity is 1.6 |
|
app/jobs/concerns/email_all_petition_signatories.rb
«
annotate
»
Reek: found 4 code smells Saikuro: average complexity is 1.0 |
app/models/signature.rb:250-251 : Signature#subscribed
«
annotate
»
Flog: complexity is 1.6 |
|
app/controllers/admin/trending_domains_controller.rb
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.3 |
app/models/signature.rb:192-193 : Signature#total
«
annotate
»
Flog: complexity is 1.6 |
|
app/presenters/petition_csv_presenter.rb
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.2 |
app/models/signature.rb:332-333 : Signature#unarchived
«
annotate
»
Flog: complexity is 1.6 |
|
app/controllers/admin/take_down_controller.rb
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.3 |
app/models/signature.rb:188-189 : Signature#pending
«
annotate
»
Flog: complexity is 1.6 |
|
app/jobs/reset_petition_signature_count_job.rb
«
annotate
»
Reek: found 4 code smells Saikuro: average complexity is 1.0 |
app/models/signature.rb:328-329 : Signature#uk
«
annotate
»
Flog: complexity is 1.6 |
|
app/controllers/admin/petition_details_controller.rb
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.2 |
app/models/signature.rb:172-173 : Signature#invalidated
«
annotate
»
Flog: complexity is 1.6 |
|
app/controllers/concerns/form_tracking.rb
«
annotate
»
Reek: found 4 code smells Saikuro: average complexity is 1.0 |
app/models/signature.rb:133-134 : Signature#for_petition
«
annotate
»
Flog: complexity is 1.6 |
|
app/controllers/admin/petition_tags_controller.rb
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.2 |
app/models/signature.rb:121-122 : Signature#for_invalidating
«
annotate
»
Flog: complexity is 1.6 |
|
app/jobs/deliver_petition_email_job.rb
«
annotate
»
Reek: found 1 code smells Saikuro: average complexity is 1.5 |
app/models/signature.rb:125-126 : Signature#for_ip
«
annotate
»
Flog: complexity is 1.6 |
|
app/helpers/admin_hub_helper.rb
«
annotate
»
Reek: found 4 code smells Saikuro: average complexity is 1.0 |
app/models/signature.rb:150-151 : Signature#fraudulent
«
annotate
»
Flog: complexity is 1.6 |
|
app/models/archived/government_response.rb:16-18
«
annotate
»
Flog: complexity is 1.6 |
app/models/signature.rb:77-78 : Signature#by_most_recent
«
annotate
»
Flog: complexity is 1.6 |
|
app/models/petition.rb:638-640
«
annotate
»
Flog: complexity is 1.6 |
app/models/tag.rb:18-19 : Tag#by_name
«
annotate
»
Flog: complexity is 1.6 |
|
app/models/petition.rb:451-453
«
annotate
»
Flog: complexity is 1.6 |
app/helpers/cache_helper.rb:212-214 : CacheHelper#last_debate_outcome_updated_at
«
annotate
»
Flog: complexity is 1.6 |
|
app/models/signature.rb:661-663
«
annotate
»
Flog: complexity is 1.6 |
app/helpers/cache_helper.rb:208-210 : CacheHelper#last_government_response_updated_at
«
annotate
»
Flog: complexity is 1.6 |
|
app/jobs/petition_count_job.rb
«
annotate
»
Reek: found 3 code smells Saikuro: average complexity is 1.0 |
app/controllers/admin/logs_controller.rb:23-24 : LogsController#fetch_signature
«
annotate
»
Flog: complexity is 1.6 |
|
app/helpers/cache_helper.rb:141-142
«
annotate
»
Flog: complexity is 1.6 |
app/helpers/cache_helper.rb:204-206 : CacheHelper#last_signature_at
«
annotate
»
Flog: complexity is 1.6 |
|
app/models/archived/signature.rb:110-111
«
annotate
»
Flog: complexity is 1.6 |
app/controllers/admin/logs_controller.rb:27-28 : LogsController#fetch_petition
«
annotate
»
Flog: complexity is 1.6 |
|
app/models/archived/signature.rb:85-86
«
annotate
»
Flog: complexity is 1.6 |
app/models/petition.rb:856-857 : Petition#update_debate_state
«
annotate
»
Flog: average complexity is 1.6 |
|
app/models/archived/signature.rb:77-78
«
annotate
»
Flog: complexity is 1.6 |
app/models/constituency_petition_journal.rb:24-25 : ConstituencyPetitionJournal#ordered
«
annotate
»
Flog: complexity is 1.5 |
|
app/models/archived/signature.rb:106-107
«
annotate
»
Flog: complexity is 1.6 |
app/models/domain.rb:40-41 : Domain#by_name
«
annotate
»
Flog: complexity is 1.5 |
|
app/models/archived/signature.rb:196-197
«
annotate
»
Flog: complexity is 1.6 |
app/models/domain.rb:36-37 : Domain#default_scope
«
annotate
»
Flog: complexity is 1.5 |
|
app/models/archived/signature.rb:200-201
«
annotate
»
Flog: complexity is 1.6 |
app/models/location.rb:6-7 : Location#by_name
«
annotate
»
Flog: complexity is 1.5 |
|
app/models/archived/petition.rb:75-76
«
annotate
»
Flog: complexity is 1.6 |
app/models/trending_domain.rb:15-16 : TrendingDomain#log!
«
annotate
»
Flog: complexity is 1.5 |
|
app/models/archived/petition.rb:79-80
«
annotate
»
Flog: complexity is 1.6 |
app/models/trending_domain.rb:11-12 : TrendingDomain#default_scope
«
annotate
»
Flog: complexity is 1.5 |
|
app/models/archived/petition.rb:83-84
«
annotate
»
Flog: complexity is 1.6 |
app/models/statistics.rb:50-51 : Statistics#connection
«
annotate
»
Flog: complexity is 1.5 |
|
app/models/archived/petition.rb:87-88
«
annotate
»
Flog: complexity is 1.6 |
app/controllers/admin/invalidations_controller.rb : Admin#new
«
annotate
»
Saikuro: average complexity is 1.5 |
|
app/models/archived/petition.rb:91-92
«
annotate
»
Flog: complexity is 1.6 |
app/controllers/admin/archived/petitions_controller.rb : Admin#fetch_parliament
«
annotate
»
Saikuro: average complexity is 1.5 |
|
app/models/archived/petition.rb:95-96
«
annotate
»
Flog: complexity is 1.6 |
app/models/trending_ip.rb:26-27 : TrendingIp#log!
«
annotate
»
Flog: complexity is 1.5 |
|
app/models/archived/petition.rb:99-100
«
annotate
»
Flog: complexity is 1.6 |
app/models/trending_ip.rb:22-23 : TrendingIp#default_scope
«
annotate
»
Flog: complexity is 1.5 |
|
app/models/archived/petition.rb:111-112
«
annotate
»
Flog: complexity is 1.6 |
app/helpers/admin_helper.rb:138-140 : AdminHelper#rate_limit
«
annotate
»
Flog: complexity is 1.4 |
|
app/models/archived/petition.rb:123-124
«
annotate
»
Flog: complexity is 1.6 |
app/controllers/admin/holidays_controller.rb:23-24 : HolidaysController#fetch_holiday
«
annotate
»
Flog: complexity is 1.4 |
|
app/models/archived/petition.rb:127-128
«
annotate
»
Flog: complexity is 1.6 |
app/controllers/admin/sites_controller.rb:23-24 : SitesController#fetch_site
«
annotate
»
Flog: complexity is 1.4 |
|
app/models/archived/petition.rb:131-132
«
annotate
»
Flog: complexity is 1.6 |
app/controllers/admin/user_sessions_controller.rb:5-6 : UserSessionsController#new
«
annotate
»
Flog: complexity is 1.4 |
|
app/models/archived/petition.rb:135-136
«
annotate
»
Flog: complexity is 1.6 |
app/controllers/admin/admin_users_controller.rb:17-18 : AdminUsersController#new
«
annotate
»
Flog: complexity is 1.4 |
|
app/models/archived/petition.rb:139-140
«
annotate
»
Flog: complexity is 1.6 |
app/controllers/admin/rate_limits_controller.rb:38-39 : RateLimitsController#find_rate_limit
«
annotate
»
Flog: complexity is 1.4 |
|
app/models/archived/petition.rb:143-144
«
annotate
»
Flog: complexity is 1.6 |
app/controllers/admin/parliaments_controller.rb:32-33 : ParliamentsController#fetch_parliament
«
annotate
»
Flog: complexity is 1.4 |
|
app/models/archived/petition.rb:147-148
«
annotate
»
Flog: complexity is 1.6 |
app/models/domain.rb:31-32 : Domain#before_validation#unless
«
annotate
»
Flog: complexity is 1.4 |
|
app/models/archived/petition.rb:155-156
«
annotate
»
Flog: complexity is 1.6 |
lib/tasks/errors.rake:7-8 : namespace(errors)#task#url_options
«
annotate
»
Flog: complexity is 1.4 |
|
app/models/archived/petition.rb:167-168
«
annotate
»
Flog: complexity is 1.6 |
app/controllers/archived/petitions_controller.rb : PetitionsController#archived_petition_facets
«
annotate
»
Reek: found 1 code smells Flog: complexity is 1.1 |
|
app/models/archived/petition.rb:179-180
«
annotate
»
Flog: complexity is 1.6 |
: ApiClient#none
Flog: complexity is 1.4 |
|
app/models/archived/signature.rb:212-213
«
annotate
»
Flog: complexity is 1.6 |
app/controllers/admin/invalidations_controller.rb : InvalidationsController#invalidation_attributes
«
annotate
»
Reek: found 1 code smells Flog: complexity is 1.0 |
|
app/models/archived/signature.rb:49-50
«
annotate
»
Flog: complexity is 1.6 |
app/controllers/admin/archived/petitions_controller.rb : Admin#show
«
annotate
»
Saikuro: average complexity is 1.4 |
|
app/models/petition.rb:349-350
«
annotate
»
Flog: complexity is 1.6 |
app/controllers/admin/invalidations_controller.rb : Admin#index_url
«
annotate
»
Saikuro: average complexity is 1.3 |
|
app/models/petition.rb:395-396
«
annotate
»
Flog: complexity is 1.6 |
app/controllers/admin/admin_controller.rb : AdminController#set_appsignal_namespace
«
annotate
»
Reek: found 1 code smells Flog: complexity is 1.0 |
|
app/models/petition.rb:361-362
«
annotate
»
Flog: complexity is 1.6 |
app/controllers/admin/archived/petitions_controller.rb : Admin#csv_filename
«
annotate
»
Saikuro: average complexity is 1.2 |
|
app/models/petition.rb:248-249
«
annotate
»
Flog: complexity is 1.6 |
app/helpers/admin_helper.rb : AdminHelper#admin_archived_petition_facets
«
annotate
»
Reek: found 1 code smells Flog: complexity is 1.0 |
|
app/models/petition.rb:240-241
«
annotate
»
Flog: complexity is 1.6 |
app/models/petition.rb : Petition#update_last_petition_created_at
«
annotate
»
Reek: found 1 code smells Flog: complexity is 1.1 |
|
app/models/petition.rb:252-253
«
annotate
»
Flog: complexity is 1.6 |
app/helpers/admin_helper.rb : AdminHelper#admin_invalidation_facets
«
annotate
»
Reek: found 1 code smells Flog: complexity is 1.0 |
|
app/models/petition.rb:264-265
«
annotate
»
Flog: complexity is 1.6 |
app/helpers/admin_helper.rb : AdminHelper#admin_petition_facets
«
annotate
»
Reek: found 1 code smells Flog: complexity is 1.0 |
|
app/models/petition.rb:256-257
«
annotate
»
Flog: complexity is 1.6 |
app/helpers/admin_helper.rb : AdminHelper#build_fraudulent_domains
«
annotate
»
Reek: found 1 code smells Flog: complexity is 1.0 |
|
app/models/petition.rb:236-237
«
annotate
»
Flog: complexity is 1.6 |
app/helpers/admin_helper.rb : AdminHelper#build_fraudulent_ips
«
annotate
»
Reek: found 1 code smells Flog: complexity is 1.0 |
|
app/models/petition.rb:232-233
«
annotate
»
Flog: complexity is 1.6 |
app/controllers/admin/logs_controller.rb:31-32 : LogsController#csv_filename
«
annotate
»
Flog: complexity is 1.1 |
|
app/models/petition.rb:268-269
«
annotate
»
Flog: complexity is 1.6 |
: Fragment#none
Flog: complexity is 1.1 |
|
app/models/petition.rb:220-221
«
annotate
»
Flog: complexity is 1.6 |
: ApplicationHelper#none
Flog: complexity is 1.1 |
|
app/models/petition.rb:224-225
«
annotate
»
Flog: complexity is 1.6 |
: MarkdownHelper#none
Flog: complexity is 1.1 |
|
app/models/signature_logs.rb:77-78
«
annotate
»
Flog: complexity is 1.6 |
: AtomicDalliStore#none
Flog: complexity is 1.1 |
|
app/models/invalidation.rb:69-70
«
annotate
»
Flog: complexity is 1.6 |
: PetitionsCSVPresenter#none
Flog: complexity is 1.1 |
|
app/models/invalidation.rb:65-66
«
annotate
»
Flog: complexity is 1.6 |
app/models/petition.rb:736-738 : Petition#archived?
«
annotate
»
Flog: complexity is 1.1 |
|
app/models/petition.rb:108-109
«
annotate
»
Flog: complexity is 1.6 |
app/models/petition.rb:634-635 : Petition#flag
«
annotate
»
Flog: complexity is 1.1 |
|
app/models/petition.rb:160-161
«
annotate
»
Flog: complexity is 1.6 |
: ApiQuery#none
Flog: complexity is 1.1 |
|
app/models/petition.rb:164-165
«
annotate
»
Flog: complexity is 1.6 |
app/models/constituency.rb:78-79 : Constituency#to_param
«
annotate
»
Flog: complexity is 1.1 |
|
app/models/site.rb:178-179
«
annotate
»
Flog: complexity is 1.6 |
app/models/constituency.rb:70-72 : Constituency#sitting_mp?
«
annotate
»
Flog: complexity is 1.1 |
|
app/models/petition.rb:168-169
«
annotate
»
Flog: complexity is 1.6 |
app/models/signature.rb:585-587 : Signature#just_validated?
«
annotate
»
Flog: complexity is 1.1 |
|
app/models/petition.rb:172-173
«
annotate
»
Flog: complexity is 1.6 |
app/models/signature.rb:621-623 : Signature#mark_seen_signed_confirmation_page!
«
annotate
»
Flog: complexity is 1.1 |
|
app/models/site.rb:174-175
«
annotate
»
Flog: complexity is 1.6 |
: SharingHelper#none
Flog: complexity is 1.0 |
|
app/models/petition.rb:184-185
«
annotate
»
Flog: complexity is 1.6 |
: FlashI18n#none
Flog: complexity is 1.0 |
|
app/models/petition.rb:192-193
«
annotate
»
Flog: complexity is 1.6 |
: AdminHelper#none
Flog: complexity is 1.0 |
|
app/models/petition.rb:200-201
«
annotate
»
Flog: complexity is 1.6 |
: ConstituenciesController#none
Flog: complexity is 1.0 |
|
app/models/site.rb:170-171
«
annotate
»
Flog: complexity is 1.6 |
app/controllers/admin/archived/petition_emails_controller.rb:79-80 : PetitionEmailsController#feedback_signature
«
annotate
»
Flog: average complexity is 1.0 |
|
app/models/invalidation.rb:89-90
«
annotate
»
Flog: complexity is 1.6 |
app/controllers/admin/archived/petition_emails_controller.rb:91-92 : PetitionEmailsController#schedule_email_petitioners_job
«
annotate
»
Flog: average complexity is 1.0 |
|
app/models/site.rb:214-215
«
annotate
»
Flog: complexity is 1.6 |
app/controllers/admin/take_down_controller.rb:4-5 : TakeDownController#show
«
annotate
»
Flog: complexity is 1.0 |
|
app/models/petition.rb:112-113
«
annotate
»
Flog: complexity is 1.6 |
app/controllers/admin/archived/petitions_controller.rb:31-32 : PetitionsController#parliament_present?
«
annotate
»
Flog: complexity is 1.0 |
|
app/models/petition.rb:116-117
«
annotate
»
Flog: complexity is 1.6 |
: PostgreSQL#none
Flog: complexity is 1.0 |
|
app/models/petition.rb:120-121
«
annotate
»
Flog: complexity is 1.6 |
app/controllers/admin/archived/schedule_debate_controller.rb:4-5 : ScheduleDebateController#show
«
annotate
»
Flog: average complexity is 1.0 |
|
app/models/petition.rb:124-125
«
annotate
»
Flog: complexity is 1.6 |
: ProfileController#none
Flog: complexity is 1.0 |
|
app/models/petition.rb:128-129
«
annotate
»
Flog: complexity is 1.6 |
: HealthCheck#none
Flog: complexity is 1.0 |
|
app/models/petition.rb:132-133
«
annotate
»
Flog: complexity is 1.6 |
: SearchesController#none
Flog: complexity is 1.0 |
|
app/models/petition.rb:136-137
«
annotate
»
Flog: complexity is 1.6 |
: SignatureHelper#none
Flog: complexity is 1.0 |
|
app/models/petition.rb:140-141
«
annotate
»
Flog: complexity is 1.6 |
app/controllers/admin/archived/petition_emails_controller.rb:6-7 : PetitionEmailsController#new
«
annotate
»
Flog: average complexity is 1.0 |
|
app/models/petition.rb:148-149
«
annotate
»
Flog: complexity is 1.6 |
app/controllers/admin/archived/debate_outcomes_controller.rb:9-10 : DebateOutcomesController#show
«
annotate
»
Flog: average complexity is 1.0 |
|
app/models/petition.rb:152-153
«
annotate
»
Flog: complexity is 1.6 |
app/controllers/admin/archived/notes_controller.rb:9-10 : NotesController#show
«
annotate
»
Flog: average complexity is 1.0 |
|
app/models/petition.rb:156-157
«
annotate
»
Flog: complexity is 1.6 |
app/controllers/admin/archived/petition_tags_controller.rb:4-5 : PetitionTagsController#show
«
annotate
»
Flog: average complexity is 1.0 |
|
app/models/site.rb:194-195
«
annotate
»
Flog: complexity is 1.6 |
app/controllers/admin/archived/government_response_controller.rb:9-10 : GovernmentResponseController#show
«
annotate
»
Flog: average complexity is 1.0 |
|
app/models/constituency.rb:61-62
«
annotate
»
Flog: complexity is 1.6 |
app/controllers/admin/tags_controller.rb:46-48 : TagsController#destroy
«
annotate
»
Flog: complexity is 1.0 |
|
app/models/constituency.rb:37-38
«
annotate
»
Flog: complexity is 1.6 |
app/controllers/admin/tags_controller.rb:64-65 : TagsController#destroy_tag
«
annotate
»
Flog: complexity is 1.0 |
|
app/models/signature.rb:419-420
«
annotate
»
Flog: complexity is 1.6 |
: DebatedPetitionsJob#none
Flog: complexity is 1.0 |
|
app/models/signature.rb:407-408
«
annotate
»
Flog: complexity is 1.6 |
: ArchivePetitionsJob#none
Flog: complexity is 1.0 |
|
app/models/signature.rb:403-404
«
annotate
»
Flog: complexity is 1.6 |
: ClosePetitionsJob#none
Flog: complexity is 1.0 |
|
app/models/signature.rb:328-329
«
annotate
»
Flog: complexity is 1.6 |
: UpdatePetitionStatisticsJob#none
Flog: complexity is 1.0 |
|
app/models/signature.rb:250-251
«
annotate
»
Flog: complexity is 1.6 |
: BackfillCanonicalEmailsJob#none
Flog: complexity is 1.0 |
|
app/models/signature.rb:188-189
«
annotate
»
Flog: complexity is 1.6 |
: DeletePetitionsJob#none
Flog: complexity is 1.0 |
|
app/models/signature.rb:332-333
«
annotate
»
Flog: complexity is 1.6 |
: RefreshConstituenciesJob#none
Flog: complexity is 1.0 |
|
app/models/signature.rb:192-193
«
annotate
»
Flog: complexity is 1.6 |
: EmailThresholdReminderJob#none
Flog: complexity is 1.0 |
|
app/models/signature.rb:172-173
«
annotate
»
Flog: complexity is 1.6 |
: BackfillSignatureUuidsJob#none
Flog: complexity is 1.0 |
|
app/models/signature.rb:150-151
«
annotate
»
Flog: complexity is 1.6 |
: DeletePetitionJob#none
Flog: complexity is 1.0 |
|
app/models/signature.rb:125-126
«
annotate
»
Flog: complexity is 1.6 |
: ClassMethods#none
Flog: average complexity is 1.0 |
|
app/models/signature.rb:121-122
«
annotate
»
Flog: complexity is 1.6 |
: CloudFrontGetIp#none
Flog: complexity is 1.0 |
|
app/models/signature.rb:133-134
«
annotate
»
Flog: complexity is 1.6 |
app/models/petition.rb : #threshold
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/models/signature.rb:77-78
«
annotate
»
Flog: complexity is 1.6 |
app/models/petition.rb : #todo_list
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/models/tag.rb:18-19
«
annotate
»
Flog: complexity is 1.6 |
app/models/domain.rb : Domain##by_name
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/application_job.rb
«
annotate
»
Reek: found 3 code smells Saikuro: average complexity is 1.0 |
app/models/domain.rb : Domain##default_scope
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/controllers/admin/archived/petition_tags_controller.rb
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.2 |
app/models/petition.rb : #not_scheduled
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/controllers/admin/profile_controller.rb
«
annotate
»
Reek: found 1 code smells Saikuro: average complexity is 1.3 |
app/models/petition.rb : #not_responded
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/jobs/debated_petitions_job.rb
«
annotate
»
Reek: found 3 code smells Saikuro: complexity is 1.0 |
app/models/petition.rb : #not_hidden
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/controllers/admin/logs_controller.rb:23-24
«
annotate
»
Flog: complexity is 1.6 |
app/models/site.rb : Site##default_constraints_for_moderation
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/helpers/cache_helper.rb:208-210
«
annotate
»
Flog: complexity is 1.6 |
app/models/site.rb : Site##before_remove_const
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/helpers/cache_helper.rb:204-206
«
annotate
»
Flog: complexity is 1.6 |
app/models/feedback_signature.rb : #email
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/helpers/cache_helper.rb:212-214
«
annotate
»
Flog: complexity is 1.6 |
app/models/feedback_signature.rb : #unsubscribe_token
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/controllers/admin/logs_controller.rb:27-28
«
annotate
»
Flog: complexity is 1.6 |
app/models/feedback_signature.rb : #to_param
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/models/archived/petition.rb:308-309
«
annotate
»
Flog: complexity is 1.6 |
app/models/feedback_signature.rb : #rfc2822
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/models/petition.rb:856-857
«
annotate
»
Flog: complexity is 1.6 |
app/models/site.rb : Site##instance
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/models/site.rb:441-442
«
annotate
»
Flog: complexity is 1.6 |
app/controllers/admin/admin_users_controller.rb : Admin#admin_user_params
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/models/site.rb:468-470
«
annotate
»
Flog: complexity is 1.6 |
app/controllers/admin/archived/petition_details_controller.rb : Admin#petition_attributes
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/models/constituency/api_query.rb:31-32
«
annotate
»
Flog: complexity is 1.6 |
app/controllers/admin/admin_controller.rb : Admin#set_appsignal_namespace
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/feedback_email_job.rb
«
annotate
»
Reek: found 3 code smells Saikuro: complexity is 1.0 |
app/controllers/admin/archived/petition_details_controller.rb : Admin#petition_params
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/controllers/admin/archived/petition_details_controller.rb
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.2 |
app/models/petition.rb : #visible
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/models/location.rb
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.0 |
app/controllers/admin/admin_controller.rb : Admin#admin_request?
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/models/feedback_signature.rb
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.0 |
app/models/site.rb : Site##authenticate
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/models/constituency_petition_journal.rb:24-25
«
annotate
»
Flog: complexity is 1.5 |
app/controllers/admin/tasks_controller.rb : Admin#redirect_to_tasks_tab
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/models/domain.rb:36-37
«
annotate
»
Flog: complexity is 1.5 |
app/models/petition.rb : #with_debate_outcome
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/models/domain.rb:40-41
«
annotate
»
Flog: complexity is 1.5 |
app/models/petition.rb : #with_debated_outcome
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/models/location.rb:6-7
«
annotate
»
Flog: complexity is 1.5 |
app/models/site.rb : Site##email_protocol
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/models/trending_domain.rb:15-16
«
annotate
»
Flog: complexity is 1.5 |
app/models/site.rb : Site##enabled?
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/models/trending_domain.rb:11-12
«
annotate
»
Flog: complexity is 1.5 |
app/models/petition.rb : #with_response
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/models/statistics.rb:50-51
«
annotate
»
Flog: complexity is 1.5 |
app/models/site.rb : Site##formatted_threshold_for_moderation
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/models/trending_ip.rb:26-27
«
annotate
»
Flog: complexity is 1.5 |
app/models/site.rb : Site##formatted_threshold_for_response
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/models/trending_ip.rb:22-23
«
annotate
»
Flog: complexity is 1.5 |
app/models/site.rb : Site##formatted_threshold_for_debate
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/delete_petition_job.rb
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 1.0 |
app/models/site.rb : Site##host
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/helpers/date_time_helper.rb:25-27
«
annotate
»
Flog: complexity is 1.5 |
app/models/site.rb : Site##host_with_port
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/helpers/date_time_helper.rb:21-23
«
annotate
»
Flog: complexity is 1.5 |
app/models/site.rb : Site##default_threshold_for_response
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/helpers/date_time_helper.rb:9-11
«
annotate
»
Flog: complexity is 1.5 |
app/models/site.rb : Site##default_threshold_for_debate
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/helpers/date_time_helper.rb:5-7
«
annotate
»
Flog: complexity is 1.5 |
app/models/site.rb : Site##default_constraints_for_public
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/mailers/archived/petition_mailer.rb:83-85
«
annotate
»
Flog: complexity is 1.5 |
app/models/site.rb : Site##table_exists?
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/invalidate_signatures_job.rb
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 1.0 |
app/controllers/admin/tasks_controller.rb : Admin#missing_tasks?
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/close_petitions_early_job.rb
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.0 |
app/controllers/admin/tasks_controller.rb : Admin#selected_tasks
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/email_threshold_reminder_job.rb
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 1.0 |
app/controllers/admin/admin_users_controller.rb : Admin#find_user
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/refresh_constituencies_job.rb
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 1.0 |
app/models/location.rb : Location##by_name
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/update_petition_statistics_job.rb
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 1.0 |
app/models/location.rb : Location##current
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/close_petitions_job.rb
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 1.0 |
app/models/location.rb : Location##not_pending
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/notify_creators_that_moderation_is_delayed_job.rb
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 1.0 |
app/models/site.rb : Site##moderate_host
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/signatures/_signature.html.erb
Churn: detected high level of churn (changed 10 times) Flay: found 4 code duplications |
app/models/site.rb : Site##moderate_host_with_port
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/notify_creators_that_parliament_is_dissolving_job.rb
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 1.0 |
app/models/site.rb : Site##opened_at_for_closing
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/helpers/admin_helper.rb:138-140
«
annotate
»
Flog: complexity is 1.4 |
app/models/site.rb : Site##closed_at_for_opening
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/controllers/admin/holidays_controller.rb:23-24
«
annotate
»
Flog: complexity is 1.4 |
app/models/site.rb : Site##port
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/controllers/admin/sites_controller.rb:23-24
«
annotate
»
Flog: complexity is 1.4 |
app/models/site.rb : Site##protected?
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/controllers/admin/rate_limits_controller.rb:38-39
«
annotate
»
Flog: complexity is 1.4 |
app/models/site.rb : Site##login_timeout
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/controllers/admin/user_sessions_controller.rb:5-6
«
annotate
»
Flog: complexity is 1.4 |
app/models/site.rb : Site##reload
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/controllers/concerns/authentication.rb:57-58
«
annotate
»
Flog: complexity is 1.4 |
app/models/site.rb : Site##touch
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/controllers/admin/admin_users_controller.rb:17-18
«
annotate
»
Flog: complexity is 1.4 |
app/models/site.rb : Site##disable_signature_counts!
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/controllers/admin/parliaments_controller.rb:32-33
«
annotate
»
Flog: complexity is 1.4 |
app/models/site.rb : Site##enable_signature_counts!
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/archived/email_petitioners_job.rb:15-18
«
annotate
»
Flog: complexity is 1.4 |
app/models/site.rb : Site##last_checked_at!
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/deliver_petition_email_job.rb:6-9
«
annotate
»
Flog: complexity is 1.4 |
app/models/site.rb : Site##last_petition_created_at!
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/models/rejection.rb:23-25
«
annotate
»
Flog: complexity is 1.4 |
app/models/site.rb : Site##signature_count_updated_at!
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/models/domain.rb:31-32
«
annotate
»
Flog: complexity is 1.4 |
app/models/site.rb : Site##moderation_overdue_in_days
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/models/debate_outcome.rb:38-40
«
annotate
»
Flog: complexity is 1.4 |
app/models/site.rb : Site##moderation_near_overdue_in_days
«
annotate
»
Saikuro: complexity is 1.0 |
|
lib/tasks/errors.rake:7-8
«
annotate
»
Flog: complexity is 1.4 |
app/models/location.rb : Location##not_expired
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/controllers/admin/petition_statistics_controller.rb
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.0 |
app/models/location.rb : Location##menu
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/controllers/admin/admin_controller.rb
«
annotate
»
Reek: found 2 code smells Saikuro: average complexity is 1.0 |
app/models/site.rb : Site##defaults
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/controllers/admin/tasks_controller.rb
«
annotate
»
Reek: found 1 code smells Saikuro: average complexity is 1.2 |
app/models/site.rb : Site##default_title
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/controllers/feedback_controller.rb
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 1.0 |
app/models/location.rb : Location##start_date
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/controllers/concerns/authentication.rb
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 1.0 |
app/models/location.rb : Location##end_date
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/helpers/sharing_helper.rb
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 1.0 |
app/models/site.rb : Site##default_scheme
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/helpers/moderation_helper.rb
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 1.0 |
app/models/petition.rb : #trending
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/helpers/signature_helper.rb
«
annotate
»
Reek: found 2 code smells Saikuro: complexity is 1.0 |
app/models/site.rb : Site##default_protocol
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/models/archived.rb
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 |
app/models/site.rb : Site##default_url_components
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/archived/email_petitioners_job.rb
«
annotate
»
Reek: found 1 code smells Saikuro: average complexity is 1.0 |
app/models/site.rb : Site##default_host
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/models/tag.rb
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 |
app/models/site.rb : Site##default_domain
«
annotate
»
Saikuro: complexity is 1.0 |
|
lib/package_builder.rb:949-950
«
annotate
»
Flog: complexity is 1.1 |
app/models/site.rb : Site##default_moderate_url_components
«
annotate
»
Saikuro: complexity is 1.0 |
|
lib/package_builder.rb:520-521
«
annotate
»
Flog: complexity is 1.1 |
app/controllers/feedback_controller.rb : FeedbackController#feedback_attributes
«
annotate
»
Saikuro: complexity is 1.0 |
|
lib/package_builder.rb:1048-1049
«
annotate
»
Flog: complexity is 1.1 |
app/models/petition.rb : #current
«
annotate
»
Saikuro: complexity is 1.0 |
|
lib/package_builder.rb:473-474
«
annotate
»
Flog: complexity is 1.1 |
app/models/petition.rb : #in_need_of_closing
«
annotate
»
Saikuro: complexity is 1.0 |
|
lib/package_builder.rb:462-463
«
annotate
»
Flog: complexity is 1.1 |
app/models/site.rb : Site##default_moderate_host
«
annotate
»
Saikuro: complexity is 1.0 |
|
lib/package_builder.rb:181-182
«
annotate
»
Flog: complexity is 1.1 |
app/models/site.rb : Site##default_port
«
annotate
»
Saikuro: complexity is 1.0 |
|
lib/package_builder.rb:280-281
«
annotate
»
Flog: complexity is 1.1 |
app/models/site.rb : Site##default_email_from
«
annotate
»
Saikuro: complexity is 1.0 |
|
lib/package_builder.rb:265-266
«
annotate
»
Flog: complexity is 1.1 |
app/models/site.rb : Site##default_feedback_email
«
annotate
»
Saikuro: complexity is 1.0 |
|
lib/package_builder.rb:227-228
«
annotate
»
Flog: complexity is 1.1 |
app/models/site.rb : Site##default_username
«
annotate
»
Saikuro: complexity is 1.0 |
|
lib/package_builder.rb:202-203
«
annotate
»
Flog: complexity is 1.1 |
app/models/site.rb : Site##default_password
«
annotate
»
Saikuro: complexity is 1.0 |
|
lib/package_builder.rb:189-190
«
annotate
»
Flog: complexity is 1.1 |
app/models/site.rb : Site##default_enabled
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/helpers/cache_helper.rb:63-64
«
annotate
»
Flog: complexity is 1.1 |
app/models/site.rb : Site##default_protected
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/helpers/cache_helper.rb:79-80
«
annotate
»
Flog: complexity is 1.1 |
app/models/site.rb : Site##default_login_timeout
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/controllers/archived/petitions_controller.rb:82-84
«
annotate
»
Flog: complexity is 1.1 |
app/models/site.rb : Site##default_petition_duration
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/controllers/petitions_controller.rb:176-177
«
annotate
»
Flog: complexity is 1.1 |
app/models/site.rb : Site##default_minimum_number_of_sponsors
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/helpers/markdown_helper.rb:32-33
«
annotate
»
Flog: complexity is 1.1 |
app/models/site.rb : Site##default_maximum_number_of_sponsors
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/controllers/admin/logs_controller.rb:31-32
«
annotate
»
Flog: complexity is 1.1 |
app/models/site.rb : Site##default_threshold_for_moderation
«
annotate
»
Saikuro: complexity is 1.0 |
|
lib/package_builder.rb:296-297
«
annotate
»
Flog: complexity is 1.1 |
app/controllers/admin/moderation_delays_controller.rb : Admin#example_petition
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/archive_petition_job.rb:115-116
«
annotate
»
Flog: complexity is 1.1 |
app/models/site.rb : Site##default_threshold_for_moderation_delay
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/models/archived/petition.rb:292-293
«
annotate
»
Flog: complexity is 1.1 |
app/controllers/admin/signatures_controller.rb : Admin#fetch_petition
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/models/petition.rb:814-815
«
annotate
»
Flog: complexity is 1.1 |
app/models/tag.rb : Tag##by_name
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/models/petition.rb:736-738
«
annotate
»
Flog: complexity is 1.1 |
app/controllers/admin/signatures_controller.rb : Admin#fetch_signature
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/models/petition.rb:634-635
«
annotate
»
Flog: complexity is 1.1 |
app/jobs/stop_petitions_early_job.rb : StopPetitionsEarlyJob##schedule_for
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/models/signature_logs.rb:96-97
«
annotate
»
Flog: complexity is 1.1 |
app/controllers/admin/signatures_controller.rb : Admin#fetch_signatures
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/models/invalidation.rb:253-254
«
annotate
»
Flog: complexity is 1.1 |
app/controllers/admin/signatures_controller.rb : Admin#petition_scope?
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/models/constituency/api_client.rb:35-36
«
annotate
»
Flog: complexity is 1.1 |
app/models/petition.rb : #created_after
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/models/constituency.rb:70-72
«
annotate
»
Flog: complexity is 1.1 |
app/controllers/admin/notes_controller.rb : Admin#fetch_note
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/models/constituency.rb:78-79
«
annotate
»
Flog: complexity is 1.1 |
app/controllers/admin/moderation_delays_controller.rb : Admin#build_moderation_delay
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/models/rate_limit.rb:168-169
«
annotate
»
Flog: complexity is 1.1 |
app/models/petition.rb : #not_debated
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/models/signature.rb:585-587
«
annotate
»
Flog: complexity is 1.1 |
app/models/petition.rb : #popular_in_constituency
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/models/signature.rb:621-623
«
annotate
»
Flog: complexity is 1.1 |
app/models/petition.rb : #moderated
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/models/petition_creator.rb:221-222
«
annotate
»
Flog: complexity is 1.1 |
app/models/invalidation.rb : Invalidation##started
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/models/petition_creator.rb:233-234
«
annotate
»
Flog: complexity is 1.1 |
app/models/invalidation.rb : Invalidation##by_longest_running
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/models/petition_creator.rb:217-218
«
annotate
»
Flog: complexity is 1.1 |
app/models/petition.rb : #all_popular_in_constituency
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/models/holiday.rb
«
annotate
»
Reek: found 1 code smells Saikuro: average complexity is 1.0 |
app/models/invalidation.rb : Invalidation##cancelled
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/presenters/api_pagination_links_presenter.rb
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 |
app/models/invalidation.rb : Invalidation##completed
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/helpers/form_helper.rb:9-10
«
annotate
»
Flog: complexity is 1.0 |
app/models/invalidation.rb : Invalidation##enqueued
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/helpers/admin_helper.rb:130-131
«
annotate
»
Flog: complexity is 1.0 |
app/controllers/admin/moderation_delays_controller.rb : Admin#save_attributes_to_session
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/helpers/admin_helper.rb:146-147
«
annotate
»
Flog: complexity is 1.0 |
app/models/invalidation.rb : Invalidation##not_completed
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/helpers/admin_helper.rb:142-143
«
annotate
»
Flog: complexity is 1.0 |
app/models/invalidation.rb : Invalidation##pending
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/helpers/admin_helper.rb:134-135
«
annotate
»
Flog: complexity is 1.0 |
app/models/invalidation.rb : Invalidation##running
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/controllers/concerns/form_tracking.rb:6-7
«
annotate
»
Flog: complexity is 1.0 |
app/controllers/admin/notes_controller.rb : Admin#note_params
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/helpers/admin_helper.rb:126-127
«
annotate
»
Flog: complexity is 1.0 |
app/models/petition.rb : #sanitized_tag
«
annotate
»
Saikuro: complexity is 1.0 |
|
lib/health_check.rb:48-50
«
annotate
»
Flog: complexity is 1.0 |
app/models/petition.rb : #in_need_of_marking_as_debated
«
annotate
»
Saikuro: average complexity is 1.0 |
|
lib/health_check.rb:28-29
«
annotate
»
Flog: complexity is 1.0 |
app/models/invalidation.rb : Invalidation##by_most_recent
«
annotate
»
Saikuro: complexity is 1.0 |
|
lib/arel_extensions.rb:44-45
«
annotate
»
Flog: complexity is 1.0 |
app/models/petition.rb : #mark_petitions_as_debated!
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/controllers/admin/archived/petition_emails_controller.rb:6-7
«
annotate
»
Flog: complexity is 1.0 |
app/models/petition.rb : #unarchived
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/controllers/admin/archived/petition_emails_controller.rb:79-80
«
annotate
»
Flog: complexity is 1.0 |
app/controllers/admin/moderation_delays_controller.rb : Admin#send_email_to_creators?
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/controllers/admin/admin_controller.rb:21-22
«
annotate
»
Flog: complexity is 1.0 |
app/helpers/auto_link_helper.rb : AutoLinker#self.generate
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/controllers/admin/archived/petition_tags_controller.rb:4-5
«
annotate
»
Flog: complexity is 1.0 |
app/models/petition.rb : #by_most_popular
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/helpers/signature_helper.rb:8-9
«
annotate
»
Flog: complexity is 1.0 |
app/models/petition.rb : #debate_date_in_the_past
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/controllers/admin/schedule_debate_controller.rb:4-5
«
annotate
»
Flog: complexity is 1.0 |
app/models/petition.rb : #awaiting_debate_state
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/controllers/admin/invalidations_controller.rb:111-113
«
annotate
»
Flog: complexity is 1.0 |
app/models/petition.rb : #scheduled_for_debate
«
annotate
»
Saikuro: average complexity is 1.0 |
|
lib/arel_extensions.rb:48-49
«
annotate
»
Flog: complexity is 1.0 |
app/models/petition.rb : #threshold_for_debate_reached
«
annotate
»
Saikuro: average complexity is 1.0 |
|
lib/arel_extensions.rb:40-41
«
annotate
»
Flog: complexity is 1.0 |
app/controllers/signatures_controller.rb : SignaturesController#signature_attributes
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/controllers/admin/take_down_controller.rb:4-5
«
annotate
»
Flog: complexity is 1.0 |
app/models/country_petition_journal.rb : CountryPetitionJournal##update_all
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/controllers/admin/petition_emails_controller.rb:79-80
«
annotate
»
Flog: complexity is 1.0 |
app/controllers/application_controller.rb : ApplicationController#admin_request?
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/controllers/admin/petition_emails_controller.rb:6-7
«
annotate
»
Flog: complexity is 1.0 |
app/controllers/admin/moderation_controller.rb : Admin#moderation_params
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/controllers/admin/petition_emails_controller.rb:91-92
«
annotate
»
Flog: complexity is 1.0 |
app/models/petition.rb : #popular_in
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/controllers/admin/archived/petition_emails_controller.rb:91-92
«
annotate
»
Flog: complexity is 1.0 |
app/models/petition.rb : #in_debate_queue
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/controllers/admin/archived/notes_controller.rb:9-10
«
annotate
»
Flog: complexity is 1.0 |
app/models/petition.rb : #for_state
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/controllers/admin/archived/petitions_controller.rb:31-32
«
annotate
»
Flog: complexity is 1.0 |
app/models/petition.rb : #debated
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/controllers/admin/archived/government_response_controller.rb:9-10
«
annotate
»
Flog: complexity is 1.0 |
app/models/petition.rb : #debateable
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/controllers/admin/archived/schedule_debate_controller.rb:4-5
«
annotate
»
Flog: complexity is 1.0 |
app/models/petition.rb : #debate_threshold_reached
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/controllers/admin/archived/debate_outcomes_controller.rb:9-10
«
annotate
»
Flog: complexity is 1.0 |
app/models/petition.rb : #collecting_sponsors
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/controllers/admin/tags_controller.rb:64-65
«
annotate
»
Flog: complexity is 1.0 |
app/models/petition.rb : #awaiting_response
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/controllers/admin/debate_outcomes_controller.rb:9-10
«
annotate
»
Flog: complexity is 1.0 |
app/models/petition.rb : #awaiting_debate_date
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/controllers/application_controller.rb:71-72
«
annotate
»
Flog: complexity is 1.0 |
app/models/petition.rb : #awaiting_debate
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/controllers/application_controller.rb:63-64
«
annotate
»
Flog: complexity is 1.0 |
app/models/petition.rb : #recently_in_moderation
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/controllers/admin/petition_tags_controller.rb:4-5
«
annotate
»
Flog: complexity is 1.0 |
lib/postcode_sanitizer.rb : PostcodeSanitizer#self.call
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/controllers/admin/government_response_controller.rb:9-10
«
annotate
»
Flog: complexity is 1.0 |
app/controllers/admin/statistics_controller.rb : Admin#set_content_disposition
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/controllers/admin/notes_controller.rb:9-10
«
annotate
»
Flog: complexity is 1.0 |
app/controllers/admin/statistics_controller.rb : Admin#period
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/controllers/admin/tags_controller.rb:46-48
«
annotate
»
Flog: complexity is 1.0 |
app/models/constituency/api_query.rb : ApiQuery#self.before_remove_const
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/controllers/application_controller.rb:51-52
«
annotate
»
Flog: complexity is 1.0 |
app/controllers/admin/schedule_debate_controller.rb : Admin#params_for_update
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/controllers/application_controller.rb:55-56
«
annotate
»
Flog: complexity is 1.0 |
app/models/archived/petition.rb : #by_created_at
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/controllers/application_controller.rb:93-94
«
annotate
»
Flog: complexity is 1.0 |
app/models/archived/petition.rb : #by_most_signatures
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/concerns/email_delivery.rb:107-108
«
annotate
»
Flog: complexity is 1.0 |
app/models/archived/petition.rb : #published
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/concerns/email_all_petition_signatories.rb:95-96
«
annotate
»
Flog: complexity is 1.0 |
app/models/archived/petition.rb : #stopped
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/application_job.rb:7-8
«
annotate
»
Flog: complexity is 1.0 |
app/models/archived/petition.rb : #closed
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/notify_creators_that_moderation_is_delayed_job.rb:12-13
«
annotate
»
Flog: complexity is 1.0 |
app/models/archived/petition.rb : #rejected
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/application_job.rb:11-12
«
annotate
»
Flog: complexity is 1.0 |
app/controllers/admin/user_sessions_controller.rb : Admin#last_request_update_allowed?
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/jobs/notify_creators_that_parliament_is_dissolving_job.rb:12-13
«
annotate
»
Flog: complexity is 1.0 |
app/models/archived/petition.rb : #hidden
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/feedback_email_job.rb:21-22
«
annotate
»
Flog: complexity is 1.0 |
app/models/archived/petition.rb : #debate_scheduled
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/petition_count_job.rb:23-24
«
annotate
»
Flog: complexity is 1.0 |
lib/package_builder.rb : PackageBuilder##build!
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/lib/quiet_logger.rb:24-25
«
annotate
»
Flog: complexity is 1.0 |
lib/package_builder.rb : PackageBuilder##deploy!
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/validators/email_validator.rb:21-22
«
annotate
»
Flog: complexity is 1.0 |
app/models/petition.rb : #nearly_overdue_in_moderation
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/email_threshold_reminder_job.rb:4-5
«
annotate
»
Flog: complexity is 1.0 |
app/models/petition.rb : #overdue_in_moderation
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/refresh_constituencies_job.rb:4-5
«
annotate
»
Flog: complexity is 1.0 |
app/models/petition.rb : #stopped_state
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/email_job.rb:48-49
«
annotate
»
Flog: complexity is 1.0 |
app/models/petition.rb : #sponsored_state
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/delete_petition_job.rb:4-5
«
annotate
»
Flog: complexity is 1.0 |
lib/package_builder.rb : PackageBuilder#archive_name
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/invalidate_signatures_job.rb:8-9
«
annotate
»
Flog: complexity is 1.0 |
app/models/petition.rb : #rejected_state
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/models/debate_outcome.rb:32-33
«
annotate
»
Flog: complexity is 1.0 |
lib/package_builder.rb : PackageBuilder#latest_key
«
annotate
»
Saikuro: complexity is 1.0 |
|
lib/postcode_sanitizer.rb
«
annotate
»
Reek: found 1 code smells Saikuro: complexity is 1.0 |
lib/package_builder.rb : PackageBuilder#slack_options
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/petitions/create/_creator_stage.html.erb
Flay: found 5 code duplications |
app/jobs/close_petitions_early_job.rb : ClosePetitionsEarlyJob##schedule_for
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/signatures/_form.html.erb
Flay: found 5 code duplications |
app/models/petition.rb : #tagged_in_moderation
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/admin/index.html.erb
Flay: found 4 code duplications |
app/models/parliament.rb : Parliament##before_remove_const
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/parliaments/show.html.erb
Flay: found 4 code duplications |
app/models/parliament.rb : Parliament##reload
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/debate_outcomes/_petition_action_debate_outcome.html.erb
Flay: found 4 code duplications |
app/models/parliament.rb : Parliament##registration_closed?
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/sites/_access.html.erb
Flay: found 4 code duplications |
app/models/petition.rb : #hidden_state
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/archived/petitions/show.html.erb
Flay: found 4 code duplications |
app/models/petition.rb : #closed_state
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/invalidations/_form.html.erb
Flay: found 4 code duplications |
app/models/country_petition_journal.rb : CountryPetitionJournal##older_than
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/rate_limits/_countries.html.erb
Flay: found 3 code duplications |
app/models/signature.rb : #normalize_domain
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/views/admin/archived/signatures/_signature.html.erb
Flay: found 3 code duplications |
app/models/signature.rb : #validated?
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/sites/_description.html.erb
Flay: found 3 code duplications |
app/models/signature.rb : #domain_search?
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/views/admin/admin_users/_form.html.erb
Flay: found 3 code duplications |
app/controllers/admin/user_sessions_controller.rb : Admin#user_session_params
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/government_response/_petition_action_government_response.html.erb
Flay: found 3 code duplications |
app/models/signature.rb : #email_search?
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/views/admin/archived/debate_outcomes/_petition_action_debate_outcome.html.erb
Flay: found 3 code duplications |
app/models/signature.rb : #petition_search?
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/views/admin/sites/_features.html.erb
Flay: found 2 code duplications |
app/models/signature.rb : #postcode_search?
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/views/pages/home/_debated_petitions.html.erb
Flay: found 2 code duplications |
app/models/signature.rb : #sector_search?
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/views/admin/signatures/index.html.erb
Flay: found 2 code duplications |
app/models/parliament.rb : Parliament##dissolution_announced?
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/tags/_form.html.erb
Flay: found 2 code duplications |
app/models/parliament.rb : Parliament##dissolved?
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/archived/petitions/index.html.erb
Flay: found 2 code duplications |
app/models/signature.rb : #validated_at
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/archived/petitions/_petition_actions.html.erb
Flay: found 2 code duplications |
app/models/signature.rb : #count_star
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/petitions/_petition_actions.html.erb
Flay: found 2 code duplications |
app/models/signature.rb : #max_validated_at
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/archived/government_response/_petition_action_government_response.html.erb
Flay: found 2 code duplications |
app/models/signature.rb : #normalize_email
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/views/admin/petitions/index.html.erb
Flay: found 2 code duplications |
app/models/signature.rb : #normalize_user
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/views/admin/trending_domains/index.html.erb
Flay: found 2 code duplications |
app/models/signature.rb : #batch
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/views/admin/trending_ips/index.html.erb
Flay: found 2 code duplications |
app/models/signature.rb : #duplicate
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/sites/_moderation.html.erb
Flay: found 2 code duplications |
app/models/signature.rb : #duplicate_emails
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/petitions/_petition_details.html.erb
Flay: found 2 code duplications |
app/models/signature.rb : #pending_rate
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/petition_emails/_petition_action_email_petitioners.html.erb
Flay: found 2 code duplications |
app/models/signature.rb : #similar
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/helpers/social_meta_helper.rb
«
annotate
»
Reek: found 1 code smells Flay: found 1 code duplications |
app/models/signature.rb : #for_domain
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/views/petition_mailer/notify_creator_that_petition_was_rejected.html.erb
Flay: found 2 code duplications |
app/models/signature.rb : #for_email
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/views/petition_mailer/notify_sponsor_that_petition_was_rejected.html.erb
Flay: found 2 code duplications |
app/models/signature.rb : #for_invalidating
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/petition_emails/edit.html.erb
Flay: found 2 code duplications |
app/models/signature.rb : #for_ip
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/models/archived/rejection.rb
«
annotate
»
Reek: found 1 code smells Flay: found 1 code duplications |
app/models/signature.rb : #for_name
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/views/admin/archived/petitions/_petition_content.html.erb
Flay: found 2 code duplications |
app/models/signature.rb : #for_petition
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/views/admin/petitions/_petition_content.html.erb
Flay: found 2 code duplications |
app/models/signature.rb : #for_postcode
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/views/admin/rate_limits/_trending_items.html.erb
Flay: found 2 code duplications |
app/models/signature.rb : #for_sector
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/lib/cloud_front_remote_ip.rb
«
annotate
»
Reek: found 4 code smells |
app/models/signature.rb : #for_timestamp
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/views/admin/shared/_site_tabs.html.erb
Flay: found 2 code duplications |
app/models/signature.rb : #fraudulent
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/invalidations/_invalidation.html.erb
Flay: found 2 code duplications |
app/models/signature.rb : #invalidated
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/petitions/_closed_petition_show.html.erb
Flay: found 2 code duplications |
app/models/signature.rb : #need_emailing_for
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/views/admin/archived/signatures/index.html.erb
Flay: found 2 code duplications |
app/models/signature.rb : #pending
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/archived/petitions/index.html.erb
Flay: found 2 code duplications |
app/models/signature.rb : #total
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/schedule_debate/_petition_action_debate_date.html.erb
Flay: found 2 code duplications |
app/models/signature.rb : #petition_ids_signed_since
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/petitions/_debate_threshold.html.erb
Flay: found 2 code duplications |
app/models/signature.rb : #creator
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/views/petitions/create/_replay_petition_stage.html.erb
Flay: found 1 code duplications |
app/models/signature.rb : #sponsors
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/views/petitions/_response_threshold.html.erb
Flay: found 1 code duplications |
app/models/signature.rb : #subscribed
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/views/pages/home/_responded_petitions.html.erb
Flay: found 1 code duplications |
app/models/signature.rb : #fraudulent_domains
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/views/archived/petition_mailer/notify_creator_of_threshold_response.html.erb
Flay: found 1 code duplications |
app/models/signature.rb : #fraudulent_ips
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/archived/petition_mailer/notify_signer_of_threshold_response.html.erb
Flay: found 1 code duplications |
app/models/signature.rb : #trending_domains
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/archived/petition_mailer/notify_signer_of_threshold_response.text.erb
Flay: found 1 code duplications |
app/models/signature.rb : #trending_ips
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/local_petitions/all.html.erb
Flay: found 1 code duplications |
app/models/signature.rb : #uk
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/local_petitions/show.html.erb
Flay: found 1 code duplications |
app/models/signature.rb : #validated_count
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/signatures/confirm.html.erb
Flay: found 1 code duplications |
app/models/signature.rb : #validated_count_by_location_code
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/mailers/sponsor_mailer.rb
«
annotate
»
Reek: found 3 code smells |
app/models/signature.rb : #validated_count_by_constituency_id
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/sponsors/confirm.html.erb
Flay: found 1 code duplications |
app/models/parliament.rb : Parliament##dissolution_faq_url?
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/controllers/concerns/bulk_verification.rb
«
annotate
»
Reek: found 2 code smells |
app/models/parliament.rb : Parliament##dissolution_faq_url
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/archived/petitions/_petition_details.html.erb
Flay: found 1 code duplications |
app/models/parliament.rb : Parliament##dissolved_message
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/petitions/create/_petition_stage.html.erb
Flay: found 1 code duplications |
app/controllers/admin/user_sessions_controller.rb : Admin#continue
«
annotate
»
Saikuro: complexity is 1.0 |
|
spec/models/signature_spec.rb
Churn: detected high level of churn (changed 15 times) |
app/controllers/admin/sites_controller.rb : Admin#fetch_site
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/petition_mailer/notify_creator_of_sponsored_petition_being_stopped.html.erb
Flay: found 1 code duplications |
app/models/parliament.rb : Parliament##dissolved_heading
«
annotate
»
Saikuro: complexity is 1.0 |
|
config/routes.rb
Churn: detected high level of churn (changed 10 times) |
app/controllers/admin/sites_controller.rb : Admin#site_params
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/models/petition/statistics.rb
«
annotate
»
Reek: found 2 code smells |
app/controllers/admin/take_down_controller.rb : Admin#rejection_params
«
annotate
»
Saikuro: complexity is 1.0 |
|
spec/models/rate_limit_spec.rb
Churn: detected high level of churn (changed 10 times) |
app/controllers/admin/take_down_controller.rb : Admin#send_email_to_creator_and_sponsors?
«
annotate
»
Saikuro: average complexity is 1.0 |
|
db/structure.sql
Churn: detected high level of churn (changed 24 times) |
app/models/petition.rb : #open_state
«
annotate
»
Saikuro: complexity is 1.0 |
|
spec/controllers/sponsors_controller_spec.rb
Churn: detected high level of churn (changed 10 times) |
app/models/petition.rb : #scheduled_debate_state
«
annotate
»
Saikuro: average complexity is 1.0 |
|
Gemfile.lock
Churn: detected high level of churn (changed 12 times) |
app/models/petition.rb : #by_most_recent
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/views/petition_mailer/notify_creator_of_validated_petition_being_stopped.html.erb
Flay: found 1 code duplications |
app/models/petition.rb : #by_most_recent_debate_outcome
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/views/petitions/_other_business_details.html.erb
Flay: found 1 code duplications |
app/models/petition.rb : #by_most_recent_moderation_threshold_reached
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/domains/index.html.erb
Flay: found 1 code duplications |
app/models/petition.rb : #by_most_recent_response
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/shared/_messages.html.erb
Flay: found 1 code duplications |
app/models/petition.rb : #by_most_relevant_debate_date
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/application/_messages.html.erb
Flay: found 1 code duplications |
app/models/petition.rb : #by_oldest
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/application/_parliament_dissolution_warning.html.erb
Flay: found 1 code duplications |
app/models/petition.rb : #by_waiting_for_debate_longest
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/views/pages/home/_pending.html.erb
Flay: found 1 code duplications |
app/models/petition.rb : #by_waiting_for_response_longest
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/views/admin/shared/_header.html.erb
Flay: found 1 code duplications |
app/models/archived.rb : Archived##table_name_prefix
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/application/_header.html.erb
Flay: found 1 code duplications |
app/controllers/admin/user_sessions_controller.rb : Admin#status
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/invalidations/index.html.erb
Flay: found 1 code duplications |
app/controllers/admin/archived/debate_outcomes_controller.rb : Admin#debate_outcome_attributes
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/views/admin/tags/index.html.erb
Flay: found 1 code duplications |
app/controllers/admin/archived/debate_outcomes_controller.rb : Admin#debate_outcome_params
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/views/petition_mailer/gather_sponsors_for_petition.html.erb
Flay: found 1 code duplications |
app/controllers/admin/archived/debate_outcomes_controller.rb : Admin#fetch_debate_outcome
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/views/petition_mailer/gather_sponsors_for_petition.text.erb
Flay: found 1 code duplications |
app/controllers/admin/searches_controller.rb : Admin#signature_search?
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/rate_limits/_rate_limits.html.erb
Flay: found 1 code duplications |
app/models/statistics.rb : Statistics##connection
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/sites/_petitions.html.erb
Flay: found 1 code duplications |
app/models/statistics.rb : Statistics##select_rows
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/domains/_form.html.erb
Flay: found 1 code duplications |
app/controllers/admin/searches_controller.rb : Admin#petition_search?
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/archived/petition_mailer/notify_creator_of_debate_outcome.text.erb
Flay: found 1 code duplications |
app/models/country_petition_journal.rb : CountryPetitionJournal##signature_counts
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/archived/petition_mailer/notify_signer_of_debate_outcome.text.erb
Flay: found 1 code duplications |
app/models/country_petition_journal.rb : CountryPetitionJournal##increment_signature_count
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/controllers/trackers_controller.rb
«
annotate
»
Reek: found 2 code smells |
app/models/parliament.rb : Parliament##dissolution_message
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/petition_mailer/notify_creator_of_debate_outcome.text.erb
Flay: found 1 code duplications |
app/controllers/admin/archived/government_response_controller.rb : Admin#government_response_params
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/views/petition_mailer/notify_signer_of_debate_outcome.text.erb
Flay: found 1 code duplications |
app/controllers/admin/archived/government_response_controller.rb : Admin#fetch_government_response
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/views/archived/petition_mailer/notify_creator_of_debate_outcome.html.erb
Flay: found 1 code duplications |
app/jobs/notify_trending_ip_job.rb : NotifyTrendingIpJob#time_format
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/archived/petition_mailer/notify_signer_of_debate_outcome.html.erb
Flay: found 1 code duplications |
app/models/task.rb : Task##run
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/petition_mailer/notify_creator_of_debate_outcome.html.erb
Flay: found 1 code duplications |
app/models/parliament.rb : Parliament##dissolution_heading
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/petition_mailer/notify_signer_of_debate_outcome.html.erb
Flay: found 1 code duplications |
app/controllers/admin/rate_limits_controller.rb : Admin#find_rate_limit
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/models/archived/petition/email.rb
«
annotate
»
Reek: found 1 code smells Flay: found 1 code duplications |
app/controllers/admin/logs_controller.rb : Admin#fetch_logs
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/archived/petition_emails/_petition_action_email_petitioners.html.erb
Flay: found 1 code duplications |
app/controllers/admin/holidays_controller.rb : Admin#fetch_holiday
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/delete_petitions_job.rb
«
annotate
»
Reek: found 1 code smells |
app/controllers/admin/holidays_controller.rb : Admin#holiday_params
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/archived/petition_emails/edit.html.erb
Flay: found 1 code duplications |
app/controllers/admin/holidays_controller.rb : Admin#holiday_attributes
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/moderation_delays/new.html.erb
Flay: found 1 code duplications |
app/controllers/admin/rate_limits_controller.rb : Admin#rate_limit_attributes
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/rate_limits/_tabs.html.erb
Flay: found 1 code duplications |
app/controllers/admin/rate_limits_controller.rb : Admin#rate_limit_params
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/archived/petition_details/show.html.erb
Flay: found 1 code duplications |
app/jobs/notify_trending_domain_job.rb : NotifyTrendingDomainJob#time_format
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/email_duplicate_signatures_email_job.rb
«
annotate
»
Reek: found 1 code smells |
app/models/parliament.rb : Parliament##notification_cutoff_at
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/take_down/_petition_action_change_rejection_status.html.erb
Flay: found 1 code duplications |
app/models/parliament.rb : Parliament##dissolution_at
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/email_confirmation_for_signer_email_job.rb
«
annotate
»
Reek: found 1 code smells |
app/models/parliament.rb : Parliament##opened?
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/take_down/_petition_action_take_down.html.erb
Flay: found 1 code duplications |
app/models/parliament.rb : Parliament##opening_at
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/helpers/rejection_helper.rb
«
annotate
»
Reek: found 1 code smells |
app/models/parliament.rb : Parliament##government
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/rate_limits/_allowed_domains.html.erb
Flay: found 1 code duplications |
app/models/parliament.rb : Parliament##current
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/notify_creator_that_petition_is_published_email_job.rb
«
annotate
»
Reek: found 1 code smells |
app/models/parliament.rb : Parliament##archived
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/email_debate_scheduled_job.rb
«
annotate
»
Reek: found 1 code smells |
app/models/parliament.rb : Parliament##instance
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/rate_limits/_allowed_ips.html.erb
Flay: found 1 code duplications |
app/models/parliament.rb : Parliament##current_or_create
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/notify_creator_that_parliament_is_dissolving_job.rb
«
annotate
»
Reek: found 1 code smells |
app/models/constituency.rb : #example_postcodes
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/rate_limits/_blocked_domains.html.erb
Flay: found 1 code duplications |
app/models/constituency.rb : #query
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/notify_sponsor_that_petition_was_rejected_email_job.rb
«
annotate
»
Reek: found 1 code smells |
app/models/constituency.rb : #by_ons_code
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/rate_limits/_blocked_ips.html.erb
Flay: found 1 code duplications |
app/controllers/admin/archived/petitions_controller.rb : Admin#fetch_petitions
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/views/petitions/create/_replay_email_stage.html.erb
Flay: found 1 code duplications |
app/controllers/admin/archived/petitions_controller.rb : Admin#parliament_id
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/signatures/_email_form.html.erb
Flay: found 1 code duplications |
app/controllers/admin/archived/petitions_controller.rb : Admin#redirect_to_admin_hub
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/models/archived/note.rb
«
annotate
»
Reek: found 1 code smells |
app/controllers/admin/archived/petitions_controller.rb : Admin#redirect_to_show_page
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/models/email_requested_receipt.rb
«
annotate
»
Reek: found 1 code smells |
app/controllers/admin/archived/petitions_controller.rb : Admin#parliament_present?
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/archived/schedule_debate/_petition_action_debate_date.html.erb
Flay: found 1 code duplications |
app/models/country_petition_journal.rb : CountryPetitionJournal##reset_signature_count
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/mailers/application_mailer.rb
«
annotate
»
Reek: found 1 code smells |
app/models/country_petition_journal.rb : CountryPetitionJournal##decrement_signature_count
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/admin/_petition_action_debate_date.html.erb
Flay: found 1 code duplications |
app/models/country_petition_journal.rb : CountryPetitionJournal##last_signed_at
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/models/feedback.rb
«
annotate
»
Reek: found 1 code smells |
app/controllers/admin/archived/petitions_controller.rb : Admin#petition_id?
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/views/admin/admin/_petition_action_debate_outcome.html.erb
Flay: found 1 code duplications |
app/controllers/admin/archived/petitions_controller.rb : Admin#set_streaming_headers
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/jobs/email_threshold_response_job.rb
«
annotate
»
Reek: found 1 code smells |
app/models/country_petition_journal.rb : CountryPetitionJournal##unrecordable?
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/admin/_petition_action_email_petitioners.html.erb
Flay: found 1 code duplications |
app/controllers/admin/archived/petitions_controller.rb : Admin#set_file_headers
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/models/admin_user_session.rb
«
annotate
»
Reek: found 1 code smells |
app/controllers/admin/archived/petitions_controller.rb : Admin#render_csv
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/views/admin/admin/_petition_action_government_response.html.erb
Flay: found 1 code duplications |
app/models/petition.rb : #untagged_in_moderation
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/notify_sponsor_that_petition_is_published_email_job.rb
«
annotate
»
Reek: found 1 code smells |
app/models/holiday.rb : Holiday##easter?
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/controllers/ping_controller.rb
«
annotate
»
Reek: found 1 code smells |
app/models/petition.rb : #in_need_of_validating
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/admin/_petition_action_notes.html.erb
Flay: found 1 code duplications |
app/controllers/admin/petitions_controller.rb : Admin#resend
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/controllers/constituencies_controller.rb
«
annotate
»
Reek: found 1 code smells |
app/models/constituency_petition_journal.rb : ConstituencyPetitionJournal##update_all
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/admin/_petition_action_tags.html.erb
Flay: found 1 code duplications |
app/models/constituency_petition_journal.rb : ConstituencyPetitionJournal##older_than
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/notify_creator_that_petition_was_rejected_email_job.rb
«
annotate
»
Reek: found 1 code smells |
app/models/constituency_petition_journal.rb : ConstituencyPetitionJournal##ordered
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/gather_sponsors_for_petition_email_job.rb
«
annotate
»
Reek: found 1 code smells |
app/models/constituency_petition_journal.rb : ConstituencyPetitionJournal##signature_counts
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/petitions/index.html.erb
Flay: found 1 code duplications |
app/models/petition.rb : #grouping
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/petitions/search/_filter_nav.html.erb
Flay: found 1 code duplications |
app/models/petition.rb : #last_signed_at
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/domains/edit.html.erb
Flay: found 1 code duplications |
app/models/petition.rb : #signature_count_validated_at
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/email_petitioners_job.rb
«
annotate
»
Reek: found 1 code smells |
app/models/constituency_petition_journal.rb : ConstituencyPetitionJournal##increment_signature_count
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/domains/new.html.erb
Flay: found 1 code duplications |
app/models/constituency_petition_journal.rb : ConstituencyPetitionJournal##reset_signature_count
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/archived/email_debate_outcomes_job.rb
«
annotate
»
Reek: found 1 code smells |
app/models/petition.rb : #moderation_threshold_reached_at
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/invalidations/edit.html.erb
Flay: found 1 code duplications |
app/models/petition.rb : #moderation_near_overdue_at
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/validators/postcode_validator.rb
«
annotate
»
Reek: found 1 code smells |
app/models/petition.rb : #moderation_overdue_at
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/invalidations/new.html.erb
Flay: found 1 code duplications |
app/models/signature_logs.rb : SignatureLogs##find
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/notify_creator_of_validated_petition_being_stopped_job.rb
«
annotate
»
Reek: found 1 code smells |
app/models/constituency_petition_journal.rb : ConstituencyPetitionJournal##decrement_signature_count
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/tags/edit.html.erb
Flay: found 1 code duplications |
app/controllers/admin/tags_controller.rb : Admin#destroy_tag
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/archived/email_debate_scheduled_job.rb
«
annotate
»
Reek: found 1 code smells |
app/controllers/admin/tags_controller.rb : Admin#build_tag
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/archived/email_threshold_response_job.rb
«
annotate
»
Reek: found 1 code smells |
app/controllers/admin/tags_controller.rb : Admin#find_tag
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/tags/new.html.erb
Flay: found 1 code duplications |
app/controllers/admin/tags_controller.rb : Admin#find_tags
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/controllers/pages_controller.rb
«
annotate
»
Reek: found 1 code smells |
app/models/constituency_petition_journal.rb : ConstituencyPetitionJournal##with_signatures_for
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/archived/petition_mailer/notify_creator_of_threshold_response.text.erb
Flay: found 1 code duplications |
app/controllers/admin/domains_controller.rb : Admin#find_domain
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/petition_mailer/notify_creator_of_threshold_response.html.erb
Flay: found 1 code duplications |
app/controllers/admin/domains_controller.rb : Admin#fetch_domains
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/archived/deliver_petition_email_job.rb
«
annotate
»
Reek: found 1 code smells |
app/controllers/admin/domains_controller.rb : Admin#domain_attributes
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/petition_mailer/notify_creator_of_threshold_response.text.erb
Flay: found 1 code duplications |
app/controllers/admin/domains_controller.rb : Admin#build_domain
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/lib/job_logger.rb
«
annotate
»
Reek: found 1 code smells |
app/controllers/admin/archived/petition_emails_controller.rb : Admin#send_email_to_petitioners?
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/views/petition_mailer/notify_signer_of_threshold_response.html.erb
Flay: found 1 code duplications |
app/models/constituency_petition_journal.rb : ConstituencyPetitionJournal##last_signed_at
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/enqueue_petition_statistics_updates_job.rb
«
annotate
»
Reek: found 1 code smells |
app/models/constituency_petition_journal.rb : ConstituencyPetitionJournal##unrecordable?
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/petition_mailer/notify_signer_of_threshold_response.text.erb
Flay: found 1 code duplications |
app/controllers/admin/archived/petition_emails_controller.rb : Admin#feedback_signature
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/views/admin/archived/petition_tags/_petition_action_tags.html.erb
Flay: found 1 code duplications |
app/controllers/admin/archived/petition_emails_controller.rb : Admin#email_params
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/models/petition/email.rb
«
annotate
»
Reek: found 1 code smells Flay: found 1 code duplications |
app/controllers/admin/archived/petition_emails_controller.rb : Admin#fetch_email
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/mailers/feedback_mailer.rb
«
annotate
»
Reek: found 1 code smells |
app/controllers/admin/archived/petition_emails_controller.rb : Admin#build_email
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/views/admin/petition_tags/_petition_action_tags.html.erb
Flay: found 1 code duplications |
app/controllers/admin/archived/petition_emails_controller.rb : Admin#schedule_email_petitioners_job
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/jobs/email_debate_outcomes_job.rb
«
annotate
»
Reek: found 1 code smells |
app/controllers/admin/archived/petition_emails_controller.rb : Admin#send_preview_email?
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/jobs/sponsor_signed_email_on_threshold_email_job.rb
«
annotate
»
Reek: found 1 code smells |
app/controllers/admin/archived/petition_emails_controller.rb : Admin#send_preview_email
«
annotate
»
Saikuro: average complexity is 1.0 |
|
app/views/petitions/search/_results.html.erb
Flay: found 1 code duplications |
lib/health_check.rb : HealthCheck#self.checkup
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/notify_creator_of_sponsored_petition_being_stopped_job.rb
«
annotate
»
Reek: found 1 code smells |
app/controllers/archived/petitions_controller.rb : Archived#fetch_petitions
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/pages/home/_explanation_petitions.html.erb
Flay: found 1 code duplications |
app/controllers/archived/petitions_controller.rb : Archived#petition_id
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/sponsor_signed_email_below_threshold_email_job.rb
«
annotate
»
Reek: found 1 code smells |
app/controllers/archived/petitions_controller.rb : Archived#set_content_disposition
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/petition_details/show.html.erb
Flay: found 1 code duplications |
app/controllers/archived/petitions_controller.rb : Archived#csv_filename
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/models/note.rb
«
annotate
»
Reek: found 1 code smells |
app/controllers/archived/petitions_controller.rb : Archived#state_present?
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/notify_creator_that_moderation_is_delayed_job.rb
«
annotate
»
Reek: found 1 code smells |
app/controllers/archived/petitions_controller.rb : Archived#parliament_id
«
annotate
»
Saikuro: complexity is 1.0 |
|
lib/health_check_middleware.rb
«
annotate
»
Reek: found 1 code smells |
app/controllers/archived/petitions_controller.rb : Archived#archived_petition_facets
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/mailers/admin_mailer.rb
«
annotate
»
Reek: found 1 code smells |
app/controllers/archived/petitions_controller.rb : Archived#search_params
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/rate_limits/_form.html.erb
Flay: found 1 code duplications |
app/controllers/archived/petitions_controller.rb : Archived#valid_state?
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/jobs/petition_and_email_confirmation_for_sponsor_email_job.rb
«
annotate
»
Reek: found 1 code smells |
app/models/petition.rb : #signed_since
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/admin/sites/_form.html.erb
Flay: found 1 code duplications |
app/models/holiday.rb : Holiday##defaults
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/models/concerns/taggable.rb
«
annotate
»
Reek: found 1 code smells |
app/presenters/petition_csv_presenter.rb : PetitionCSVPresenter#self.timestamps
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/petitions/_open_petition_show.html.erb
Flay: found 1 code duplications |
app/presenters/petition_csv_presenter.rb : PetitionCSVPresenter#self.attributes
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/models/concerns/perishable_token_generator.rb
«
annotate
»
Reek: found 1 code smells |
app/presenters/petition_csv_presenter.rb : PetitionCSVPresenter#self.urls
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/views/petitions/_rejected_petition_show.html.erb
Flay: found 1 code duplications |
app/models/holiday.rb : Holiday##christmas?
«
annotate
»
Saikuro: complexity is 1.0 |
|
app/helpers/cache_helper.rb : #build
«
annotate
»
Saikuro: average complexity is 1.0 |
||
app/helpers/cache_helper.rb : #fragments
«
annotate
»
Saikuro: complexity is 1.0 |
||
app/models/holiday.rb : Holiday##instance
«
annotate
»
Saikuro: complexity is 1.0 |
||
app/helpers/cache_helper.rb : #reset_fragments
«
annotate
»
Saikuro: complexity is 1.0 |
||
app/helpers/cache_helper.rb : #load_yaml
«
annotate
»
Saikuro: complexity is 1.0 |
||
app/models/holiday.rb : Holiday##before_remove_const
«
annotate
»
Saikuro: complexity is 1.0 |
||
app/presenters/api_pagination_links_presenter.rb : ApiPaginationLinksPresenter#api_links_allowed_components
«
annotate
»
Saikuro: complexity is 1.0 |
||
app/presenters/petition_csv_presenter.rb : PetitionCSVPresenter#self.fields
«
annotate
»
Saikuro: complexity is 1.0 |
||
app/models/trending_ip.rb : TrendingIp##log!
«
annotate
»
Saikuro: complexity is 1.0 |
||
app/models/trending_ip.rb : TrendingIp##default_scope
«
annotate
»
Saikuro: complexity is 1.0 |
||
app/controllers/admin/invalidations_controller.rb : Admin#find_invalidation
«
annotate
»
Saikuro: complexity is 1.0 |
||
app/helpers/cache_helper.rb : Keys#dependencies
«
annotate
»
Saikuro: complexity is 1.0 |
||
app/helpers/cache_helper.rb : Keys#keys
«
annotate
»
Saikuro: complexity is 1.0 |
||
app/helpers/cache_helper.rb : Keys#fragment_keys
«
annotate
»
Saikuro: complexity is 1.0 |
||
app/helpers/cache_helper.rb : Keys#fragments
«
annotate
»
Saikuro: complexity is 1.0 |
||
app/helpers/cache_helper.rb : Keys#version
«
annotate
»
Saikuro: complexity is 1.0 |
||
app/controllers/admin/parliaments_controller.rb : Admin#archive_petitions?
«
annotate
»
Saikuro: complexity is 1.0 |
||
app/controllers/admin/parliaments_controller.rb : Admin#schedule_closure?
«
annotate
»
Saikuro: complexity is 1.0 |
||
app/controllers/admin/invalidations_controller.rb : Admin#find_invalidations
«
annotate
»
Saikuro: complexity is 1.0 |
||
app/controllers/admin/invalidations_controller.rb : Admin#redirect_to_index_url
«
annotate
»
Saikuro: average complexity is 1.0 |
||
app/models/trending_domain.rb : TrendingDomain##log!
«
annotate
»
Saikuro: complexity is 1.0 |
||
app/controllers/admin/parliaments_controller.rb : Admin#email_creators?
«
annotate
»
Saikuro: complexity is 1.0 |
||
app/helpers/cache_helper.rb : Keys#build
«
annotate
»
Saikuro: complexity is 1.0 |
||
app/helpers/cache_helper.rb : Keys#cache_key
«
annotate
»
Saikuro: complexity is 1.0 |
||
app/helpers/cache_helper.rb : Keys#digest
«
annotate
»
Saikuro: complexity is 1.0 |
||
app/helpers/cache_helper.rb : Keys#digest_keys
«
annotate
»
Saikuro: complexity is 1.0 |
||
app/models/trending_domain.rb : TrendingDomain##default_scope
«
annotate
»
Saikuro: complexity is 1.0 |
||
app/models/petition.rb : #selectable
«
annotate
»
Saikuro: complexity is 1.0 |
||
app/controllers/admin/parliaments_controller.rb : Admin#parliament_params
«
annotate
»
Saikuro: complexity is 1.0 |
||
app/controllers/admin/invalidations_controller.rb : Admin#invalidation_attributes
«
annotate
»
Saikuro: complexity is 1.0 |
||
app/controllers/admin/invalidations_controller.rb : Admin#build_invalidation
«
annotate
»
Saikuro: complexity is 1.0 |
||
app/helpers/cache_helper.rb : Dependencies#last_government_response_updated_at
«
annotate
»
Saikuro: complexity is 1.0 |
||
app/helpers/cache_helper.rb : Dependencies#last_debate_outcome_updated_at
«
annotate
»
Saikuro: complexity is 1.0 |
||
app/controllers/admin/trending_domains_controller.rb : Admin#fetch_trending_domains
«
annotate
»
Saikuro: complexity is 1.0 |
||
app/controllers/admin/trending_ips_controller.rb : Admin#fetch_trending_ips
«
annotate
»
Saikuro: complexity is 1.0 |
||
app/helpers/cache_helper.rb : Dependencies#cache_for
«
annotate
»
Saikuro: complexity is 1.0 |
||
app/helpers/cache_helper.rb : Dependencies#last_signature_at
«
annotate
»
Saikuro: complexity is 1.0 |
||
app/models/petition.rb : #stoppable
«
annotate
»
Saikuro: complexity is 1.0 |
||
app/models/petition.rb : #response_threshold_reached
«
annotate
»
Saikuro: average complexity is 1.0 |
||
app/controllers/admin/parliaments_controller.rb : Admin#archive_parliament?
«
annotate
»
Saikuro: complexity is 1.0 |
||
app/models/petition.rb : #show
«
annotate
»
Saikuro: complexity is 1.0 |
||
app/models/petition.rb : #respondable
«
annotate
»
Saikuro: complexity is 1.0 |
||
lib/arel_extensions.rb : Contained#operator
«
annotate
»
Saikuro: complexity is 1.0 |
||
app/models/feedback_signature.rb : #name
«
annotate
»
Saikuro: complexity is 1.0 |
||
lib/arel_extensions.rb : Contains#operator
«
annotate
»
Saikuro: complexity is 1.0 |
||
lib/arel_extensions.rb : Overlaps#operator
«
annotate
»
Saikuro: complexity is 1.0 |
||
app/models/signature.rb : Signature#uk_citizenship
«
annotate
»
Reek: found 1 code smells |
||
app/models/moderation_delay.rb : ModerationDelay#body
«
annotate
»
Reek: found 1 code smells |
||
app/models/moderation_delay.rb : ModerationDelay#subject
«
annotate
»
Reek: found 1 code smells |
||
app/models/feedback_signature.rb : FeedbackSignature#rfc2822
«
annotate
»
Reek: found 1 code smells |
Generated on 2019-09-22 14:30:40 -0400