diff --git a/src/main/resources/org/eolang/lints/misc/redundant-object.xsl b/src/main/resources/org/eolang/lints/misc/redundant-object.xsl index 578a273f8..298e1d1e2 100644 --- a/src/main/resources/org/eolang/lints/misc/redundant-object.xsl +++ b/src/main/resources/org/eolang/lints/misc/redundant-object.xsl @@ -8,7 +8,7 @@ - + diff --git a/src/test/resources/org/eolang/lints/packs/single/redundant-object/allows-object-refs-in-absolute-form.yaml b/src/test/resources/org/eolang/lints/packs/single/redundant-object/allows-object-refs-in-absolute-form.yaml new file mode 100644 index 000000000..1a1bd3f22 --- /dev/null +++ b/src/test/resources/org/eolang/lints/packs/single/redundant-object/allows-object-refs-in-absolute-form.yaml @@ -0,0 +1,26 @@ +# SPDX-FileCopyrightText: Copyright (c) 2016-2026 Objectionary.com +# SPDX-License-Identifier: MIT +--- +sheets: + - /org/eolang/lints/misc/redundant-object.xsl +defects: 0 +input: | + [] > os + name > @ + as-bool. > is-linux + exists. + next. + match. + regex "/linux/i" + name + + or. ++> can-check-the-os-family + os.is-windows.or os.is-macos + os.is-linux + + not. ++> can-tell-it-does-not-belong-to-two-os-families-at-once + or. + or. + os.is-linux.and os.is-macos + os.is-linux.and os.is-windows + os.is-macos.and os.is-windows