Skip to content

Commit 3bea7df

Browse files
committed
add deprecated aliases in the old locations, and use the Query.qll pattern for js/polynomial-redos
1 parent 2e4c2df commit 3bea7df

22 files changed

+120
-43
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/** DEPRECATED. Import `semmle.code.java.security.regexp.ExponentialBackTracking` instead. */
2+
3+
deprecated import semmle.code.java.security.regexp.ExponentialBackTracking as Dep
4+
import Dep
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/** DEPRECATED. Import `semmle.code.java.security.regexp.PolynomialReDoSQuery` instead. */
2+
3+
deprecated import semmle.code.java.security.regexp.PolynomialReDoSQuery as Dep
4+
import Dep
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/** DEPRECATED. Import `semmle.code.java.security.regexp.NfaUtils` instead. */
2+
3+
deprecated import semmle.code.java.security.regexp.NfaUtils as Dep
4+
import Dep
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/** DEPRECATED. Import `semmle.code.java.security.regexp.SuperlinearBackTracking` instead. */
2+
3+
deprecated import semmle.code.java.security.regexp.SuperlinearBackTracking as Dep
4+
import Dep
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/** DEPRECATED. Import `semmle.javascript.security.regexp.ExponentialBackTracking` instead. */
2+
3+
deprecated import semmle.javascript.security.regexp.ExponentialBackTracking as Dep
4+
import Dep
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/** DEPRECATED. Import `PolynomialReDoSQuery` instead. */
2+
3+
import javascript
4+
private import semmle.javascript.security.regexp.PolynomialReDoSQuery as PolynomialReDoSQuery // ignore-query-import
5+
6+
/** DEPRECATED. Import `PolynomialReDoSQuery` instead. */
7+
deprecated module PolynomialReDoS = PolynomialReDoSQuery;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/** DEPRECATED. Import `semmle.javascript.security.regexp.PolynomialReDoSCustomizations` instead. */
2+
3+
deprecated import semmle.javascript.security.regexp.PolynomialReDoSCustomizations as Dep
4+
import Dep
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/** DEPRECATED. Import `semmle.javascript.security.regexp.NfaUtils` instead. */
2+
3+
deprecated import semmle.javascript.security.regexp.NfaUtils as Dep
4+
import Dep
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/** DEPRECATED. Import `semmle.javascript.security.regexp.SuperlinearBackTracking` instead. */
2+
3+
deprecated import semmle.javascript.security.regexp.SuperlinearBackTracking as Dep
4+
import Dep

javascript/ql/lib/semmle/javascript/security/regexp/PolynomialReDoS.qll

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

0 commit comments

Comments
 (0)