I am using rubocop gem. Following is my factorybot code.
factory :cut, class: CutSetting do
maximum_length 100
max_colors_cut_together -1
end
Rubocop give the following errors for negative value -1.
Lint/AmbiguousOperator: Ambiguous negative number operator. Parenthesize the method arguments if it's surely a negative number operator, or add a whitespace to the right of the - if it should be a subtraction. (https://github.com/rubocop-hq/ruby-style-guide#method-invocation-parens)
How to solve this problem. PLEASE HELP ME :(.
Thanks in advance.