Created
October 5, 2017 12:26
-
-
Save Bringoff/4450a7167d1d5635b252debc4f4e7835 to your computer and use it in GitHub Desktop.
Lint gradle example config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ... | |
| apply from: 'lint-checks.gradle' | |
| ... | |
| android { | |
| ... | |
| lintOptions { | |
| textReport true | |
| abortOnError true | |
| warningsAsErrors true | |
| check lintchecks | |
| } | |
| ... | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ext.lintchecks = [ | |
| 'StringFormatInvalid', | |
| 'StringFormatMatches', | |
| 'StringFormatCount', | |
| 'DuplicateDefinition', | |
| 'ExtraTranslation', | |
| 'InvalidId', | |
| 'UnknownId', | |
| 'CutPasteId', | |
| 'SetTextI18n', | |
| 'IllegalResourceRef', | |
| 'NotInterpolated', | |
| 'ResourceType', | |
| 'PropertyEscape', | |
| 'Range', | |
| 'OnClick', | |
| 'MissingSuperCall', | |
| 'WrongViewCast', | |
| 'NamespaceTypo', | |
| 'PendingBindings', | |
| 'Proguard', | |
| 'ResourceCycle', | |
| 'WrongFolder', | |
| 'ResourceAsColor', | |
| ] as String[] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment