[13/33] Add .cocciconfig

Submitted by Lyude Paul on June 10, 2019, 3:03 p.m.

Details

Message ID 20190610150321.512-13-lyude@redhat.com
State New
Headers show
Series "Series without cover letter" ( rev: 1 ) in IGT - Trybot

Not browsing as part of any series.

Commit Message

Lyude Paul June 10, 2019, 3:03 p.m.
From: Lyude Paul <lyude@redhat.com>

To save everyone some typing

Signed-off-by: Lyude Paul <lyude@redhat.com>
---
 .cocciconfig  | 3 +++
 lib/igt.cocci | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)
 create mode 100644 .cocciconfig

Patch hide | download patch | download mbox

diff --git a/.cocciconfig b/.cocciconfig
new file mode 100644
index 00000000..9db38c28
--- /dev/null
+++ b/.cocciconfig
@@ -0,0 +1,3 @@ 
+[spatch]
+	options = --sp-file lib/igt.cocci
+	options = --use-gitgrep
diff --git a/lib/igt.cocci b/lib/igt.cocci
index 4f3916ff..c02d85b0 100644
--- a/lib/igt.cocci
+++ b/lib/igt.cocci
@@ -1,7 +1,7 @@ 
 // Semantic patch for common patterns and their replacement by igt
 // infrastructure and macros. Please run with
 //
-// spatch --sp-file lib/igt.cocci --in-place tests/*.c
+// spatch --in-place --dir tests/
 //
 // on your new testcase.