Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decouple checks from CLI #12

Open
fnando opened this issue Sep 14, 2016 · 0 comments
Open

Decouple checks from CLI #12

fnando opened this issue Sep 14, 2016 · 0 comments

Comments

@fnando
Copy link

fnando commented Sep 14, 2016

Right now, the code is totally coupled to stdout/stderr output and CLI usage.

Compare it to brakeman, for instance: Brakeman.run(app_path: Dir.pwd).filtered_warnings.

I'd like to be able of checking my code from my test suite. This is how I can do it with brakeman:

def test_brakeman
  tracker = Brakeman.run(app_path: Dir.pwd)
  warnings_count = tracker.filtered_warnings.size

  assert_equal 0, warnings_count
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant