Class: CC::Analyzer::Formatters::HTMLFormatter
- Defined in:
- lib/cc/analyzer/formatters/html_formatter.rb
Overview
rubocop: disable Metrics/ClassLength
Defined Under Namespace
Classes: Issue, IssueCollection, Location, ReportTemplate, SourceFile
Constant Summary collapse
- LANGUAGES =
Hash.new { |_, ext| ext }. merge( # abap # ada "appraisals" => "ruby", "as" => "actionscript", "asm" => "nasm", "bas" => "basic", # c "c++" => "cpp", "capfile" => "ruby", "cc" => "cpp", "cfc" => "markup", "cfm" => "markup", "coffee" => "coffeescript", "cp" => "cpp", # cpp "cr" => "crystal", "cs" => "csharp", "css" => %w[css css-extras], "cu" => "cpp", "cxx" => "cpp", # d # dart # diff "dockerfile" => "docker", "dpr" => "pascal", "erl" => "erlang", "ex" => "elixir", "f" => "fortran", "f90" => "fortran", "f95" => "fortran", "feature" => "gherkin", "for" => "fortran", "fs" => "fsharp", "fsi" => "fsharp", "fsscript" => "fsharp", "fsx" => "fsharp", "gemfile" => "ruby", "gemspec" => "ruby", # glsl # go # groovy "gvy" => "groovy", "h" => "c", "h++" => "cpp", # haml # handlebars "hbr" => "handlebars", "hh" => "cpp", "hpp" => "cpp", "hs" => "haskell", "htm" => "markup", "html" => "markup", "hx" => "haxe", "hxml" => "haxe", "icn" => "icon", "ijs" => "j", # ini "iol" => "jolie", # java "jl" => "julia", "js" => "javascript", # json # jsx "kt" => "kotlin", "kts" => "kotlin", # less "lhs" => "haskell", "lol" => "lolcode", "lols" => "lolcode", "ls" => "livescript", # lua "m" => "objective-c", "mab" => "ruby", # makefile # markdown "md" => "markdown", # mel "mkd" => "markdown", "ml" => "ocaml", "mli" => "ocaml", "mm" => "objective-c", # nim # nix "nsi" => "nsis", "ol" => "jolie", # oz "pas" => "pascal", "patch" => "diff", "pde" => "processing", "php" => %w[php php-extras], "php3" => %w[php php-extras], "php4" => %w[php php-extras], "php5" => %w[php php-extras], "phtml" => %w[php php-extras], "pl" => "perl", "pp" => "puppet", "prawn" => "ruby", "pro" => "prolog", # properties # pure "py" => "python", "py3" => "python", "pyw" => "python", "q" => "qore", "qm" => "qore", "qtest" => "qore", # r "rake" => "ruby", "rakefile" => "ruby", "rantfile" => "ruby", "rb" => "ruby", "rbw" => "ruby", "rjs" => "ruby", "rpdf" => "ruby", "rs" => "rust", "rst" => "rest", "ru" => "ruby", "rxml" => "ruby", # sass "sc" => "scala", # scala "scs" => "scheme", # scss "shader" => "glsl", # sql "ss" => "scheme", "st" => "smalltalk", "styl" => "stylus", # swift # tcl "template" => "json", "tex" => "latex", # textile "tmproj" => "markup", "tpl" => "smarty", "ts" => "typescript", "v" => "verilog", "vagrantfile" => "ruby", "vhd" => "vhdl", # vim "xaml" => "markup", "xhtml" => "markup", "xml" => "markup", # yaml "yaws" => "erlang", "yml" => "yaml", ).freeze
Constants inherited from Formatter
Formatter::InvalidFormatterError
Instance Method Summary collapse
Methods inherited from Formatter
#close, #engine_running, #initialize, #started, #write
Constructor Details
This class inherits a constructor from CC::Analyzer::Formatters::Formatter
Instance Method Details
#failed(_) ⇒ Object
395 396 397 |
# File 'lib/cc/analyzer/formatters/html_formatter.rb', line 395 def failed(_) exit 1 end |
#finished ⇒ Object
391 392 393 |
# File 'lib/cc/analyzer/formatters/html_formatter.rb', line 391 def finished puts ReportTemplate.new(issues, @filesystem).render end |