<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>49788</bug_id>
          
          <creation_ts>2024-03-25 18:21:23 +0300</creation_ts>
          <short_desc>gem-reek: не хватает зависимостей для code_climate_reek (gem-rexml и codeclimate)</short_desc>
          <delta_ts>2024-03-26 22:38:29 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>gem-reek</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Artem Varaksa">varaksaaa</reporter>
          <assigned_to name="majioa@altlinux.org">majioa</assigned_to>
          <cc>majioa</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>243478</commentid>
    <comment_count>0</comment_count>
    <who name="Artem Varaksa">varaksaaa</who>
    <bug_when>2024-03-25 18:21:23 +0300</bug_when>
    <thetext>Шаги
====

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

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

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

2:

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

4:

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


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

Вывод проблем в коде в формате для 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>243553</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2024-03-26 22:38:29 +0300</bug_when>
    <thetext>gem-reek-6.3.0-alt1 -&gt; sisyphus:

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

    </bug>

</bugzilla>