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/**"