12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
I, [2024-11-29T08:42:59.393780 #1] INFO -- : Skipping file ./lib/country_select/tag_helper.rb due to exception (RubyParser::SyntaxError): Odd number (2) list for Hash. s(:array, s(:call, nil, :selected))
!!!
Source 'lib/country_select/tag_helper.rb' cannot be processed by Reek due to a syntax error in the source file.
This is a problem that is outside of Reek's scope and should be fixed by you, the
user, in order for Reek being able to continue.
Things you can try:
- Check the syntax of the problematic file
- If the file is not in fact a Ruby file, exclude it in your .reek.yml file
Exception message:
#<Parser::SyntaxError: unexpected token tRPAREN>
Original backtrace:
/usr/local/bundle/gems/parser-3.0.2.0/lib/parser/diagnostic/engine.rb:72:in `process'
/usr/local/bundle/gems/parser-3.0.2.0/lib/parser/base.rb:286:in `on_error'
/usr/local/lib/ruby/2.6.0/racc/parser.rb:259:in `_racc_do_parse_c'
/usr/local/lib/ruby/2.6.0/racc/parser.rb:259:in `do_parse'
/usr/local/bundle/gems/parser-3.0.2.0/lib/parser/base.rb:190:in `parse'
/usr/local/bundle/gems/parser-3.0.2.0/lib/parser/base.rb:207:in `parse_with_comments'
/usr/src/app/lib/reek/source/source_code.rb:117:in `parse'
/usr/src/app/lib/reek/source/source_code.rb:53:in `syntax_tree'
/usr/src/app/lib/reek/examiner.rb:116:in `syntax_tree'
/usr/src/app/lib/reek/examiner.rb:120:in `examine_tree'
/usr/src/app/lib/reek/examiner.rb:94:in `block in run'
/usr/src/app/lib/reek/examiner.rb:104:in `wrap_exceptions'
/usr/src/app/lib/reek/examiner.rb:93:in `run'
/usr/src/app/lib/reek/examiner.rb:61:in `smells'
/usr/src/app/lib/reek/examiner.rb:69:in `smells_count'
/usr/src/app/lib/reek/report/base_report.rb:44:in `add_examiner'
/usr/src/app/lib/reek/cli/command/report_command.rb:26:in `block in populate_reporter_with_smells'
/usr/src/app/lib/reek/cli/command/report_command.rb:25:in `each'
/usr/src/app/lib/reek/cli/command/report_command.rb:25:in `populate_reporter_with_smells'
/usr/src/app/lib/reek/cli/command/report_command.rb:17:in `execute'
/usr/src/app/lib/reek/cli/application.rb:32:in `execute'
/usr/src/app/bin/code_climate_reek:68:in `<main>'
!!!