Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Android Studio, how to disable all those weak warnings in the code?

Recently I reinstalled Android Studio and now it shows many weak warnings on my Flutter-Dart project, for example for _variable (starting with underscore). I can’t find any way to stop AS to show them. And scrollbar is full of lines about those weak warnings.

I went in "Settings – Editor – Inspections" and I disabled everything. Well, nothing changed! I succesfully disabled typos in strings but not weak warning.

Where all those weak warning (lowercamelcase identifier, variable starts with underscore, use const, use interpolation to compose strings, etc.) can be handled in Android Studio?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Go to your analysis_options.yaml file in the root of your project and set prefer_const_constructors : false under the linter->rules sections

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading