class

Rails::CodeStatistics

rails latest stable - Superclass: Object

Class not available on this version

This class is only available on newer versions. The first available version (v8.0.0) is shown here.

No documentation available for this class.

Constants

DIRECTORIES = [\n%w(Controllers app/controllers),\n%w(Helpers app/helpers),\n%w(Jobs app/jobs),\n%w(Models app/models),\n%w(Mailers app/mailers),\n%w(Mailboxes app/mailboxes),\n%w(Channels app/channels),\n%w(Views app/views),\n%w(JavaScripts app/assets/javascripts),\n%w(Stylesheets app/assets/stylesheets),\n%w(JavaScript app/javascript),\n%w(Libraries lib/),\n%w(APIs app/apis),\n%w(Controller\\ tests test/controllers),\n%w(Helper\\ tests test/helpers),\n%w(Job\\ tests test/jobs),\n%w(Model\\ tests test/models),\n%w(Mailer\\ tests test/mailers),\n%w(Mailbox\\ tests test/mailboxes),\n%w(Channel\\ tests test/channels),\n%w(Integration\\ tests test/integration),\n%w(System\\ tests test/system),\n]

HEADERS = { lines: " Lines", code_lines: " LOC", classes: "Classes", methods: "Methods" }

TEST_TYPES = ["Controller tests",\n"Helper tests",\n"Model tests",\n"Mailer tests",\n"Mailbox tests",\n"Channel tests",\n"Job tests",\n"Integration tests",\n"System tests"]

Files

  • railties/lib/rails/code_statistics.rb