The method is too complex. But instead of rewriting the code, you could exclude switches from the cyclomatic_complexity calculation (since they are perfectly readable) like this:
cyclomatic_complexity:
ignores_case_statements: true
The method is too complex. But instead of rewriting the code, you could exclude switches from the cyclomatic_complexity calculation (since they are perfectly readable) like this:
cyclomatic_complexity:
ignores_case_statements: true