android-studiodartcode-inspection

Android Studio - how to remove "Avoid lines longer than 80 characters" inspection alert


I am using Android Studio, is there any way to disable this annoyed inspection.

enter image description here

I tried to disable all inspection, invalidate cache and restart but still

enter image description here


Solution

  • I found that there is lint configuration in the code, so just disable and the alert will gone.

    In analysis_options.yaml file, disable the 80 chars rule:

    linter:
      rules:
        lines_longer_than_80_chars: false