Currently I'm getting feedback from Rubocop saying "Avoid parameter lists longer than 5 parameters."
What is the #Rubocop:disable command to disable this? I'm happy with the code having an extra argument so I don't want to change it.
You could drop a file named .rubocop.yml
in your project root directory with the following content.
Metrics/ParameterLists:
Enabled: false
# rubocop:disable Metrics/ParameterLists
your function goes here
# rubocop:enable Metrics/ParameterLists
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With