add fmt and lint to README
This commit is contained in:
		
							parent
							
								
									bc2f64eefd
								
							
						
					
					
						commit
						d52ba880cd
					
				
					 3 changed files with 6 additions and 0 deletions
				
			
		
							
								
								
									
										3
									
								
								Makefile
									
										
									
									
									
								
							
							
						
						
									
										3
									
								
								Makefile
									
										
									
									
									
								
							|  | @ -27,6 +27,9 @@ verify:  ## Verify dependencies have expected content | |||
| format:  ## Format go code
 | ||||
| 	go fmt ./... | ||||
| 
 | ||||
| lint:  ## Run linter (staticcheck)
 | ||||
| 	staticcheck -f stylish ./... | ||||
| 
 | ||||
| test:  ## Run tests
 | ||||
| 	go test ./... | ||||
| 
 | ||||
|  |  | |||
|  | @ -50,6 +50,8 @@ Use these Make targets for convenience: | |||
| - `build`: Compile project | ||||
| - `tidy`: Add missing and remove unused modules | ||||
| - `verify`: Verify dependencies have expected content | ||||
| - `format`: Format go code | ||||
| - `lint`: Run linter (staticcheck) | ||||
| - `test`: Run tests | ||||
| - `cert`: Create https certificate for local testing | ||||
| 
 | ||||
|  |  | |||
|  | @ -26,6 +26,7 @@ | |||
|       devShells.default = pkgs.mkShell { | ||||
|         buildInputs = with pkgs; [ | ||||
|           go | ||||
|           go-tools  # staticcheck | ||||
|           gomod2nix.packages.${system}.default | ||||
|           sanic | ||||
|         ]; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue