princelab/msplinter

View on GitHub

Showing 50 of 78 total issues

Method carbonyl_oxygen_dump has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      ::Rule_names << def carbonyl_oxygen_dump(only_uniqs: true, fragment_adduct_state: :as_published)
        fragment_sets = []
        only_uniqs = true
        fragment = lambda do |carbon, oxygen, carbon_nbr|
          appendage = oxygen.atoms.find {|a| a.el != :C }
Severity: Minor
Found in lib/rubabel/molecule/fragmentable/tamil_rules.rb - About 1 hr to fix

    Method jasms_2002_2_a1 has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

          ::Rule_names << def jasms_2002_2_a1(only_uniqs: true, fragment_adduct_state: :as_published)
            fragment_sets = []
            fragment = lambda do |*arr|
              # duplicate
              (nmol, (base_c, alcohol_carbon, alcohol_oxygen, carbonyl_carbon, carbonyl_oxygen, nitrogen, ring_carbon)) = self.dup_molecule(arr)
    Severity: Minor
    Found in lib/rubabel/molecule/fragmentable/asms_2002_scheme2.rb - About 1 hr to fix

      Method jasms_2002_2_e2_bprime_water_loss has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

            ::Rule_names << def jasms_2002_2_e2_bprime_water_loss(only_uniqs: true, fragment_adduct_state: :as_published)
              fragment_sets = []
              fragment = lambda do |*arr|
                # duplicate
                (nmol, (alcohol_oxygen, c1, c2, nitrogen)) = self.dup_molecule(arr)
      Severity: Minor
      Found in lib/rubabel/molecule/fragmentable/asms_2002_scheme2.rb - About 1 hr to fix

        Method jasms_2002_5_e2_water_loss has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

              ::Rule_names << def jasms_2002_5_e2_water_loss(only_uniqs: true, fragment_adduct_state: :as_published)
                fragment_sets = []
                fragment = lambda do |*arr|
                  # duplicate
                  (nmol, (c1, alcohol_carbon, alcohol_oxygen, c3, c4, nitrogen)) = self.dup_molecule(arr)
        Severity: Minor
        Found in lib/rubabel/molecule/fragmentable/asms_2002_scheme3-5.rb - About 1 hr to fix

          Method jasms_2002_2_c2a has 29 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                ::Rule_names << def jasms_2002_2_c2a(only_uniqs: true, fragment_adduct_state: :as_published)
                  fragment_sets = []
                  fragment = lambda do |*arr|
                    # duplicate
                    (nmol, (nitrogen, carbonyl_carbon, carbonyl_oxygen, alcohol_carbon, alcohol_oxygen)) = self.dup_molecule(arr)
          Severity: Minor
          Found in lib/rubabel/molecule/fragmentable/asms_2002_scheme2.rb - About 1 hr to fix

            Method jasms_2002_scheme1_c_e2bprime_water_loss has 29 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                  ::Rule_names << def jasms_2002_scheme1_c_e2bprime_water_loss(only_uniqs: true, fragment_adduct_state: :as_published)
                    fragment_sets = []
                    fragment = lambda do |*arr|
                      #duplications and mapping
                      (nmol,(ring_carbon2, alcohol_carbon, oxygen, nitrogen)) = self.dup_molecule(arr)
            Severity: Minor
            Found in lib/rubabel/molecule/fragmentable/asms_2002_scheme1.rb - About 1 hr to fix

              Method jasms_2002_scheme1_c_e2bprime has 29 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                    ::Rule_names << def jasms_2002_scheme1_c_e2bprime(only_uniqs: true, fragment_adduct_state: :as_published)
                      fragment_sets = []
                      fragment = lambda do |*arr|
                        #duplications and mapping
                        (nmol,(nitrogen, carbon, leaving_oxygen)) = self.dup_molecule(arr)
              Severity: Minor
              Found in lib/rubabel/molecule/fragmentable/asms_2002_scheme1.rb - About 1 hr to fix

                Method jasms_2002_2_e1_b has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                      ::Rule_names << def jasms_2002_2_e1_b(only_uniqs: true, fragment_adduct_state: :as_published)
                        fragment_sets = []
                        fragment = lambda do |*arr|
                          # duplicate
                          (nmol, (alcohol_oxygen, nitrogen, attacked_carbon, leaving_oxygen)) = self.dup_molecule(arr)
                Severity: Minor
                Found in lib/rubabel/molecule/fragmentable/asms_2002_scheme2.rb - About 1 hr to fix

                  Method jasms_2002_scheme1_c_e2aprime has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                        ::Rule_names << def jasms_2002_scheme1_c_e2aprime(only_uniqs: true, fragment_adduct_state: :as_published)
                          fragment_sets = []
                          fragment = lambda do |*arr|
                            #duplications and mapping
                            (nmol,(nitrogen, branch_carbon, leaving_oxygen, cyclized_oxygen)) = self.dup_molecule(arr)
                  Severity: Minor
                  Found in lib/rubabel/molecule/fragmentable/asms_2002_scheme1.rb - About 1 hr to fix

                    Method jasms_2002_2_e1_bprime has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                          ::Rule_names << def jasms_2002_2_e1_bprime(only_uniqs: true, fragment_adduct_state: :as_published)
                            fragment_sets = []
                            fragment = lambda do |*arr|
                              # duplicate
                              (nmol, (alcohol_oxygen, attacked_carbon, carbon_linker, nitrogen)) = self.dup_molecule(arr)
                    Severity: Minor
                    Found in lib/rubabel/molecule/fragmentable/asms_2002_scheme2.rb - About 1 hr to fix

                      Method jasms_2002_2_e2_bprime_heterocyclic_loss has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                            ::Rule_names << def jasms_2002_2_e2_bprime_heterocyclic_loss(only_uniqs: true, fragment_adduct_state: :as_published)
                              fragment_sets = []
                              fragment = lambda do |*arr|
                                # duplicate
                                (nmol, (nitrogen, ring_carbon, alcohol_carbon, alcohol_oxygen)) = self.dup_molecule(arr)
                      Severity: Minor
                      Found in lib/rubabel/molecule/fragmentable/asms_2002_scheme2.rb - About 1 hr to fix

                        Method jasms_2002_3_b2 has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                              ::Rule_names << def jasms_2002_3_b2(only_uniqs: true, fragment_adduct_state: :as_published)
                                fragment_sets = []
                                fragment = lambda do |*arr|
                                  # duplicate
                                  (nmol, (alcc1, alco1, alcc2, alco2)) = self.dup_molecule(arr)
                        Severity: Minor
                        Found in lib/rubabel/molecule/fragmentable/asms_2002_scheme3-5.rb - About 1 hr to fix

                          Method jasms_2002_scheme1_c_e1_abprimeprime_water_loss has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                ::Rearrangements << def jasms_2002_scheme1_c_e1_abprimeprime_water_loss(only_uniqs: true, fragment_adduct_state: :as_published)
                                  fragment_sets = []
                                  fragment = lambda do |*arr|
                                    #duplications and mapping
                                    (nmol,(carbon_linker, alcohol_carbon, oxygen, nitrogen)) = self.dup_molecule(arr)
                          Severity: Minor
                          Found in lib/rubabel/molecule/fragmentable/asms_2002_scheme1.rb - About 1 hr to fix

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

                                  ::Rule_names << def jasms_2002_4_g2a(only_uniqs: true, fragment_adduct_state: :as_published)
                                    fragment_sets = []
                                    fragment = lambda do |*arr|
                                      # duplicate
                                      (nmol, (alcohol_oxygen, alcohol_carbon, acc1, aco1)) = self.dup_molecule(arr)
                            Severity: Minor
                            Found in lib/rubabel/molecule/fragmentable/asms_2002_scheme3-5.rb - About 1 hr to fix

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

                                    ::Rule_names << def jasms_2002_5_e2(only_uniqs: true, fragment_adduct_state: :as_published)
                                      fragment_sets = []
                                      fragment = lambda do |*arr|
                                        # duplicate
                                        (nmol, (nitrogen, carbonyl, carbonyl_oxygen, c2)) = self.dup_molecule(arr)
                              Severity: Minor
                              Found in lib/rubabel/molecule/fragmentable/asms_2002_scheme3-5.rb - About 1 hr to fix

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

                                      ::Rule_names << def jasms_2002_4_g1(only_uniqs: true, fragment_adduct_state: :as_published)
                                        fragment_sets = []
                                        fragment = lambda do |*arr|
                                          # duplicate
                                          (nmol, (alcohol_oxygen, alcohol_carbon, c1)) = self.dup_molecule(arr)
                                Severity: Minor
                                Found in lib/rubabel/molecule/fragmentable/asms_2002_scheme3-5.rb - About 1 hr to fix

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

                                        ::Rule_names << def jasms_2002_2_f1(only_uniqs: true, fragment_adduct_state: :as_published)
                                          fragment_sets = []
                                          fragment = lambda do |*arr|
                                            # duplicate
                                            (nmol, (nitrogen, carbonyl, alpha_carbon, alcohol_oxygen)) = self.dup_molecule(arr)
                                  Severity: Minor
                                  Found in lib/rubabel/molecule/fragmentable/asms_2002_scheme2.rb - About 1 hr to fix

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

                                          ::Rule_names << def jasms_2002_3_b2_formaldehyde_loss(only_uniqs: true, fragment_adduct_state: :as_published)
                                            fragment_sets = []
                                            fragment = lambda do |*arr|
                                              # duplicate
                                              (nmol, (alcohol_oxygen, alcohol_carbon, link_carbon)) = self.dup_molecule(arr)
                                    Severity: Minor
                                    Found in lib/rubabel/molecule/fragmentable/asms_2002_scheme3-5.rb - About 1 hr to fix

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

                                            ::Rearrangements << def jasms_2002_2_f2_bprime_water_loss(only_uniqs: true, fragment_adduct_state: :as_published)
                                              fragment_sets = []
                                              fragment = lambda do |*arr|
                                                # duplicate
                                                (nmol, (linked_carbon, alcohol_carbon, oxygen)) = self.dup_molecule(arr)
                                      Severity: Minor
                                      Found in lib/rubabel/molecule/fragmentable/asms_2002_scheme2.rb - About 1 hr to fix

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

                                              ::Rule_names << def jasms_2002_3_b2_water_loss(only_uniqs: true, fragment_adduct_state: :as_published)
                                                fragment_sets = []
                                                fragment = lambda do |*arr|
                                                  # duplicate
                                                  (nmol, (alcohol_oxygen, alcohol_carbon, nitrogen)) = self.dup_molecule(arr)
                                        Severity: Minor
                                        Found in lib/rubabel/molecule/fragmentable/asms_2002_scheme3-5.rb - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language