lib/attractor/value.rb in attractor-2.3.0 vs lib/attractor/value.rb in attractor-2.4.0
- old
+ new
@@ -17,9 +17,13 @@
def current_commit
history&.first&.first
end
+ def score
+ @complexity * @churn
+ end
+
def to_s
format("%-64s%8.1f%8i", @file_path, @complexity, @churn)
end
def to_h