Skip to content

Controller with "log" in pathname excluded from scan #1830

Closed
@scottwillson

Description

Background

Brakeman version: 5.4.1
Rails version: 6.1.7
Ruby version: 2.7.7

Issue

Some controllers are being skipped and not scanned because they are in a directory ending in "log'. E.g., app/controllers/n/off_catalog/orders_controller.rb is excluded in AppTree#reject_global_excludes because "log/" is in EXCLUDED_PATHS.

Changing "log/" to "/log/" in EXCLUDED_PATHS fixes this but I'm unsure if that would cause other issues.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions