mirror of
				https://git.proxmox.com/git/rustc
				synced 2025-10-31 14:48:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			388 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			388 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/usr/bin/env sh
 | |
| 
 | |
| set -ex
 | |
| 
 | |
| if rustup component add rustfmt-preview ; then
 | |
|     command -v rustfmt
 | |
|     rustfmt -V
 | |
|     cargo fmt --all -- --check
 | |
| fi
 | |
| 
 | |
| # if rustup component add clippy-preview ; then
 | |
| #     cargo clippy -V
 | |
| #     cargo clippy --all -- -D clippy::pedantic
 | |
| # fi
 | |
| 
 | |
| if shellcheck --version ; then
 | |
|     shellcheck -e SC2103 ci/*.sh
 | |
| else
 | |
|     echo "shellcheck not found"
 | |
|     exit 1
 | |
| fi
 | |
| 
 | 
