Closed dannytip closed 10 months ago
This is currently failing linting due to:
Metrics/AbcSize: Assignment Branch Condition size for get_error_messages is too high. [<3, 18, 6> 19.21/18]
Any suggestion on how to resolve that @lcreid ?
This is currently failing linting due to:
Metrics/AbcSize: Assignment Branch Condition size for get_error_messages is too high. [<3, 18, 6> 19.21/18]
Any suggestion on how to resolve that @lcreid ?
I wonder why that's come up for you? Perhaps that's why the original code used a temporary variable? For now, put # rubocop:disable Metrics/AbcSize
at the start of the method, and # rubocop:enable Metrics/AbcSize
at the end of the method.
@lcreid ive added a test case which triggers the warning when you change REQUIRED_RAILS_VERSION
to v6.1.7.4
strangely you don't get the warning with rails v7.0.6
.
Oops. Looks like the test fails on edge.
Oops. Looks like the test fails on edge.
It looks like it doesn't pick up that the relationship is required in rails 7.1. Possibly something in required_association?
Fixes #689