Skip to content

Instantly share code, notes, and snippets.

@benzonico
Last active August 29, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benzonico/7ef1ca9b9300af397796 to your computer and use it in GitHub Desktop.
Save benzonico/7ef1ca9b9300af397796 to your computer and use it in GitHub Desktop.
Bi-directional Text USABILITY_ACCESSIBILITY RtlHardcoded Looks for hardcoded left/right constants which could be start/end for bidirectional text
Correctness INSTRUCTION_RELIABILITY InOrMmUsage Looks for use of the mm or in dimensions
Correctness INSTRUCTION_RELIABILITY InconsistentLayout Checks that layout variations are consistent
Correctness INSTRUCTION_RELIABILITY InvalidPackage Finds API accesses to APIs that are not supported in Android
Correctness INSTRUCTION_RELIABILITY LibraryCustomView Flags custom attributes in libraries, which must use the res-auto-namespace instead
Correctness INSTRUCTION_RELIABILITY LocalSuppress Looks for @SuppressLint annotations in locations where it doesn't work for class based checks
Correctness INSTRUCTION_RELIABILITY MissingSuperCall Looks for overriding methods that should also invoke the parent method
Correctness INSTRUCTION_RELIABILITY NestedScrolling Checks whether a scrolling widget has any nested scrolling widgets within
Correctness INSTRUCTION_RELIABILITY NotSibling Checks for id references in RelativeLayouts that are not referencing a sibling
Correctness INSTRUCTION_RELIABILITY OldTargetApi Checks that the manifest specifies a targetSdkVersion that is recent
Correctness INSTRUCTION_RELIABILITY Orientation Checks that LinearLayouts with multiple children set the orientation
Correctness INSTRUCTION_RELIABILITY Proguard Looks for problems in proguard config files
Correctness INSTRUCTION_RELIABILITY ProguardSplit Checks for old proguard.cfg files that contain generic Android rules
Correctness INSTRUCTION_RELIABILITY ProtectedPermissions Looks for permissions that are only granted to system apps
Correctness INSTRUCTION_RELIABILITY PxUsage Looks for use of the px dimension
Correctness INSTRUCTION_RELIABILITY RequiredSize Ensures that the layout_width and layout_height are specified for all views
Correctness INSTRUCTION_RELIABILITY SpUsage Looks for uses of dp instead of sp dimensions for text sizes
Correctness INSTRUCTION_RELIABILITY StopShip Looks for comment markers of the form //STOPSHIP which indicates that code should not be released yet
Correctness INSTRUCTION_RELIABILITY Suspicious0dp Looks for 0dp as the width in a vertical LinearLayout or as the height in a horizontal
Correctness INSTRUCTION_RELIABILITY TextViewEdits Looks for TextViews being used for input
Correctness INSTRUCTION_RELIABILITY WrongFolder Finds resource files that are placed in the wrong folders
Correctness:Messages INSTRUCTION_RELIABILITY UnusedQuantity Checks for quantity string translations which are not used in this language
Performance EFFICIENCY_COMPLIANCE InefficientWeight Looks for inefficient weight declarations in LinearLayouts
Performance EFFICIENCY_COMPLIANCE UnusedIds Looks for unused id's
Performance EFFICIENCY_COMPLIANCE UnusedResources Looks for unused resources
Performance EFFICIENCY_COMPLIANCE UseCompoundDrawables Checks whether the current node can be replaced by a TextView using compound drawables.
Usability:Icons ToBeDefined GifUsage Checks for images using the GIF file format which is discouraged
Usability:Icons ToBeDefined IconColors Checks that icons follow the recommended visual style
Usability:Icons ToBeDefined IconDensities Ensures that icons provide custom versions for all supported densities
Usability:Icons ToBeDefined IconDipSize Ensures that icons across densities provide roughly the same density-independent size
Usability:Icons ToBeDefined IconExpectedSize Ensures that launcher icons, notification icons etc have the correct size
Usability:Icons ToBeDefined IconLauncherShape Checks that launcher icons follow the recommended visual style
Usability:Icons ToBeDefined IconLocation Ensures that images are not defined in the density-independent drawable folder
Usability:Icons ToBeDefined IconMissingDensityFolder Ensures that all the density folders are present
Usability:Icons ToBeDefined IconXmlAndPng Finds icons that appear both as a drawable .xml file and as bitmaps
Usability:Typography ToBeDefined TypographyDashes Looks for usages of hyphens which can be replaced by n dash and m dash characters
Usability:Typography ToBeDefined TypographyFractions Looks for fraction strings which can be replaced with a fraction character
Usability:Typography ToBeDefined TypographyOther Looks for miscellaneous typographical problems like replacing (c) with ©
Usability:Typography ToBeDefined TypographyQuotes Looks for straight quotes which can be replaced by curvy quotes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment