class RubyCritic::Generator::Html::CodeIndex
def file_name
def file_name 'code_index.html' end
def initialize(analysed_modules)
def initialize(analysed_modules) @analysed_modules = analysed_modules set_header_links if Config.compare_branches_mode? end
def render
def render index_body = TEMPLATE.result(base_binding) LAYOUT_TEMPLATE.result(base_binding { index_body }) end
def set_header_links
def set_header_links @base_path = code_index_path(Config.base_root_directory, file_name) @feature_path = code_index_path(Config.feature_root_directory, file_name) @build_path = code_index_path(Config.compare_root_directory, file_name) end