rubinius/rubinius

View on GitHub

Showing 1,321 of 1,541 total issues

Avoid too many return statements within this method.
Open

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

    Avoid too many return statements within this method.
    Open

          return @begin.kind_of?(Float) ? last_true.to_f : last_true
    Severity: Major
    Found in core/range.rb - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

            return 0.0
      Severity: Major
      Found in core/float.rb - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

              return include?(index) ? index.dup : nil
        Severity: Major
        Found in core/string.rb - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                return finish if needle_size == 0
          Severity: Major
          Found in core/string.rb - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                  return if size > @num_bytes
            Severity: Major
            Found in core/string.rb - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                  return path
              Severity: Major
              Found in core/file.rb - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                        return split_characters(string, pattern, limited && limit, tail_empty)
                Severity: Major
                Found in core/splitter.rb - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                      return @data.compare_bytes(other.__data__, @num_bytes, other.bytesize) == 0
                  Severity: Major
                  Found in core/string.rb - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                return split_on_string(string, pattern, trim_end)
                    Severity: Major
                    Found in core/splitter.rb - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                          return false unless POSIX.access(orig, Constants::R_OK)
                      Severity: Major
                      Found in core/file.rb - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                              return if index < 0 or index > @num_bytes
                        Severity: Major
                        Found in core/string.rb - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                              return nil
                          Severity: Major
                          Found in core/string.rb - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                  return path.byteslice(0, idx - 1)
                            Severity: Major
                            Found in core/file.rb - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                    return path unless path.suffix? slash
                              Severity: Major
                              Found in core/file.rb - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                    return if str.size > size
                                Severity: Major
                                Found in core/string.rb - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                        return nil if start < 0 || start > size
                                  Severity: Major
                                  Found in core/string.rb - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                          return if @num_bytes == 0
                                    Severity: Major
                                    Found in core/string.rb - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                            return "" if start == size
                                      Severity: Major
                                      Found in core/string.rb - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                              return self[index]
                                        Severity: Major
                                        Found in core/string.rb - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language