Reputation: 12989
In order to get it off my back, I suppressed a few warnings in Android Studio -- only warnings regarding formatting issues like font size and button styles.
In retrospect, I'd rather I hadn't, since I'm now at a point where I'd like to ensure my code complies with all the relevant styling guidelines.
So, how do I unsuppress these warnings?
Thanks.
Upvotes: 3
Views: 1545
Reputation: 177
In Android Studio, open Preferences and select Editor -> Inspections from the side menu. You should see a large, collapsible list where you can change what potential problems will be indicated and their severity. The screenshot below shows an example of this window in Android Studio 2.0.
If you remember fairly well what settings you want to revert, you can search for them and re-check the box. You can also select the gear icon above the list to reset it to default settings.
If you have warnings that you are relatively sure you can ignore but don't want hidden completely, just change the severity to a lower level. Changing a 'warning' to a 'weak warning' or 'info' will cause the indicator to be a little less annoying and if you are using the built-in version control tools, allow you to pass the pre-commit code analysis.
JetBrains has a pretty good support article here, which covers all this and how to further customize inspections.
Upvotes: 5
Reputation: 86
If I'm not mistaken, everything you suppress is in the format of @Suppress....
. Therefore, what you can do is right click on your project folder (from inside of AndroidStudio), click "Find in Path..." and search for "@Suppress".
Upvotes: 0