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 12fa1839d..dbff15b8a 100644 --- a/src/main/resources/org/eolang/lints/misc/redundant-object.xsl +++ b/src/main/resources/org/eolang/lints/misc/redundant-object.xsl @@ -9,28 +9,25 @@ + + + + + + - - - - - - - - - - - - + + + + + + - - warning - The object is redundant and may be inlined - + diff --git a/src/test/java/benchmarks/SourceBench.java b/src/test/java/benchmarks/SourceBench.java index 965d98c89..51c443654 100644 --- a/src/test/java/benchmarks/SourceBench.java +++ b/src/test/java/benchmarks/SourceBench.java @@ -45,14 +45,10 @@ public class SourceBench { * @todo #555:35min Enable `duplicate-names-in-diff-context` benchmark. * Currently, its slow, especially for `L` and `XL`-sized sources. Let's optimize it, * in order to enable this benchmark. - * @todo #376:60min Enable redundant object in the single XMIR scope benchmarks. - * As for now, the lint is too slow, especially on L, XL and XXL-sized XMIRs. - * This happens mostly because of multiple XPath `//o` selects in the XSL. Once, - * the lint will be optimized, we can enable the lint in the benchmarks. */ @Benchmark public final void scansXmir(final BenchmarkState state) { - new Source(state.xmir).without("redundant-object", "duplicate-names-in-diff-context") + new Source(state.xmir).without("duplicate-names-in-diff-context") .defects(); }