I couldn't find the information in Codacy documentation or github repositories, but has anyone ever tried turning off rules for specific paths? This is a complete guess what it could look like:
---
engines:
detekt:
exclude_rules:
TooManyFunctions:
exclude_paths:
- '**/tests/**'
exclude_paths:
- "**.sh"
- "**.md"
- "frontend/example/**"
You can achieve that by using the config file for detekt instead: https://detekt.dev/docs/introduction/configurations/#path-filters--excludes--includes
Codacy will use the native configuration file from the tool and you can specify the ignores by rule there.