Class: Rigor::CLI::FileProtection

Inherits:
Data
  • Object
show all
Defined in:
lib/rigor/cli/protection_report.rb

Overview

ADR-63 Tier 1 — aggregates per-file Inference::ProtectionScanner results into a project-level protection report: the protected ratio, the per-file breakdown, and a ranked “add a type here” list keyed by the method called on an unprotected (‘Dynamic`) receiver — the highest-traffic untyped dispatches, where a receiver annotation buys the most catching power.

Instance Attribute Summary collapse

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



11
12
13
# File 'lib/rigor/cli/protection_report.rb', line 11

def path
  @path
end

#protected_countObject (readonly)

Returns the value of attribute protected_count

Returns:

  • (Object)

    the current value of protected_count



11
12
13
# File 'lib/rigor/cli/protection_report.rb', line 11

def protected_count
  @protected_count
end

#ratioObject (readonly)

Returns the value of attribute ratio

Returns:

  • (Object)

    the current value of ratio



11
12
13
# File 'lib/rigor/cli/protection_report.rb', line 11

def ratio
  @ratio
end

#unprotected_countObject (readonly)

Returns the value of attribute unprotected_count

Returns:

  • (Object)

    the current value of unprotected_count



11
12
13
# File 'lib/rigor/cli/protection_report.rb', line 11

def unprotected_count
  @unprotected_count
end