chore: add gofumpt to pre-commit
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		
							parent
							
								
									38d1c18471
								
							
						
					
					
						commit
						ab0e7417c2
					
				|  | @ -3,7 +3,9 @@ linters: | ||||||
|     enable: |     enable: | ||||||
|         - gosec |         - gosec | ||||||
|         - gocritic |         - gocritic | ||||||
|  |         - gofumpt | ||||||
|         - gofmt |         - gofmt | ||||||
|  |         - goimports | ||||||
| issues: | issues: | ||||||
|     exclude-rules: |     exclude-rules: | ||||||
|         - linters: |         - linters: | ||||||
|  |  | ||||||
|  | @ -14,6 +14,10 @@ repos: | ||||||
|       rev: 0.2.2 |       rev: 0.2.2 | ||||||
|       hooks: |       hooks: | ||||||
|           - id: checkmake |           - id: checkmake | ||||||
|  |     - repo: https://github.com/Bahjat/pre-commit-golang | ||||||
|  |       rev: v1.0.2 | ||||||
|  |       hooks: | ||||||
|  |           - id: gofumpt | ||||||
|     - repo: https://github.com/dnephin/pre-commit-golang |     - repo: https://github.com/dnephin/pre-commit-golang | ||||||
|       rev: v0.5.1 |       rev: v0.5.1 | ||||||
|       hooks: |       hooks: | ||||||
|  |  | ||||||
|  | @ -29,7 +29,7 @@ go build -o ./build/joj3 ./cmd/joj3 | ||||||
| 
 | 
 | ||||||
| ### For developers | ### For developers | ||||||
| 
 | 
 | ||||||
| Install [`pre-commit`](https://pre-commit.com/), [`golangci-lint`](https://golangci-lint.run), [`goimports`](https://golang.org/x/tools/cmd/goimports). | Install [`pre-commit`](https://pre-commit.com/), [`golangci-lint`](https://golangci-lint.run), [`goimports`](https://golang.org/x/tools/cmd/goimports), [`gofumpt`](https://github.com/mvdan/gofumpt). | ||||||
| 
 | 
 | ||||||
| Then install the pre-commit hooks. It will run some checks before you commit. | Then install the pre-commit hooks. It will run some checks before you commit. | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user