klaxit / danger-brakeman_scanner Goto Github PK
View Code? Open in Web Editor NEWA Danger plugin for running Ruby files through Brakeman.
Home Page: https://git.io/danger-brakeman_scanner
License: MIT License
A Danger plugin for running Ruby files through Brakeman.
Home Page: https://git.io/danger-brakeman_scanner
License: MIT License
Hi, I encountered an error while using your library
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:
Kernel.caller_locations.first.absolute_path
is nil
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 itPlease let me know if there's anything missing
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.