move lint config to lint.xml to enable ignoring specific files
This commit is contained in:
		
							parent
							
								
									151c83218c
								
							
						
					
					
						commit
						7702e72acb
					
				| @ -245,13 +245,7 @@ android { | ||||
|         xmlReport false | ||||
|         textReport false | ||||
| 
 | ||||
|         // Our translations are crowd-sourced | ||||
|         disable 'MissingTranslation' | ||||
| 
 | ||||
|         // to make CI fail on errors until this is fixed https://github.com/rtyley/spongycastle/issues/7 | ||||
|         warning 'InvalidPackage', 'ImpliedQuantity' | ||||
| 
 | ||||
|         error 'AppCompatMethod', 'NestedScrolling', 'StringFormatCount', 'UnsafeProtectedBroadcastReceiver' | ||||
|         lintConfig file("lint.xml") | ||||
|     } | ||||
| 
 | ||||
|     packagingOptions { | ||||
|  | ||||
							
								
								
									
										16
									
								
								app/lint.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								app/lint.xml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,16 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <lint> | ||||
|     <!-- Our translations are crowd-sourced --> | ||||
|     <issue id="MissingTranslation" severity="ignore"/> | ||||
| 
 | ||||
|     <!-- to make CI fail on errors until this is fixed | ||||
|          https://github.com/rtyley/spongycastle/issues/7 --> | ||||
|     <issue id="InvalidPackage" severity="warning"/> | ||||
|     <issue id="ImpliedQuantity" severity="warning"/> | ||||
| 
 | ||||
|     <!-- These are important to us, so promote from warning to error --> | ||||
|     <issue id="AppCompatMethod" severity="error"/> | ||||
|     <issue id="NestedScrolling" severity="error"/> | ||||
|     <issue id="StringFormatCount" severity="error"/> | ||||
|     <issue id="UnsafeProtectedBroadcastReceiver" severity="error"/> | ||||
| </lint> | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Hans-Christoph Steiner
						Hans-Christoph Steiner