Skip to content

Commit f979fe0

Browse files
refactor(#972): remove duplicate-names-in-diff-context lint
1 parent 2e3ea4a commit f979fe0

14 files changed

Lines changed: 1 addition & 273 deletions

src/main/resources/org/eolang/lints/misc/duplicate-names-in-diff-context.xsl

Lines changed: 0 additions & 47 deletions
This file was deleted.

src/main/resources/org/eolang/motives/misc/duplicate-names-in-diff-context.md

Lines changed: 0 additions & 24 deletions
This file was deleted.

src/test/java/benchmarks/SourceBench.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,14 @@ public class SourceBench {
4141
* Benchmark for XMIR scanning.
4242
* Scans XMIR.
4343
* @param state State
44-
* @todo #555:35min Enable `duplicate-names-in-diff-context` benchmark.
45-
* Currently, its slow, especially for `L` and `XL`-sized sources. Let's optimize it,
46-
* in order to enable this benchmark.
4744
* @todo #376:60min Enable redundant object in the single XMIR scope benchmarks.
4845
* As for now, the lint is too slow, especially on L, XL and XXL-sized XMIRs.
4946
* This happens mostly because of multiple XPath `//o` selects in the XSL. Once,
5047
* the lint will be optimized, we can enable the lint in the benchmarks.
5148
*/
5249
@Benchmark
5350
public final void scansXmir(final BenchmarkState state) {
54-
new Source(state.xmir).without("redundant-object", "duplicate-names-in-diff-context")
51+
new Source(state.xmir).without("redundant-object")
5552
.defects();
5653
}
5754

src/test/resources/org/eolang/lints/packs/single/duplicate-names-in-diff-context/allows-duplicate-names-in-sibling-branches.yaml

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/test/resources/org/eolang/lints/packs/single/duplicate-names-in-diff-context/allows-duplicate-names-in-tests.yaml

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/test/resources/org/eolang/lints/packs/single/duplicate-names-in-diff-context/allows-duplicates-in-voids.yaml

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/test/resources/org/eolang/lints/packs/single/duplicate-names-in-diff-context/allows-special-names.yaml

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/test/resources/org/eolang/lints/packs/single/duplicate-names-in-diff-context/catches-duplicate-names-in-diff-context.yaml

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/test/resources/org/eolang/lints/packs/single/duplicate-names-in-diff-context/catches-duplicated-names-in-deep-hierarchy.yaml

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/test/resources/org/eolang/lints/packs/single/duplicate-names-in-diff-context/catches-duplicated-names-on-multiple-lines.yaml

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)