Scribe-Android icon indicating copy to clipboard operation
Scribe-Android copied to clipboard

Fix linting issues caused due to Function returning constants

Open angrezichatterbox opened this issue 1 year ago • 0 comments

Terms

Description

This issue aims to fix linting issues caused by functions that are returning constants and are being used in the codebase. A possible fix for this will be to pass the constant as parameters where the function is being used.

Steps to identify the lines to fix:

  • Comment or remove or turn the following line to false
 FunctionOnlyReturningConstant:
        active: false

  • Run ./gradlew detekt in your terminal
  • You would be able to see which all lines to fix.

Contribution

I would love to work on this and more than willing to help anyone who wants to fix this issue 😄 .

angrezichatterbox avatar Sep 09 '24 16:09 angrezichatterbox