forked from quickshell/quickshell
		
	build: add justfile entry to lint only changed files
This commit is contained in:
		
							parent
							
								
									2571766d3b
								
							
						
					
					
						commit
						84ce47b6d3
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		
							
								
								
									
										3
									
								
								Justfile
									
										
									
									
									
								
							
							
						
						
									
										3
									
								
								Justfile
									
										
									
									
									
								
							| 
						 | 
					@ -9,6 +9,9 @@ lint:
 | 
				
			||||||
lint-ci:
 | 
					lint-ci:
 | 
				
			||||||
	find src -type f -name "*.cpp" -print0 | parallel -q0 --no-notice --will-cite --tty clang-tidy --load={{ env_var("TIDYFOX") }}
 | 
						find src -type f -name "*.cpp" -print0 | parallel -q0 --no-notice --will-cite --tty clang-tidy --load={{ env_var("TIDYFOX") }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					lint-changed:
 | 
				
			||||||
 | 
						git diff --name-only HEAD | grep "^.*\.cpp\$" |  parallel --no-notice --will-cite --eta clang-tidy --load={{ env_var("TIDYFOX") }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
configure target='debug' *FLAGS='':
 | 
					configure target='debug' *FLAGS='':
 | 
				
			||||||
	cmake -GNinja -B {{builddir}} \
 | 
						cmake -GNinja -B {{builddir}} \
 | 
				
			||||||
		-DCMAKE_BUILD_TYPE={{ if target == "debug" { "Debug" } else { "RelWithDebInfo" } }} \
 | 
							-DCMAKE_BUILD_TYPE={{ if target == "debug" { "Debug" } else { "RelWithDebInfo" } }} \
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue