You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I encountered an error while using your library
Describing the error
It occurs when I try to run brakeman without supplying any options
# In Dangerfile
brakeman.run
It crashes with this error
/Users/goose/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/danger-brakeman_scanner-0.1.1/lib/danger_plugin.rb:18:in `dirname': no implicit conversion of nil into String (TypeError)
def run(options = File.dirname(Kernel.caller_locations.first.absolute_path))
I had a look and here's what I found:
It crashes in this line, specifically because Kernel.caller_locations.first.absolute_path is nil
According to this and this, absolute_path can return nil in some situations (those links are pretty old so I'm not sure if they're still hold true today). Using eval seems like one of them. and danger uses it
Dependencies version
ruby (3.2.2)
danger (9.3.1)
danger-brakeman_scanner (0.1.1)
brakeman (6.0.1)
Please let me know if there's anything missing
The text was updated successfully, but these errors were encountered:
Hi, I encountered an error while using your library
Describing the error
It occurs when I try to run brakeman without supplying any options
It crashes with this error
I had a look and here's what I found:
Kernel.caller_locations.first.absolute_path
isnil
absolute_path
can return nil in some situations (those links are pretty old so I'm not sure if they're still hold true today). Using eval seems like one of them. and danger uses itDependencies version
Please let me know if there's anything missing
The text was updated successfully, but these errors were encountered: