This repository has been archived by the owner on Mar 4, 2024. It is now read-only.
EVEREST-482 Removed nolint:funlen,cyclop directives #202
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
CHANGE DESCRIPTION
Problem:
EVEREST-482
Short explanation of the problem.
We shut some linters intentionally in the past
Cause:
Short explanation of the root cause of the issue if applicable.
Solution:
Short explanation of the solution we are providing with this PR.
The linter complains about cyclomatic complexity of 11 or 12 and I didn't see any other option instead of increasing this to 15. 15 is good enough and I had the setting for 30 in the past. Having the default setting for funlen and max-complexity set to 15 will prevent us from writing huge functions.
I refactored functions that had funlen issues but the rest of functions with
//nolint:cyclop
they had a cyclomatic complexity of 11 or 12 and there's no sane way to refactor themCHECKLIST
Jira
Tests