Precommit code analysis useless
Hi,
I am using RubyMine 4.0.3 on Linux, it is incredibly usefull, thanks Jetbrains for this great tool.
I have an issue with the precommit messages, take this harmless ActiveRecord for example:
class CartItem < ActiveRecord::Base
# relations
belongs_to :cart
belongs_to :deal
# attributes
attr_accessible :quantity, :deal_id, :cart_id
# validation
validates :cart_id, :deal_id, :presence => true
end
When I try to commit it the review tool will say the following:
Unexpected parameter value 'quantity'
Unexpected parameter value 'deal_id'
Unexpected parameter value 'cart_id' or hash expected
That is trully not very usefull as the realy usefull messages get buried in a sea of crap.
Thanks,
Please sign in to leave a comment.