Skip to content

Instantly share code, notes, and snippets.

@daveworth
Created September 12, 2012 02:21
Show Gist options
  • Save daveworth/3703803 to your computer and use it in GitHub Desktop.
Save daveworth/3703803 to your computer and use it in GitHub Desktop.
Static Analysis Tools Examples
# running flog on an intentionally broken rails app
badapp $ bundle exec flog -g app
76.9: flog total
7.7: flog/method average
20.2: UsersHelper total
20.2: UsersHelper#dynamic_attribute_finder? app/helpers/users_helper.rb:2
18.9: UsersController total
10.4: UsersController#none
8.5: UsersController#show app/controllers/users_controller.rb:7
14.8: User total
14.8: User#thingy= app/models/user.rb:6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment