sanger/sequencescape

View on GitHub
lib/tasks/limber_dev.rake

Summary

Maintainability
Test Coverage
F
38%

Complex method namespace(limber)::namespace(dev)::namespace(setup)::task#gbs_submission (31.8)
Open

      task gbs_submission: ['limber:dev:setup:gbs'] do
        plates = Purpose.find_by(name: 'GBS Stock').plates.order(id: :desc).limit(4)
        template = SubmissionTemplate.find_by!(name: 'Limber-Htp - GBS')
        plates.each do |plate|
          order =
Severity: Minor
Found in lib/tasks/limber_dev.rake by flog

Flog calculates the ABC score for methods. The ABC score is based on assignments, branches (method calls), and conditions.

You can read more about ABC metrics or the flog tool

Complex method namespace(limber)::namespace(dev)::namespace(setup)::task#wgs_tag_set (26.3)
Open

      task wgs_tag_set: ['limber:dev:env_check', :environment] do
        ('A'..'D').each_with_index do |set, index|
          ["pWGS UDI tag layout v2 #{set}", "TS_pWGS#{set}_UDI96"].each_with_index do |template_name, idx|
            next if TagLayoutTemplate.find_by(name: template_name)

Severity: Minor
Found in lib/tasks/limber_dev.rake by flog

Flog calculates the ABC score for methods. The ABC score is based on assignments, branches (method calls), and conditions.

You can read more about ABC metrics or the flog tool

Complex method namespace(limber)::namespace(dev)::namespace(setup)::task#gbs_tag_set (24.4)
Open

      task gbs_tag_set: ['limber:dev:env_check', :environment] do
        next if TagLayoutTemplate.find_by(name: 'GbS Tag Set A')

        ('A'..'D').each_with_index do |set, index|
          tg =
Severity: Minor
Found in lib/tasks/limber_dev.rake by flog

Flog calculates the ABC score for methods. The ABC score is based on assignments, branches (method calls), and conditions.

You can read more about ABC metrics or the flog tool

There are no issues that match your filters.

Category
Status