0
0

More than 1 year has passed since last update.

RailsのbrakemanでSexpTypeErrorがでる

Posted at

はじめに

この記事は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

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0