-
Notifications
You must be signed in to change notification settings - Fork 16
Improve compound name linting and idiomatic checks #809
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
d2b0284
15834b9
df46a54
2e868c8
9cf073b
d6981d9
dfe116a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,16 @@ | ||||||
| # SPDX-FileCopyrightText: Copyright (c) 2016-2026 Objectionary.com | ||||||
| # SPDX-License-Identifier: MIT | ||||||
| --- | ||||||
| sheets: | ||||||
| - /org/eolang/lints/names/compound-name.xsl | ||||||
| asserts: | ||||||
| - /defects[count(defect[@severity='warning'])=0] | ||||||
|
||||||
| - /defects[count(defect[@severity='warning'])=0] | |
| - /defects[count(defect)=0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The exemption is currently overly broad: any compound name starting with
as-oris-bypasses the lint (e.g.,as-very-long-compound-name), which undermines the rule and makes it easy to evade. Consider tighteningeo:idiomatic($name)to only allow the intended idiomatic form (e.g., a single hyphen with a simple suffix via a regex like^(as|is)-[a-z0-9]+$, or another clearly bounded pattern consistent with EO stdlib naming).