Skip to content

Commit

Permalink
With failing examples
Browse files Browse the repository at this point in the history
  • Loading branch information
noahd1 committed Jan 9, 2025
1 parent 352c725 commit 28ab15e
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
package foobar;

import java.io.*;
import java.util.*;
import java.net.*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
package foobar;

import java.io.*;
import java.util.*;
import java.net.*;
Expand All @@ -12,4 +14,4 @@
import zjava.util.concurrent.atomic.*;
import ajava.nio.*;
import ajava.util.concurrent.*;
import ajava.util.concurrent.atomic.*;
import ajava.util.concurrent.atomic.*;
4 changes: 4 additions & 0 deletions qlty-cli/tests/cmd/smells/ignore_duplication_patterns.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[0/3] 🔍 Analyzing all targets... 0.01s
[1/3] 👀 Checking structure of 4 files... 0.62s
[2/3] 🤔 Looking for duplication across 4 files... 0.04s
[3/3] ✨ Reporting...
2 changes: 2 additions & 0 deletions qlty-cli/tests/cmd/smells/ignore_duplication_patterns.stdout
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

[]
4 changes: 2 additions & 2 deletions qlty-cli/tests/cmd/smells/ignore_duplication_patterns.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
args = ["smells", "--all", "--no-snippets"]
args = ["smells", "--all", "--no-snippets", "--json"]
bin.name = "qlty"
status.code = 0
status.code = 0
2 changes: 2 additions & 0 deletions qlty-config/default.toml
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ smells.duplication.nodes_threshold = 50

[language.java]
globs = ["*.java"]
# smells.duplication.filter_patterns = ["(import_declaration _)"]

[language.javascript]
globs = ["*.js", "*.mjs", "*.cjs", "*.jsx", "**/Jakefile"]
Expand Down Expand Up @@ -438,6 +439,7 @@ globs = ["*.tsx", "*.mtsx", "*.ctsx"]

[language.csharp]
globs = ["*.cs"]
# smells.duplication.filter_patterns = ["(using_directive _)"]

[smells.boolean_logic]
threshold = 4
Expand Down

0 comments on commit 28ab15e

Please sign in to comment.