fastlane/lib/fastlane/fast_file.rb in fastlane-2.9.0 vs fastlane/lib/fastlane/fast_file.rb in fastlane-2.10.0

- old
+ new

@@ -48,12 +48,12 @@ # We have to use #get_binding method, because some test files defines method called `path` (for example SwitcherFastfile) # and local variable has higher priority, so it causes to remove content of original Fastfile for example. With #get_binding # is this always clear and safe to declare any local variables we want, because the eval function uses the instance scope # instead of local. - # rubocop:disable Lint/Eval + # rubocop:disable Security/Eval eval(data, parsing_binding, relative_path) # using eval is ok for this case - # rubocop:enable Lint/Eval + # rubocop:enable Security/Eval rescue SyntaxError => ex line = ex.to_s.match(/#{Regexp.escape(relative_path)}:(\d+)/)[1] UI.user_error!("Syntax error in your Fastfile on line #{line}: #{ex}") end end