-
Notifications
You must be signed in to change notification settings - Fork 2
/
goFixShit.ps1
35 lines (23 loc) · 850 Bytes
/
goFixShit.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# 11/02/19
# Made by BredeFK
Write-Host "`nJump to project destination`n===========================" -ForegroundColor Green
$start = Get-Location
Set-Location $env:GOPATH\src\github.com\JohanAanesen\CSAMS
Write-Host "`nRunning go mod verify`n====================" -ForegroundColor Green
go mod verify
Write-Host "`nGo Vet`n========" -ForegroundColor Cyan
go vet ./webservice/...
go vet ./mailservice/...
Write-Host "`nGo fmt`n========" -ForegroundColor Cyan
go fmt ./webservice/...
go fmt ./mailservice/...
Write-Host "`nGo Lint`n========" -ForegroundColor Cyan
golint ./...
Write-Host "`nGo Cyclo`n========" -ForegroundColor Cyan
gocyclo ./webservice/...
gocyclo ./mailservice/...
Write-Host "`nGo test`n========" -ForegroundColor Yellow
go test ./webservice/... -cover
go test ./mailservice/... -cover
Write-Host ""
Set-Location $start