How do you work around the code complexity limit in scrutinizer-ci?

154 views Asked by At

I'm using scrutinizer-ci for an open source project, and many of my files get an F simply because they are "too complex" or "too long". For example in this file, all my functions have C+ but the overall file score is F coz its "too complex". I mean this function looks relatively well written, but its F coz its too long. Is there a way to work around or disable this "feature"?

Yes I read all the docs, Yes I googled, Yes I looked all over on their website and FOSS issues but there is nothing mentioned about disabling the complexity check, or making it more permissive.

The only workarounds (which are bad):

  1. You can disable scrutinizer-ci from parsing certain files. How does that help?
  2. You can disable the whole scrutinizer from certain commits. Again, pointless.
0

There are 0 answers