声纳Qube问题

时间:2020-09-10 13:59:09

标签: ruby-on-rails ruby

在Rails中,为什么我在声纳Qube中听到代码气味:

添加一个嵌套注释,解释为什么此函数为空或完成实现。

我添加了多行注释:

def edit
  # This is an empty action
  # Page is renedered in corresponding view file
end

=begin
  Action is empty
  Action is empty
=end
  def index
  end

# This is an empty action
# Page is renedered in corresponding view file
def edit
end


def show
=begin
    xzxzxzx dffd
    dsdsdsddsd dffdf
=end 

他们都没有工作。请帮助我。

0 个答案:

没有答案