You've already forked sap-jenkins-library
							
							
				mirror of
				https://github.com/SAP/jenkins-library.git
				synced 2025-10-30 23:57:50 +02:00 
			
		
		
		
	add staticcheck github action (#3605)
This commit is contained in:
		
							
								
								
									
										11
									
								
								.github/workflows/verify-go.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								.github/workflows/verify-go.yml
									
									
									
									
										vendored
									
									
								
							| @@ -53,6 +53,17 @@ jobs: | ||||
|         run: go fmt ./... | ||||
|       - name: verify | ||||
|         run: git diff --exit-code | ||||
|   lint: | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|       - name: checkout | ||||
|         uses: actions/checkout@v2 | ||||
|         with: | ||||
|           fetch-depth: 1 | ||||
|       - name: staticcheck | ||||
|         uses: dominikh/staticcheck-action@v1.1.0 | ||||
|         with: | ||||
|           cache-key: ${{ runner.os }}-golang-staticcheck | ||||
|   generate: | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|   | ||||
							
								
								
									
										43
									
								
								staticcheck.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										43
									
								
								staticcheck.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,43 @@ | ||||
| checks = [ | ||||
|     "inherit", | ||||
|     "-S1000", | ||||
|     "-S1001", | ||||
|     "-S1002", | ||||
|     "-S1003", | ||||
|     "-S1004", | ||||
|     "-S1005", | ||||
|     "-S1006", | ||||
|     "-S1007", | ||||
|     "-S1008", | ||||
|     "-S1009", | ||||
|     "-S1011", | ||||
|     "-S1012", | ||||
|     "-S1021", | ||||
|     "-S1023", | ||||
|     "-S1024", | ||||
|     "-S1025", | ||||
|     "-S1030", | ||||
|     "-S1031", | ||||
|     "-S1034", | ||||
|     "-S1039", | ||||
|     "-SA1012", | ||||
|     "-SA1014", | ||||
|     "-SA1015", | ||||
|     "-SA4000", | ||||
|     "-SA4001", | ||||
|     "-SA4005", | ||||
|     "-SA4006", | ||||
|     "-SA4009", | ||||
|     "-SA4011", | ||||
|     "-SA4014", | ||||
|     "-SA4017", | ||||
|     "-SA5001", | ||||
|     "-SA5008", | ||||
|     "-SA6000", | ||||
|     "-SA9002", | ||||
|     "-ST1005", | ||||
|     "-ST1008", | ||||
|     "-ST1017", | ||||
|     "-ST1019", | ||||
|     "-U1000" | ||||
| ] | ||||
		Reference in New Issue
	
	Block a user