Bug 49788 - gem-reek: не хватает зависимостей для code_climate_reek (gem-rexml и codeclimate)
Summary: gem-reek: не хватает зависимостей для code_climate_reek (gem-rexml и codeclim...
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: gem-reek (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: majioa@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-25 18:21 MSK by Artem Varaksa
Modified: 2024-03-26 22:38 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Artem Varaksa 2024-03-25 18:21:23 MSK
Шаги
====

1. # apt-get install -y reek
2. $ echo "class C; def m; end; end" | code_climate_reek

3. # apt-get install -y gem-rexml
4. $ echo "class C; def m; end; end" | code_climate_reek

Фактический результат
=====================

2:

> <internal:/usr/lib/ruby/rubygems/core_ext/kernel_require.rb>:148:in `require': cannot load such file -- rexml/document (LoadError)
>     from <internal:/usr/lib/ruby/rubygems/core_ext/kernel_require.rb>:148:in `require'
>     from /usr/lib/ruby/gemie/gems/reek-6.1.4/lib/reek/report/xml_report.rb:13:in `<class:XMLReport>'
>     from /usr/lib/ruby/gemie/gems/reek-6.1.4/lib/reek/report/xml_report.rb:12:in `<module:Report>'
>     from /usr/lib/ruby/gemie/gems/reek-6.1.4/lib/reek/report/xml_report.rb:6:in `<module:Reek>'
>     from /usr/lib/ruby/gemie/gems/reek-6.1.4/lib/reek/report/xml_report.rb:5:in `<top (required)>'
>     from /usr/lib/ruby/gemie/gems/reek-6.1.4/lib/reek/report.rb:6:in `require_relative'
>     from /usr/lib/ruby/gemie/gems/reek-6.1.4/lib/reek/report.rb:6:in `<top (required)>'
>     from /usr/lib/ruby/gemie/gems/reek-6.1.4/lib/reek.rb:8:in `require_relative'
>     from /usr/lib/ruby/gemie/gems/reek-6.1.4/lib/reek.rb:8:in `<top (required)>'
>     from /usr/lib/ruby/bin/code_climate_reek:7:in `require_relative'
>     from /usr/lib/ruby/bin/code_climate_reek:7:in `<main>'

4:

> <internal:/usr/lib/ruby/rubygems/core_ext/kernel_require.rb>:148:in `require': cannot load such file -- codeclimate_engine (LoadError)
>     from <internal:/usr/lib/ruby/rubygems/core_ext/kernel_require.rb>:148:in `require'
>     from /usr/lib/ruby/gemie/gems/reek-6.1.4/lib/reek/report/code_climate/code_climate_formatter.rb:3:in `<top (required)>'
>     from /usr/lib/ruby/gemie/gems/reek-6.1.4/lib/reek/report/code_climate.rb:4:in `require_relative'
>     from /usr/lib/ruby/gemie/gems/reek-6.1.4/lib/reek/report/code_climate.rb:4:in `<top (required)>'
>     from /usr/lib/ruby/bin/code_climate_reek:9:in `require_relative'
>     from /usr/lib/ruby/bin/code_climate_reek:9:in `<main>'


Ожидаемый результат
===================

Вывод проблем в коде в формате для CodeClimate.

Воспроизводимость
=================

Воспроизводится на виртуальных машинах:

[p10] ALT Server 10.1 x86_64
reek-6.1.1-alt1.noarch

[sisyphus] ALT Server 10.1 x86_64
reek-6.1.4-alt1.noarch
Comment 1 Repository Robot 2024-03-26 22:38:29 MSK
gem-reek-6.3.0-alt1 -> sisyphus:

 Mon Mar 25 2024 Pavel Skrylev <majioa@altlinux> 6.3.0-alt1
 - ^ 6.1.4 -> 6.3.0 (without check/devel)
 - ! fixed dep to codeclimate-engine from devel to prod (closes #49788)