Static-check fixes from @lespea #1657, batch 1/n (#1703)

This commit is contained in:
John Kerl 2024-10-27 11:42:43 -04:00 committed by GitHub
parent d7a5997d70
commit 047cb4bc28
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
167 changed files with 229 additions and 257 deletions

View file

@ -202,7 +202,7 @@ Options:
Since the expression pieces are simply concatenated, please be sure to use intervening
semicolons to separate expressions.)
-s name=value: Predefines out-of-stream variable @name to have
-s name=value: Predefines out-of-stream variable @name to have
Thus mlr put -s foo=97 '$column += @foo' is like
mlr put 'begin {@foo = 97} $column += @foo'.
The value part is subject to type-inferencing.
@ -681,7 +681,7 @@ Options:
Since the expression pieces are simply concatenated, please be sure to use intervening
semicolons to separate expressions.)
-s name=value: Predefines out-of-stream variable @name to have
-s name=value: Predefines out-of-stream variable @name to have
Thus mlr put -s foo=97 '$column += @foo' is like
mlr put 'begin {@foo = 97} $column += @foo'.
The value part is subject to type-inferencing.

View file

@ -1 +1 @@
mlr: couldn't assign variable int i from value float 0.34679014
mlr: couldn't assign variable int i from value float 0.34679014

View file

@ -1 +1 @@
mlr: couldn't assign variable int function return value from value float 3.79679014
mlr: couldn't assign variable int function return value from value float 3.79679014

View file

@ -1 +1 @@
mlr: couldn't assign variable int function return value from value float 4.45000000
mlr: couldn't assign variable int function return value from value float 4.45000000

View file

@ -1 +1 @@
mlr: couldn't assign variable int function return value from value error (error)
mlr: couldn't assign variable int function return value from value error (error)

View file

@ -1,2 +1 @@
mlr: couldn't assign variable int i from value float 0.34679014

View file

@ -1,2 +1 @@
mlr: couldn't assign variable num i from value string a

View file

@ -1 +1 @@
mlr: '[[...]]' is allowed on assignment left-hand sides only when immediately preceded by '$'.
mlr: '[[...]]' is allowed on assignment left-hand sides only when immediately preceded by '$'

View file

@ -1 +1 @@
mlr: '[[[...]]]' is allowed on assignment left-hand sides only when immediately preceded by '$'.
mlr: '[[[...]]]' is allowed on assignment left-hand sides only when immediately preceded by '$'

View file

@ -1 +1 @@
mlr: '[[...]]' is allowed on assignment left-hand sides only when immediately preceded by '$'.
mlr: '[[...]]' is allowed on assignment left-hand sides only when immediately preceded by '$'

View file

@ -1 +1 @@
mlr: '[[...]]' is allowed on assignment left-hand sides only when immediately preceded by '$'.
mlr: '[[...]]' is allowed on assignment left-hand sides only when immediately preceded by '$'

View file

@ -1 +1 @@
mlr: '[[...]]' is allowed on assignment left-hand sides only when immediately preceded by '$'.
mlr: '[[...]]' is allowed on assignment left-hand sides only when immediately preceded by '$'

View file

@ -1 +1 @@
mlr: '[[...]]' is allowed on assignment left-hand sides only when immediately preceded by '$'.
mlr: '[[...]]' is allowed on assignment left-hand sides only when immediately preceded by '$'

View file

@ -1 +1 @@
mlr: '[[[...]]]' is allowed on assignment left-hand sides only when immediately preceded by '$'.
mlr: '[[[...]]]' is allowed on assignment left-hand sides only when immediately preceded by '$'

View file

@ -1 +1 @@
mlr: begin blocks can only be at top level.
mlr: begin blocks can only be at top level

View file

@ -1 +1 @@
mlr: begin blocks can only be at top level.
mlr: begin blocks can only be at top level

View file

@ -1 +1 @@
mlr: end blocks can only be at top level.
mlr: end blocks can only be at top level

View file

@ -1 +1 @@
mlr: end blocks can only be at top level.
mlr: end blocks can only be at top level

View file

@ -1 +1 @@
mlr: begin/end blocks cannot refer to records via $x, $*, etc.
mlr: begin/end blocks cannot refer to records via $x, $*, etc

View file

@ -1 +1 @@
mlr: begin/end blocks cannot refer to records via $x, $*, etc.
mlr: begin/end blocks cannot refer to records via $x, $*, etc

View file

@ -1 +1 @@
mlr: begin/end blocks cannot refer to records via $x, $*, etc.
mlr: begin/end blocks cannot refer to records via $x, $*, etc

View file

@ -1 +1 @@
mlr: begin/end blocks cannot refer to records via $x, $*, etc.
mlr: begin/end blocks cannot refer to records via $x, $*, etc

View file

@ -1 +1 @@
mlr: begin/end blocks cannot refer to records via $x, $*, etc.
mlr: begin/end blocks cannot refer to records via $x, $*, etc

View file

@ -1 +1 @@
mlr: begin/end blocks cannot refer to records via $x, $*, etc.
mlr: begin/end blocks cannot refer to records via $x, $*, etc

View file

@ -1 +1 @@
mlr: begin/end blocks cannot refer to records via $x, $*, etc.
mlr: begin/end blocks cannot refer to records via $x, $*, etc

View file

@ -1 +1 @@
mlr: begin/end blocks cannot refer to records via $x, $*, etc.
mlr: begin/end blocks cannot refer to records via $x, $*, etc

View file

@ -1 +1 @@
mlr: begin/end blocks cannot refer to records via $x, $*, etc.
mlr: begin/end blocks cannot refer to records via $x, $*, etc

View file

@ -1 +1 @@
mlr: begin/end blocks cannot refer to records via $x, $*, etc.
mlr: begin/end blocks cannot refer to records via $x, $*, etc

View file

@ -1 +1 @@
mlr: break statements are only valid within for/do/while loops.
mlr: break statements are only valid within for/do/while loops

View file

@ -1 +1 @@
mlr: break statements are only valid within for/do/while loops.
mlr: break statements are only valid within for/do/while loops

View file

@ -1 +1 @@
mlr: break statements are only valid within for/do/while loops.
mlr: break statements are only valid within for/do/while loops

View file

@ -1 +1 @@
mlr: break statements are only valid within for/do/while loops.
mlr: break statements are only valid within for/do/while loops

View file

@ -1 +1 @@
mlr: filter expressions must not also contain the "filter" keyword.
mlr: filter expressions must not also contain the "filter" keyword

View file

@ -1 +1 @@
mlr: filter expressions must not also contain the "filter" keyword.
mlr: filter expressions must not also contain the "filter" keyword

View file

@ -1 +1 @@
mlr: begin blocks can only be at top level.
mlr: begin blocks can only be at top level

View file

@ -1 +1 @@
mlr: end blocks can only be at top level.
mlr: end blocks can only be at top level

View file

@ -1 +1 @@
mlr: begin blocks can only be at top level.
mlr: begin blocks can only be at top level

View file

@ -1 +1 @@
mlr: end blocks can only be at top level.
mlr: end blocks can only be at top level

View file

@ -1 +1 @@
mlr: func blocks can only be at top level.
mlr: func blocks can only be at top level

View file

@ -1 +1 @@
mlr: subr blocks can only be at top level.
mlr: subr blocks can only be at top level

View file

@ -1 +1 @@
mlr: begin/end blocks cannot refer to records via $x, $*, etc.
mlr: begin/end blocks cannot refer to records via $x, $*, etc

View file

@ -1 +1 @@
mlr: return statements are only valid within func/subr blocks.
mlr: return statements are only valid within func/subr blocks

View file

@ -1 +1 @@
mlr: break statements are only valid within for/do/while loops.
mlr: break statements are only valid within for/do/while loops

View file

@ -1 +1 @@
mlr: break statements are only valid within for/do/while loops.
mlr: break statements are only valid within for/do/while loops

View file

@ -1 +1 @@
mlr: break statements are only valid within for/do/while loops.
mlr: break statements are only valid within for/do/while loops

View file

@ -1 +1 @@
mlr: break statements are only valid within for/do/while loops.
mlr: break statements are only valid within for/do/while loops

View file

@ -1 +1 @@
mlr: filter statement must not be empty.
mlr: filter statement must not be empty

View file

@ -1 +1 @@
mlr: ENV[...] cannot be indexed.
mlr: ENV[...] cannot be indexed

View file

@ -1,2 +1 @@
mlr: function sort takes maximum argument count 2; got 4.
mlr: function sort takes maximum argument count 2; got 4

View file

@ -1,2 +1 @@
mlr: function sort takes maximum argument count 2; got 4.
mlr: function sort takes maximum argument count 2; got 4

View file

@ -1 +1 @@
mlr: redefinition of variable k in the same scope.
mlr: redefinition of variable k in the same scope

View file

@ -1 +1 @@
mlr: redefinition of variable k in the same scope.
mlr: redefinition of variable k in the same scope

View file

@ -1 +1 @@
mlr: redefinition of variable a in the same scope.
mlr: redefinition of variable a in the same scope

View file

@ -1 +1 @@
mlr: redefinition of variable a in the same scope.
mlr: redefinition of variable a in the same scope

View file

@ -1 +1 @@
mlr: redefinition of variable b in the same scope.
mlr: redefinition of variable b in the same scope

View file

@ -1 +1 @@
mlr: redefinition of variable a in the same scope.
mlr: redefinition of variable a in the same scope

View file

@ -1 +1 @@
mlr: redefinition of variable a in the same scope.
mlr: redefinition of variable a in the same scope

View file

@ -1 +1 @@
mlr: redefinition of variable a in the same scope.
mlr: redefinition of variable a in the same scope

View file

@ -1 +1 @@
mlr: redefinition of variable b in the same scope.
mlr: redefinition of variable b in the same scope

View file

@ -1 +1 @@
mlr: redefinition of variable b in the same scope.
mlr: redefinition of variable b in the same scope

View file

@ -1 +1 @@
mlr: redefinition of variable c in the same scope.
mlr: redefinition of variable c in the same scope

View file

@ -1 +1 @@
mlr: the triple-for continuation statement must be a bare boolean.
mlr: the triple-for continuation statement must be a bare boolean

View file

@ -1 +1 @@
mlr: the final triple-for continuation statement must be a bare boolean.
mlr: the final triple-for continuation statement must be a bare boolean

View file

@ -1 +1 @@
mlr: the non-final triple-for continuation statements must be assignments.
mlr: the non-final triple-for continuation statements must be assignments

View file

@ -1 +1 @@
mlr: the non-final triple-for continuation statements must be assignments.
mlr: the non-final triple-for continuation statements must be assignments

View file

@ -1,2 +1 @@
mlr: couldn't assign variable float i from value int 0

View file

@ -1,2 +1 @@
mlr: couldn't assign variable int i from value float 1.50000000

View file

@ -1,2 +1 @@
mlr: couldn't assign variable int i from value float 1.00000000

View file

@ -1 +1 @@
mlr: lashed-emit node types must be local variables, field names, or oosvars; got map literal.
mlr: lashed-emit node types must be local variables, field names, or oosvars; got map literal

View file

@ -1 +1 @@
mlr: conditional expression did not evaluate to boolean at DSL expression line 5 column 3.
mlr: conditional expression did not evaluate to boolean at DSL expression line 5 column 3

View file

@ -1 +1 @@
mlr: conditional expression did not evaluate to boolean at DSL expression line 6 column 12.
mlr: conditional expression did not evaluate to boolean at DSL expression line 6 column 12

View file

@ -1 +1 @@
mlr: for-loop continuation did not evaluate to boolean at DSL expression line 5 column 9.
mlr: for-loop continuation did not evaluate to boolean at DSL expression line 5 column 9

View file

@ -1 +1 @@
mlr: conditional expression did not evaluate to boolean at DSL expression line 5 column 7.
mlr: conditional expression did not evaluate to boolean at DSL expression line 5 column 7

View file

@ -1 +1 @@
mlr: conditional expression did not evaluate to boolean at DSL expression line 5 column 10.
mlr: conditional expression did not evaluate to boolean at DSL expression line 5 column 10

View file

@ -1,2 +1 @@
mlr: couldn't assign variable map a from value int 2

View file

@ -1,2 +1 @@
mlr: couldn't assign variable map a from value int 2

View file

@ -1,2 +1 @@
mlr: couldn't assign variable str a from value int 1

View file

@ -1,2 +1 @@
mlr: couldn't assign variable int a from value string pan

View file

@ -1,2 +1 @@
mlr: function mapexcept takes minimum argument count 1; got 0.
mlr: function mapexcept takes minimum argument count 1; got 0

View file

@ -1,2 +1 @@
mlr: function mapselect takes minimum argument count 1; got 0.
mlr: function mapselect takes minimum argument count 1; got 0

View file

@ -1,2 +1 @@
mlr: function mapexcept takes minimum argument count 1; got 0.
mlr: function mapexcept takes minimum argument count 1; got 0

View file

@ -1,2 +1 @@
mlr: function mapselect takes minimum argument count 1; got 0.
mlr: function mapselect takes minimum argument count 1; got 0

View file

@ -1,2 +1 @@
mlr: couldn't assign variable map o from value int 1

View file

@ -1,2 +1 @@
mlr: couldn't assign variable map o from value int 1

View file

@ -1 +1 @@
mlr: couldn't assign variable int x from value float 0.34679014
mlr: couldn't assign variable int x from value float 0.34679014

View file

@ -1 +1 @@
mlr: couldn't assign variable int x from value float 0.34679014
mlr: couldn't assign variable int x from value float 0.34679014

View file

@ -1 +1 @@
mlr: couldn't assign variable int x from value float 0.34679014
mlr: couldn't assign variable int x from value float 0.34679014

View file

@ -1 +1 @@
mlr: couldn't assign variable int function return value from value absent (absent)
mlr: couldn't assign variable int function return value from value absent (absent)

View file

@ -1,2 +1 @@
mlr: couldn't assign variable var b from value error (error)

View file

@ -1 +1 @@
mlr: filter expressions must not also contain the "filter" keyword.
mlr: filter expressions must not also contain the "filter" keyword

View file

@ -1 +1 @@
mlr: int literal is not valid for unset statement.
mlr: int literal is not valid for unset statement

View file

@ -1 +1 @@
mlr: return statements in subr blocks must not return a value.
mlr: return statements in subr blocks must not return a value

View file

@ -1 +1 @@
mlr: subroutine named "s" has already been defined.
mlr: subroutine named "s" has already been defined

View file

@ -1 +1 @@
mlr: the triple-for continuation statement must be a bare boolean.
mlr: the triple-for continuation statement must be a bare boolean

View file

@ -1 +1 @@
mlr: the non-final triple-for continuation statements must be assignments.
mlr: the non-final triple-for continuation statements must be assignments

View file

@ -1,2 +1 @@
mlr: couldn't assign variable str x from value int 3

View file

@ -1,2 +1 @@
mlr: couldn't assign variable arr x from value int 3

View file

@ -1 +1 @@
mlr: couldn't assign variable str x from value int 3
mlr: couldn't assign variable str x from value int 3

View file

@ -1 +1 @@
mlr: couldn't assign variable arr x from value int 3
mlr: couldn't assign variable arr x from value int 3

View file

@ -1 +1 @@
mlr: couldn't assign variable str function return value from value int 6
mlr: couldn't assign variable str function return value from value int 6

Some files were not shown because too many files have changed in this diff Show more