diff --git a/src/main/resources/org/eolang/lints/design/unoptimizable-recursion.xsl b/src/main/resources/org/eolang/lints/design/unoptimizable-recursion.xsl index 7cab376a3..ddabded37 100644 --- a/src/main/resources/org/eolang/lints/design/unoptimizable-recursion.xsl +++ b/src/main/resources/org/eolang/lints/design/unoptimizable-recursion.xsl @@ -92,7 +92,7 @@ - + diff --git a/src/test/resources/org/eolang/lints/packs/single/unoptimizable-recursion/allows-a-nested-method-that-builds-a-new-copy-of-its-owner.yaml b/src/test/resources/org/eolang/lints/packs/single/unoptimizable-recursion/allows-a-nested-method-that-builds-a-new-copy-of-its-owner.yaml new file mode 100644 index 000000000..4e5597b84 --- /dev/null +++ b/src/test/resources/org/eolang/lints/packs/single/unoptimizable-recursion/allows-a-nested-method-that-builds-a-new-copy-of-its-owner.yaml @@ -0,0 +1,11 @@ +# SPDX-FileCopyrightText: Copyright (c) 2016-2026 Objectionary.com +# SPDX-License-Identifier: MIT +--- +sheets: + - /org/eolang/lints/design/unoptimizable-recursion.xsl +defects: 0 +input: | + [x] > box + x > @ + [y] > plus + box y > @