Hi everyone :wave: I want to configure detekt so ...
# detekt
c
Hi everyone 👋 I want to configure detekt so that the MaximumLineLength rule still blocks long lines, but makes an exception for logging code, such as:
Copy code
<http://logger.info|logger.info> { "This is a very long logging message that exceeds the character limit, but I want Detekt to ignore it." }
I’ve tried various approaches, but I couldn’t find an in-built option to ignore specific function calls (like
<http://logger.info|logger.info>
,
logger.debug
,
logger.warn
). Is there a way to achieve this? Maybe there's a configuration option or a custom rule I could create? Thanks in advance for your help! 🚀