Skip to content

Commit d44242f

Browse files
committed
Disable broken linters
1 parent ab6da35 commit d44242f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.golangci.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,21 @@ linters:
1010
- govet
1111
- ineffassign
1212
- misspell
13-
- staticcheck
14-
- gosimple
13+
# - staticcheck
14+
# - gosimple
1515
- structcheck
1616
- varcheck
1717
- asciicheck
1818
- depguard
1919
- dogsled
2020
- dupl
2121
- whitespace
22-
- wastedassign
23-
- unparam
22+
# - wastedassign
23+
# - unparam
2424
- unconvert
2525
- predeclared
2626
- prealloc
27-
- nilerr
27+
# - nilerr
2828
- makezero
2929
- ifshort
3030
- goprintffuncname
@@ -36,3 +36,5 @@ linters-settings:
3636
goconst:
3737
min-len: 4
3838
min-occurrences: 5
39+
dupl:
40+
threshold: 250

transpiler/statement.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,6 @@ func ifStmtToMLOG(ctx context.Context, statement *ast.IfStmt) ([]MLOGStatement,
300300

301301
func forStmtToMLOG(ctx context.Context, statement *ast.ForStmt) ([]MLOGStatement, error) {
302302
results := make([]MLOGStatement, 0)
303-
varReferences := make([]*VarReference, 0)
304303

305304
if len(statement.Body.List) == 0 {
306305
return results, nil
@@ -312,7 +311,6 @@ func forStmtToMLOG(ctx context.Context, statement *ast.ForStmt) ([]MLOGStatement
312311
return nil, err
313312
}
314313
results = append(results, initMlog...)
315-
varReferences = append(varReferences, references...)
316314
ctx = addVariablesToContext(ctx, references)
317315
}
318316

0 commit comments

Comments
 (0)