feat(#566): add invalid-name-notation lint - #1235
Open
VasilevNStas wants to merge 3 commits into
Open
Conversation
Contributor
Author
|
@yegor256 @volodya-lombrozo plz review |
volodya-lombrozo
suggested changes
Aug 16, 2026
volodya-lombrozo
suggested changes
Aug 16, 2026
volodya-lombrozo
left a comment
Member
There was a problem hiding this comment.
@VasilevNStas Thank you for the contribution! Could you clarify the questions below, please?
VasilevNStas
force-pushed
the
fix/issue-566-invalid-name-notation
branch
3 times, most recently
from
August 16, 2026 12:56
11d7982 to
550e172
Compare
VasilevNStas
force-pushed
the
fix/issue-566-invalid-name-notation
branch
from
August 16, 2026 13:07
550e172 to
9f51cec
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix #566
New lint
invalid-name-notationchecks that every@namein the XMIR matches[a-z]+(-[a-z]+)*— kebab-case, Latin letters only, no digits/underscores/uppercase, as requested in #566.src/main/resources/org/eolang/lints/names/invalid-name-notation.xsl— the lint (warning severity, samedefectshape asnon-kebab-name).src/main/resources/org/eolang/motives/names/invalid-name-notation.md— motive.eo:specialnow also recognizesξ(xi), an internal parser symbol alongsideφ/λ; otherwise parser-generated<o name="ξ"/>inside atoms would be flagged.φ,λ,a🌵N-Nauto-names and test names), allows-throwing-test-name, catches-invalid-names.canonical.eo: renamed the[i1]lambda parameter to[i]incanonical.eo— digits are now forbidden by design (confirmed by @yegor256 ininvalid-name-notationLint for@nameAttribute Matching Not Created #566).Verified:
mvn clean install -Pqulicegreen (404 LtByXslTest + all suites),mvn jmh:benchmarkpassed.