diff --git a/pom.xml b/pom.xml index 110a91f..4073a8e 100644 --- a/pom.xml +++ b/pom.xml @@ -106,7 +106,7 @@ SOFTWARE. org.eolang eo-parser - 0.43.1 + 0.43.2 test diff --git a/src/main/resources/org/eolang/lints/critical/not-empty-atoms.xsl b/src/main/resources/org/eolang/lints/critical/atom-in-atom.xsl similarity index 71% rename from src/main/resources/org/eolang/lints/critical/not-empty-atoms.xsl rename to src/main/resources/org/eolang/lints/critical/atom-in-atom.xsl index c87d040..ec74377 100644 --- a/src/main/resources/org/eolang/lints/critical/not-empty-atoms.xsl +++ b/src/main/resources/org/eolang/lints/critical/atom-in-atom.xsl @@ -22,31 +22,10 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --> - + - - - - - - - error - - The atom ' - - ' may not have any attributes: - - - , - - ' - - ' - - - diff --git a/src/main/resources/org/eolang/lints/critical/not-empty-atom.xsl b/src/main/resources/org/eolang/lints/critical/not-empty-atom.xsl new file mode 100644 index 0000000..556912f --- /dev/null +++ b/src/main/resources/org/eolang/lints/critical/not-empty-atom.xsl @@ -0,0 +1,52 @@ + + + + + + + + + + + + + error + + The atom ' + + ' may not have any attributes: + + + , + + ' + + ' + + + + + + diff --git a/src/main/resources/org/eolang/lints/errors/global-nonames.xsl b/src/main/resources/org/eolang/lints/errors/global-noname.xsl similarity index 98% rename from src/main/resources/org/eolang/lints/errors/global-nonames.xsl rename to src/main/resources/org/eolang/lints/errors/global-noname.xsl index dc58181..eb914b8 100644 --- a/src/main/resources/org/eolang/lints/errors/global-nonames.xsl +++ b/src/main/resources/org/eolang/lints/errors/global-noname.xsl @@ -22,7 +22,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --> - + diff --git a/src/main/resources/org/eolang/lints/errors/noname-attributes.xsl b/src/main/resources/org/eolang/lints/errors/noname-attribute.xsl similarity index 96% rename from src/main/resources/org/eolang/lints/errors/noname-attributes.xsl rename to src/main/resources/org/eolang/lints/errors/noname-attribute.xsl index c321414..c0178bc 100644 --- a/src/main/resources/org/eolang/lints/errors/noname-attributes.xsl +++ b/src/main/resources/org/eolang/lints/errors/noname-attribute.xsl @@ -22,7 +22,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --> - + diff --git a/src/main/resources/org/eolang/lints/errors/unknown-names.xsl b/src/main/resources/org/eolang/lints/errors/unknown-name.xsl similarity index 98% rename from src/main/resources/org/eolang/lints/errors/unknown-names.xsl rename to src/main/resources/org/eolang/lints/errors/unknown-name.xsl index 4dfc260..01a0cab 100644 --- a/src/main/resources/org/eolang/lints/errors/unknown-names.xsl +++ b/src/main/resources/org/eolang/lints/errors/unknown-name.xsl @@ -22,7 +22,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --> - + diff --git a/src/main/resources/org/eolang/lints/refs/broken-refs.xsl b/src/main/resources/org/eolang/lints/refs/broken-ref.xsl similarity index 98% rename from src/main/resources/org/eolang/lints/refs/broken-refs.xsl rename to src/main/resources/org/eolang/lints/refs/broken-ref.xsl index 42c1e6d..c5b5e8a 100644 --- a/src/main/resources/org/eolang/lints/refs/broken-refs.xsl +++ b/src/main/resources/org/eolang/lints/refs/broken-ref.xsl @@ -22,7 +22,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --> - + diff --git a/src/test/resources/org/eolang/lints/broken-alias/catches-broken-aliases.yaml b/src/test/resources/org/eolang/lints/broken-alias/catches-broken-aliases.yaml index 559f752..52668f1 100644 --- a/src/test/resources/org/eolang/lints/broken-alias/catches-broken-aliases.yaml +++ b/src/test/resources/org/eolang/lints/broken-alias/catches-broken-aliases.yaml @@ -24,13 +24,12 @@ xsls: - /org/eolang/parser/expand-aliases.xsl - /org/eolang/lints/aliases/broken-alias.xsl tests: - - /defects[count(defect[@severity='error'])=22] + - /defects[count(defect[@severity='error'])=21] eo: | +alias FirstLetter Capital.Letters.Prohibited.Here +alias good Should.Be.Small +alias with-Dash-and-number-999 0.1.2 +alias caseInsensitive thiS.IS.2 - +alias the symbol.is.not.allowed +alias the! symbol.is.not.allowed +alias the" symbol.is.not.allowed +alias the# symbol.is.not.allowed diff --git a/src/test/resources/org/eolang/lints/broken-refs/broken-refs.yaml b/src/test/resources/org/eolang/lints/broken-refs/broken-refs.yaml index 058d340..f9860f9 100644 --- a/src/test/resources/org/eolang/lints/broken-refs/broken-refs.yaml +++ b/src/test/resources/org/eolang/lints/broken-refs/broken-refs.yaml @@ -22,7 +22,7 @@ --- xsls: - /org/eolang/parser/add-refs.xsl - - /org/eolang/lints/refs/broken-refs.xsl + - /org/eolang/lints/refs/broken-ref.xsl tests: - /defects[count(*)=0] eo: | diff --git a/src/test/resources/org/eolang/lints/catches-global-nonames.yaml b/src/test/resources/org/eolang/lints/catches-global-nonames.yaml index 2aab46c..f9bf0a0 100644 --- a/src/test/resources/org/eolang/lints/catches-global-nonames.yaml +++ b/src/test/resources/org/eolang/lints/catches-global-nonames.yaml @@ -21,7 +21,7 @@ # SOFTWARE. --- xsls: - - /org/eolang/lints/errors/global-nonames.xsl + - /org/eolang/lints/errors/global-noname.xsl tests: - /defects[count(defect[@severity='error'])=1] - /defects/defect[@line='3'] diff --git a/src/test/resources/org/eolang/lints/catches-noname-attrs.yaml b/src/test/resources/org/eolang/lints/catches-noname-attrs.yaml index 644afd1..3c28c04 100644 --- a/src/test/resources/org/eolang/lints/catches-noname-attrs.yaml +++ b/src/test/resources/org/eolang/lints/catches-noname-attrs.yaml @@ -22,7 +22,7 @@ --- xsls: - /org/eolang/parser/wrap-method-calls.xsl - - /org/eolang/lints/errors/noname-attributes.xsl + - /org/eolang/lints/errors/noname-attribute.xsl tests: - /defects[count(defect[@severity='error'])=4] - /defects/defect[@line='3'] diff --git a/src/test/resources/org/eolang/lints/catches-unknown-names.yaml b/src/test/resources/org/eolang/lints/catches-unknown-names.yaml index 3861efa..783e9d8 100644 --- a/src/test/resources/org/eolang/lints/catches-unknown-names.yaml +++ b/src/test/resources/org/eolang/lints/catches-unknown-names.yaml @@ -21,7 +21,7 @@ # SOFTWARE. --- xsls: - - /org/eolang/lints/errors/unknown-names.xsl + - /org/eolang/lints/errors/unknown-name.xsl tests: - /defects[count(defect[@severity='error'])=1] - /defects/defect[@line='5']