Is Brakeman too opinionated on the argument type of load_defaults
?
#1783
-
Hi all, 👋 I had a strange false positive when bumping Brakeman to 6.0.0 on my Rails app. I had Rails defaults for 6.0 loaded, which include the After some debugging, it turns out that Brakeman skips loading defaults when the brakeman/lib/brakeman/tracker/config.rb Line 192 in 6af53c6 Rails itself is not that opinionated on what type it is, they just call I get why Brakeman wants it to be a number (as some number comparisons are done on it later), so I did not want to submit this as a bug report. On the other hand, it triggered a false positive that took a bit to find out why it was happening. Anyway, I'm fine with either answer to the discussion title and I've changed the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Simple answer is yes... as long as the argument to |
Beta Was this translation helpful? Give feedback.
Simple answer is yes... as long as the argument to
load_defaults
is a value Brakeman can figure out (e.g., not a variable/constant) then it should be supported. Especially the simple case of a string instead of a float.