You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've been using megalinter across several projects. Things have been going well, except on an android project where the linting run takes almost 15 minutes to complete.
The problem comes from the file method used ... ktlint is called once by file, that's what explain such unacceptable elapsed time.
I am not sure than ktlint can take a list of files as parameter (or maybe you can check ? ), that's why list_of_files mode is not used.
Meanwhile, if you don't want to ignore some of the ktlint files, please can you try to define KOTLIN_KTLINT_CLI_LINT_MODE: project in env var or .mega-linter.yml ? It will make ktlint be called just once on the directory, and you should see the same performances than with your local test :)
We've been using megalinter across several projects. Things have been going well, except on an android project where the linting run takes almost 15 minutes to complete.
vs. running ktlint directly:
Any advice as to where to start troubleshooting is much appreciated.
The text was updated successfully, but these errors were encountered: