cypriss/mutations

View on GitHub

Showing 47 of 47 total issues

Avoid too many return statements within this method.
Open

      return [data, :max] if options[:max] && data > options[:max]
Severity: Major
Found in lib/mutations/integer_filter.rb - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

              return [nil, :before]
    Severity: Major
    Found in lib/mutations/time_filter.rb - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

              return [data, nil]
      Severity: Major
      Found in lib/mutations/model_filter.rb - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

              return [data, :max] if options[:max] && data > options[:max]
        Severity: Major
        Found in lib/mutations/float_filter.rb - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                return [data, :min] if options[:min] && data < options[:min]
          Severity: Major
          Found in lib/mutations/integer_filter.rb - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                      return [nil, :before]
            Severity: Major
            Found in lib/mutations/date_filter.rb - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                      return [res, nil] unless res.nil?
              Severity: Major
              Found in lib/mutations/boolean_filter.rb - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                      return [data, :max_length] if options[:max_length] && data.length > options[:max_length]
                Severity: Major
                Found in lib/mutations/string_filter.rb - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                          return [data, :size] if data.size > options[:size]
                  Severity: Major
                  Found in lib/mutations/file_filter.rb - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                          return [data, :model]
                    Severity: Major
                    Found in lib/mutations/model_filter.rb - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                return [data, nil]
                      Severity: Major
                      Found in lib/mutations/string_filter.rb - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                return [data, :max_length] if options[:max_length] && data.length > options[:max_length]
                        Severity: Major
                        Found in lib/mutations/array_filter.rb - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                    return [nil, :date]
                          Severity: Major
                          Found in lib/mutations/date_filter.rb - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                      return [data, :integer]
                            Severity: Major
                            Found in lib/mutations/integer_filter.rb - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                      return [data, :boolean]
                              Severity: Major
                              Found in lib/mutations/boolean_filter.rb - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                          return [nil, :after]
                                Severity: Major
                                Found in lib/mutations/time_filter.rb - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                        return [data, :in] if options[:in] && !options[:in].include?(data)
                                  Severity: Major
                                  Found in lib/mutations/integer_filter.rb - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                          return [data, :in] if options[:in] && !options[:in].include?(data)
                                    Severity: Major
                                    Found in lib/mutations/string_filter.rb - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                              return [nil, :time]
                                      Severity: Major
                                      Found in lib/mutations/time_filter.rb - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                return [nil, :date]
                                        Severity: Major
                                        Found in lib/mutations/date_filter.rb - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language