| 
									
										
										
										
											2013-04-14 17:34:51 +08:00
										 |  |  | #!/bin/bash | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | cd "`dirname $0`/.." | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # List all Objective-C headers here, should not cpplint them. | 
					
						
							|  |  |  | OBJC_HEADERS=' | 
					
						
							|  |  |  | browser/atom_event_processing_window.h | 
					
						
							| 
									
										
										
										
											2013-05-03 10:53:54 +08:00
										 |  |  | browser/atom_application_mac.h | 
					
						
							|  |  |  | browser/atom_application_delegate_mac.h | 
					
						
							| 
									
										
										
										
											2013-04-21 15:36:48 +08:00
										 |  |  | browser/native_window_mac.h | 
					
						
							| 
									
										
										
										
											2013-06-19 13:24:13 +08:00
										 |  |  | browser/nsalert_synchronous_sheet.h | 
					
						
							| 
									
										
										
										
											2013-04-21 15:36:48 +08:00
										 |  |  | common/api/api_messages.cc | 
					
						
							|  |  |  | common/api/api_messages.h' | 
					
						
							| 
									
										
										
										
											2013-04-14 17:34:51 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | FILES=`find app browser common renderer -type f -name '*.h' -or -name '*.cc'` | 
					
						
							|  |  |  | FILTERED_FILES= | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | while read file; do | 
					
						
							|  |  |  |   if ! echo "$OBJC_HEADERS" | grep "$file" > /dev/null ; then | 
					
						
							|  |  |  |     FILTERED_FILES="$FILTERED_FILES $file" | 
					
						
							|  |  |  |   fi | 
					
						
							|  |  |  | done <<< "$FILES" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | python ./vendor/cpplint.py \ | 
					
						
							|  |  |  |   --filter=-build/header_guard,-build/include_what_you_use \ | 
					
						
							|  |  |  |   $FILTERED_FILES |