Sha256: 83fa9d22311389702191d3a079b2581d716cba94e3cab70fe741039c443fef1a

Contents?: true

Size: 545 Bytes

Versions: 9

Compression:

Stored size: 545 Bytes

Contents

module MetricFu
  class MetricFlay < Metric
    def name
      :flay
    end

    def default_run_options
      { dirs_to_flay: MetricFu::Io::FileSystem.directory("code_dirs"),
        # MetricFu has been setting the minimum score as 100 for
        # a long time. This is a really big number, considering
        # the default is 16. Setting it to nil to use the Flay default.
        minimum_score: nil,
      }
    end

    def has_graph?
      true
    end

    def enable
      super
    end

    def activate
      super
    end
  end
end

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
metric_fu-4.13.0 lib/metric_fu/metrics/flay/metric.rb
fastruby-metric_fu-5.0.0 lib/metric_fu/metrics/flay/metric.rb
code_metric_fu-4.14.4 lib/metric_fu/metrics/flay/metric.rb
code_metric_fu-4.14.3 lib/metric_fu/metrics/flay/metric.rb
code_metric_fu-4.14.2 lib/metric_fu/metrics/flay/metric.rb
code_metric_fu-4.14.1 lib/metric_fu/metrics/flay/metric.rb
code_metric_fu-4.14.0 lib/metric_fu/metrics/flay/metric.rb
metric_fu-4.12.0 lib/metric_fu/metrics/flay/metric.rb
metric_fu-4.11.4 lib/metric_fu/metrics/flay/metric.rb