From 98f660794ac88fb335c8ae02ab83b5c1e7e2e729 Mon Sep 17 00:00:00 2001 From: Yegor Bugayenko Date: Thu, 13 Aug 2026 16:14:11 +0300 Subject: [PATCH 1/4] fix(#1261): stop redundant-attachment from contradicting anonymous-formation (#1262) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(#1261): stop redundant-attachment from contradicting anonymous-formation `redundant-attachment` asked for the `>>` to go from every auto-named object with no referrer, while `anonymous-formation` asked for the name back on every unnamed formation reaching into `ξ.ρ.*`. A formation that reads its enclosing scope satisfied neither, so no source could reach zero warnings. The set of objects a formation reads from outside itself is now a shared function, `eo:outer-refs`, used by both lints from their opposite sides. `redundant-attachment` skips an object whose body holds such a reference, since dropping its name would only trade one warning for the other. The rule also fired on auto-names the parser invents on its own, for a nameless `!` const argument, where the source has no `>>` to delete; those `.as-bytes` wrappers over `Φ.dataized` are now left alone. With both false positives gone, `canonical.eo` no longer needs `+unlint redundant-attachment`: its `[i]`/`[i1]` closures keep the `>>` they need, and the self-contained `[x]` drops the one it does not. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01Hw5qR8Jk8bJN2EsjPdMWSK * docs(#1261): make vale happy on the redundant-attachment motive Dropped "over and above" (Oxford comma and word-list rules), the hyphen in "auto-generated" and the bare "const", none of which the prose styles accept. Verified with vale 3.17.0, the version CI pins: 0 errors, 0 warnings, 0 suggestions across all 86 motive files. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01Hw5qR8Jk8bJN2EsjPdMWSK --------- Co-authored-by: Claude --- .../org/eolang/lints/misc/redundant-attachment.xsl | 9 +-------- .../org/eolang/motives/misc/redundant-attachment.md | 13 ------------- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/src/main/resources/org/eolang/lints/misc/redundant-attachment.xsl b/src/main/resources/org/eolang/lints/misc/redundant-attachment.xsl index 9288c9536..c44404001 100644 --- a/src/main/resources/org/eolang/lints/misc/redundant-attachment.xsl +++ b/src/main/resources/org/eolang/lints/misc/redundant-attachment.xsl @@ -21,14 +21,7 @@ - - +