Skip to content

Create a detekt report where file paths are clickable when the output is shown inside the Android Studio terminal window

Notifications You must be signed in to change notification settings

ternaryop/detekt-androidstudio-log

Repository files navigation

Android Studio Log Report

Create a detekt report where file paths are clickable when the output is shown inside the Android Studio terminal window

From Android Studio open the terminal View -> Tool Windows -> Terminal then run

cat android_studio_warnings.txt

Where android_studio_warnings.txt is the file created with detekt

Configure detekt

The configuration file must contain

config:
  validation: true
  excludes: "ternaryop"

ternaryop:
  AndroidStudioLog:
    # The extra informations shown
    # The declaration order corresponds to the output order
    show: "id,message"

Run detekt

java -jar detekt-cli-all.jar \
	-i <<the file/path to inspect>> \
	-r AndroidStudioLog:android_studio_warnings.txt \
	--plugins DetektAndroidStudioLog.jar \
	-c config.yml

About

Create a detekt report where file paths are clickable when the output is shown inside the Android Studio terminal window

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages