Skip to content

Commit 9884af4

Browse files
fix codacy.generic.sql.lookup-type-without-language-or-apps-fnd
1 parent 99bfc22 commit 9884af4

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG OPENGREP_VERSION=v1.17.0
1+
ARG OPENGREP_VERSION=v1.18.0
22

33
# Build codacy-opengrep wrapper
44
FROM golang:1.23-alpine3.21 AS builder

docs/codacy-rules.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,9 @@ rules:
322322
languages:
323323
- generic
324324
patterns:
325-
- pattern-either:
326-
- pattern-regex: "(?i)lookup_type(?![^;]{0,200}language\\s*=)"
327-
- pattern-regex: "apps\\.fnd_lookup_values"
325+
- pattern-either:
326+
- pattern-regex: "(?is)\\bselect\\b(?!(?:[^;]*)\\blanguage\\b)[^;]*\\blookup_type\\b"
327+
- pattern-regex: "(?i)apps\\.fnd_lookup_values"
328328
paths:
329329
include:
330330
- "*.sql"

0 commit comments

Comments
 (0)