mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	Issue #66 - Add lint tool and uncrustify config. Update contributing documentation on coding style.
This commit is contained in:
		 David Z. Chen
					David Z. Chen
				
			
				
					committed by
					
						 Thiago de Arruda
						Thiago de Arruda
					
				
			
			
				
	
			
			
			 Thiago de Arruda
						Thiago de Arruda
					
				
			
						parent
						
							3925d951a1
						
					
				
				
					commit
					6121d9b500
				
			| @@ -40,7 +40,22 @@ someone else doesn't duplicate the work. | |||||||
|  |  | ||||||
| ### Coding style | ### Coding style | ||||||
|  |  | ||||||
| - Use the 'hybrid' style described [here](https://gist.github.com/davidzchen/9188090). Get a `.editorconfig` for it [here](https://gist.github.com/ashleyh/9292108) | All code changes should follow the [Google C++ style guide](http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml) | ||||||
| - Don't abuse the pre-processor. | with the following exceptions: | ||||||
| - Don't mix platform-specific stuff into the main code. |  | ||||||
| - TODO: commit messages? |  * Function names should be `lower_case` separated by underscores. | ||||||
|  |  * Struct and enum names that are not typedef-ed are `struct lower_case` and | ||||||
|  |    `enum lower_case`. | ||||||
|  |  * The opening brace for function declarations should appear on the next line. | ||||||
|  |  * All control structures must always use braces. | ||||||
|  |  | ||||||
|  | Please run `clint.py` to detect style errors. `clint.py` is Google's | ||||||
|  | [`cpplint.py`](http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml#cpplint) | ||||||
|  | script modified with the above style guidelines. It is not perfect and may | ||||||
|  | have false positives and negatives, but is still a valuable tool. To have | ||||||
|  | `clint.py` ignore certain special cases, put `// NOLINT` at the end of the | ||||||
|  | line. | ||||||
|  |  | ||||||
|  | ### Commit messages | ||||||
|  |  | ||||||
|  | TODO | ||||||
|   | |||||||
							
								
								
									
										1578
									
								
								uncrustify.cfg
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1578
									
								
								uncrustify.cfg
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
		Reference in New Issue
	
	Block a user