はじめに
この記事は2022年2月にまとめていた「細かいつまずいたことをメモしておく(2月編)をそれぞれ投稿した内容になります
解決方法が最新でない可能性もありますのでご了承ください
問題
Brakeman実行すると以下のエラーが表示された
/myapp $ brakeman
Loading scanner...
Processing application in /myapp
Processing gems...
[Notice] Detected Rails 6 application
Processing configuration...
[Notice] Error while processing /myapp/config/application.rb
[Notice] Escaping HTML by default
Parsing files...
Processing initializers...
/usr/local/bundle/gems/brakeman-4.7.2/lib/ruby_parser/bm_sexp_processor.rb:82:in `process': Result must be a Sexp, was Array:[:arglist, s(:str, "1.0")] (SexpTypeError)
解決方法
以下のバージョンでインストールするように変更した
Gemfile
gem 'brakeman', '~> 5.2.0', require: false
参考