forked from bonsai/harakit
		
	STYLE: removes do while constraint & reword indentation rule
This commit is contained in:
		
							parent
							
								
									ab003f7d4a
								
							
						
					
					
						commit
						789046f694
					
				
							
								
								
									
										7
									
								
								STYLE
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								STYLE
									
									
									
									
									
								
							@ -1,5 +1,5 @@
 | 
			
		||||
- Braces are mandatory for all control flow
 | 
			
		||||
- Indentation should be kept to a minimum
 | 
			
		||||
- Nested indentation should be kept to a minimum
 | 
			
		||||
- Empty lines should be placed between different kinds of statements:
 | 
			
		||||
 | 
			
		||||
int t;
 | 
			
		||||
@ -49,11 +49,6 @@ use sysexits::{ EX_DATAERR, EX_IOERR, EX_UNAVAILABLE, EX_USAGE };
 | 
			
		||||
 | 
			
		||||
if (!argc < 0) { usage(program_name); }
 | 
			
		||||
 | 
			
		||||
- If a do while loop in C is longer than ~25 lines, place the while statement
 | 
			
		||||
  in a comment after the opening brace:
 | 
			
		||||
 | 
			
		||||
do { /* while(count == 0 || --count > 0); */
 | 
			
		||||
 | 
			
		||||
--
 | 
			
		||||
Copyright © 2024 Emma Tebibyte <emma@tebibyte.media>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user