Class: Solidstats::DashboardController

Inherits:
ApplicationController show all
Defined in:
app/controllers/solidstats/dashboard_controller.rb

Constant Summary collapse

AUDIT_CACHE_FILE =
Rails.root.join("tmp", "solidstats_audit.json")
TODO_CACHE_FILE =
Rails.root.join("tmp", "solidstats_todos.json")
AUDIT_CACHE_HOURS =

Configure how many hours before refreshing

12

Instance Method Summary collapse

Instance Method Details

#indexObject



7
8
9
10
11
12
13
# File 'app/controllers/solidstats/dashboard_controller.rb', line 7

def index
  @audit_output = fetch_audit_output
  @rubocop_output = "JSON.parse(`rubocop --format json`)"
  @todo_items = fetch_todo_items
  @todo_stats = calculate_todo_stats(@todo_items)
  @coverage = "read_coverage_percent"
end