在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
他们都没有工作。请帮助我。