mirror of
				https://github.com/labwc/labwc.git
				synced 2025-10-29 05:40:24 -04:00 
			
		
		
		
	CodeStyle: prevent space in code indents
This commit is contained in:
		
							parent
							
								
									a3fff9f87b
								
							
						
					
					
						commit
						1995a33df9
					
				
					 12 changed files with 76 additions and 67 deletions
				
			
		
							
								
								
									
										8
									
								
								scripts/checkpatch.pl
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								scripts/checkpatch.pl
									
										
									
									
										vendored
									
									
								
							|  | @ -3738,6 +3738,14 @@ sub process { | |||
| # check we are in a valid source file C or perl if not then ignore this hunk | ||||
| 		next if ($realfile !~ /\.(h|c|pl|dtsi|dts)$/); | ||||
| 
 | ||||
| # at the beginning of a line in a .c file there should be no | ||||
| # spaces unless it is a single space in front of a multiline comment | ||||
| 		if ($realfile =~ /\.c$/ && $rawline =~ /^\+\t* [^*]/) { | ||||
| 			my $herevet = "$here\n" . cat_vet($rawline) . "\n"; | ||||
| 			WARN("CODE_INDENT", | ||||
| 				  "code indent should never contain spaces\n" . $herevet); | ||||
| 		} | ||||
| 
 | ||||
| # at the beginning of a line any tabs must come first and anything | ||||
| # more than $tabsize must use tabs. | ||||
| 		if ($rawline =~ /^\+\s* \t\s*\S/ || | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Consolatis
						Consolatis