8000 Decouple checks from CLI · Issue #12 · hakirisec/hakiri_toolbelt · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Decouple checks from CLI #12
Open
Open
@fnando

Description

@fnando

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0