Add GolangCI-lint config

This commit is contained in:
2020-01-17 13:27:01 +03:00
parent 17598720eb
commit 11e1c226ee
2 changed files with 4 additions and 0 deletions

3
.golangci.yml Normal file
View File

@@ -0,0 +1,3 @@
linters:
enable:
- wsl

View File

@@ -33,6 +33,7 @@ func Xirr(transactions Transactions) float64 {
for math.Abs(residual) > epsilon && limit > 0 { for math.Abs(residual) > epsilon && limit > 0 {
limit-- limit--
residual = 0.0 residual = 0.0
for i, t := range transactions { for i, t := range transactions {