Skip to content

Commit

Permalink
fix(#3035): fix ./eo-parser yaml linting errors and warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
slry committed Apr 21, 2024
1 parent 03d59a7 commit 7ee9ebc
Show file tree
Hide file tree
Showing 167 changed files with 244 additions and 77 deletions.
@@ -1,3 +1,4 @@
---
tests:
- /program/errors[count(error)=0]
- //o[@name='a' and @loc='桅.org.abc.a']
Expand Down Expand Up @@ -36,5 +37,5 @@ eo: |
6.2
[e]
e.hello > @
$.&.^.p > q
@@ -1,3 +1,4 @@
---
tests:
- /program/errors[count(error)=0]
- /program/sheets/sheet[contains(text(),'add-probes')]
Expand Down
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/wrap-method-calls.xsl
- /org/eolang/parser/expand-qqs.xsl
Expand Down
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/add-refs.xsl
- /org/eolang/parser/expand-aliases.xsl
Expand Down
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/critical-errors/duplicate-names.xsl
- /org/eolang/parser/errors/self-naming.xsl
Expand Down
@@ -1,3 +1,4 @@
---
xsls: [ ]
tests:
- /program/errors[count(*)=0]
Expand All @@ -19,7 +20,7 @@ tests:
- //o[@base='string' and @name='textX' and @data]
eo: |
+package test
01- > bytesX
00-02-4F-1A-FF-01 > bytesX
Expand Down
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/add-refs.xsl
- /org/eolang/parser/errors/broken-refs.xsl
Expand All @@ -9,4 +10,4 @@ eo: |
# This is the default 64+ symbols comment in front of abstract object.
[] > app
42 > a
a.plus 1 > @
a.plus 1 > @
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/errors/abstract-decoratee.xsl
tests:
Expand Down
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/errors/duplicate-aliases.xsl
tests:
Expand Down
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/errors/rt-and-atoms.xsl
tests:
Expand Down
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/errors/broken-aliases.xsl
tests:
Expand Down
@@ -1,4 +1,5 @@
xsls: []
---
xsls: [ ]
tests:
- /program/errors[count(error)=0]
eo: |
Expand Down
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/warnings/duplicate-metas.xsl
tests:
Expand Down
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/critical-errors/duplicate-names.xsl
tests:
Expand Down
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/warnings/correct-package-meta.xsl
tests:
Expand Down
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/errors/external-weak-typed-atoms.xsl
tests:
Expand Down
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/errors/global-nonames.xsl
tests:
Expand All @@ -7,5 +8,5 @@ eo: |
3.14 > pi
fake
a.b > good
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/warnings/incorrect-architect.xsl
tests:
Expand Down
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/warnings/incorrect-home.xsl
tests:
Expand All @@ -12,7 +13,7 @@ eo: |
+home www.something.com
+alias org.eolang.io.stdout
+home https://|http/wrong.com
# This is the default 64+ symbols comment in front of abstract object.
[x] > foo
x.div in.nextInt > @
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/warnings/incorrect-version.xsl
tests:
Expand Down
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/warnings/mandatory-home-meta.xsl
tests:
Expand Down
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/warnings/mandatory-package-meta.xsl
tests:
Expand Down
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/warnings/mandatory-version-meta.xsl
tests:
Expand Down
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/errors/many-free-attributes.xsl
tests:
Expand Down
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/warnings/unsorted-metas.xsl
tests:
Expand Down
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/critical-errors/duplicate-names.xsl
tests:
Expand Down
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/wrap-method-calls.xsl
- /org/eolang/parser/errors/noname-attributes.xsl
Expand Down
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/warnings/mandatory-home-meta.xsl
tests:
Expand Down
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/warnings/mandatory-package-meta.xsl
tests:
Expand Down
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/warnings/mandatory-version-meta.xsl
tests:
Expand Down
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/critical-errors/duplicate-names.xsl
- /org/eolang/parser/errors/duplicate-aliases.xsl
Expand All @@ -17,4 +18,4 @@ eo: |
[x] > foo
stdout > @
sprintf
"Hello"
"Hello"
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/warnings/prohibited-package.xsl
tests:
Expand All @@ -7,4 +8,4 @@ eo: |
+package org.eolang
# This is the default 64+ symbols comment in front of abstract object.
[] > main
[] > main
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/errors/rt-and-atoms.xsl
tests:
Expand Down
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/errors/self-naming.xsl
tests:
Expand Down
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/errors/self-naming.xsl
tests:
Expand Down
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/errors/self-naming.xsl
tests:
Expand Down
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/errors/self-naming.xsl
tests:
Expand Down
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/errors/signed-binding-indexes.xsl
tests:
Expand Down
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/warnings/sparse-decoration.xsl
tests:
Expand All @@ -24,7 +25,7 @@ eo: |
true
5
five
# This is the default 64+ symbols comment in front of abstract object.
[free] > decorates-with-free-args
five > @
Expand Down
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/warnings/unit-test-without-phi.xsl
tests:
Expand Down
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/errors/unknown-names.xsl
tests:
Expand Down
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/expand-aliases.xsl
- /org/eolang/parser/resolve-aliases.xsl
Expand Down
@@ -1,3 +1,4 @@
---
tests:
- //o[@base='.as-bytes' and @line and @pos and @name='x' and o[@base='org.eolang.dataized' and o[@base='org.eolang.int' and not(@name)]]]
- //o[@base='.as-bytes' and @line and @pos and @name='m' and o[@base='org.eolang.dataized' and o[@abstract and @name='m-3' and count(o)=2]]]
Expand Down
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/cti/cti-adds-errors.xsl
tests:
Expand All @@ -19,4 +20,4 @@ eo: |
QQ.io.stdout > @
QQ.txt.sprintf
"The result is %d\n"
foo
foo
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/cti/cti-adds-errors.xsl
tests:
Expand All @@ -19,4 +20,4 @@ eo: |
QQ.io.stdout > @
QQ.txt.sprintf
"The result is %d\n"
foo
foo
@@ -1,3 +1,4 @@
---
tests:
- /program/errors[count(*)=0]
- //o[@name='foo' and count(o)=2]
Expand All @@ -7,7 +8,7 @@ eo: |
+home https://github.com/objectionary/eo
+package test
+version 0.0.0
# This is the default 64+ symbols comment in front of abstract object.
[x] > foo
# This is the default 64+ symbols comment in front of abstract object.
Expand Down
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/expand-qqs.xsl
tests:
Expand All @@ -10,7 +11,7 @@ tests:
- //metas[count(.//meta[head/text()='alias']/*[text()[starts-with(., 'Q.org.eolang.txt.sprintfQQ')]])=2]
eo: |
+alias QQ.txt.sprintfQQ
# This is the default 64+ symbols comment in front of abstract object.
[] > app
QQ.io.stdout > @
Expand Down
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/expand-aliases.xsl
tests:
Expand All @@ -7,7 +8,7 @@ tests:
eo: |
+alias org.eolang.txt.scanner
+alias stdin org.eolang.io.stdin
# This is the default 64+ symbols comment in front of abstract object.
[args] > main
and
Expand Down
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/wrap-method-calls.xsl
- /org/eolang/parser/expand-qqs.xsl
Expand Down
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/optimize/remove-refs.xsl
- /org/eolang/parser/optimize/abstracts-float-up.xsl
Expand Down
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/vars-float-up.xsl
tests:
Expand Down
@@ -1,3 +1,4 @@
---
xsls:
- /org/eolang/parser/add-refs.xsl
- /org/eolang/parser/vars-float-up.xsl
Expand Down Expand Up @@ -33,7 +34,7 @@ eo: |
# This is the default 64+ symbols comment in front of abstract object.
[] > last
three 1

# This is the default 64+ symbols comment in front of abstract object.
[ppp] > pp
one
Expand Down
@@ -1,4 +1,5 @@
xsls: []
---
xsls: [ ]
tests:
- /program/errors[count(error)=0]
- /program/license[text()!='']
Expand Down Expand Up @@ -79,7 +80,7 @@ eo: |
@.
b
oops

# This is the default 64+ symbols comment in front of abstract object.
[] > obj
"some" > @
Expand Down
@@ -1,4 +1,5 @@
xsls: []
---
xsls: [ ]
tests:
- /program/comment()[1]
eo: |
Expand Down

0 comments on commit 7ee9ebc

Please sign in to comment.