versioneye/naturalsorter

View on GitHub

Showing 83 of 87 total issues

Avoid too many return statements within this method.
Open

    return 1
Severity: Major
Found in lib/version_tag_recognizer.rb - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

        return true if self.pre?(value)
    Severity: Major
    Found in lib/version_tag_recognizer.rb - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

            return value.gsub(/\.snapshot.*$/i, "")
      Severity: Major
      Found in lib/version_tag_recognizer.rb - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

            return false
        Severity: Major
        Found in lib/version_tag_recognizer.rb - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                  return A_STABILITY_RC
          Severity: Major
          Found in lib/version_tag_recognizer.rb - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                    return A_STABILITY_BETA
            Severity: Major
            Found in lib/version_tag_recognizer.rb - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                  return -1 if am && bm && am[1].eql?(bm[1])
              Severity: Major
              Found in lib/versioncmp.rb - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                    return  1 if ( part2.eql?("0") && part1.to_s.match(/^[1-9]+[-_a-zA-Z]+/) )
                Severity: Major
                Found in lib/versioncmp.rb - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                      return  1 if ( pm1 && pm2 && pm2[1].eql?(part1) &&  VersionTagRecognizer.stable?(pm2[2]) )
                  Severity: Major
                  Found in lib/versioncmp.rb - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                        return 1 if try_to_i_bigger( pm1, pm2, part2 )
                    Severity: Major
                    Found in lib/versioncmp.rb - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                            return value.gsub(/\.[\w-]*pre.*$/i, "")
                      Severity: Major
                      Found in lib/version_tag_recognizer.rb - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                return A_STABILITY_PRE
                        Severity: Major
                        Found in lib/version_tag_recognizer.rb - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                  return A_STABILITY_ALPHA
                          Severity: Major
                          Found in lib/version_tag_recognizer.rb - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                return  1 if b_val.length > a_val.length && b_val.to_s.match(/\A#{a_val}-BETA.*/i)
                            Severity: Major
                            Found in lib/versioncmp.rb - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                  return  1 if b_val.length > a_val.length && b_val.to_s.match(/\A#{a_val}-rc.*/i)
                              Severity: Major
                              Found in lib/versioncmp.rb - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                    return -1 if ( part2.eql?("0") && part1.to_s.match(/^[a-zA-Z]+/) )
                                Severity: Major
                                Found in lib/versioncmp.rb - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                      return  1 if am && bm && am[1].eql?(bm[1])
                                  Severity: Major
                                  Found in lib/versioncmp.rb - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                        return  1 if ( part1.match(/\A[0-9]+\z/) && !part2.match(/\A[0-9]+\z/) )
                                    Severity: Major
                                    Found in lib/versioncmp.rb - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                          return  1 if try_to_i_bigger( pm1, pm2, part2 )
                                      Severity: Major
                                      Found in lib/versioncmp.rb - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                            return value
                                        Severity: Major
                                        Found in lib/version_tag_recognizer.rb - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language