Skip to content

Commit 871cdb0

Browse files
committed
Ruby: fix TODOs left by the patch query
1 parent 4dc632f commit 871cdb0

File tree

12 files changed

+13
-46
lines changed

12 files changed

+13
-46
lines changed

ruby/ql/lib/codeql/ruby/frameworks/http_clients/Excon.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,7 @@ private module ExconDisablesCertificateValidationConfig implements DataFlow::Con
120120
}
121121

122122
predicate observeDiffInformedIncrementalMode() {
123-
// TODO(diff-informed): Manually verify if config can be diff-informed.
124-
// lib/codeql/ruby/frameworks/http_clients/Excon.qll:74: Flow call outside 'select' clause
125-
none()
123+
none() // Used for a library model
126124
}
127125
}
128126

ruby/ql/lib/codeql/ruby/frameworks/http_clients/Faraday.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,7 @@ private module FaradayDisablesCertificateValidationConfig implements DataFlow::S
101101
}
102102

103103
predicate observeDiffInformedIncrementalMode() {
104-
// TODO(diff-informed): Manually verify if config can be diff-informed.
105-
// lib/codeql/ruby/frameworks/http_clients/Faraday.qll:80: Flow call outside 'select' clause
106-
none()
104+
none() // Used for a library model
107105
}
108106
}
109107

ruby/ql/lib/codeql/ruby/frameworks/http_clients/HttpClient.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,7 @@ private module HttpClientDisablesCertificateValidationConfig implements DataFlow
8282
}
8383

8484
predicate observeDiffInformedIncrementalMode() {
85-
// TODO(diff-informed): Manually verify if config can be diff-informed.
86-
// lib/codeql/ruby/frameworks/http_clients/HttpClient.qll:67: Flow call outside 'select' clause
87-
none()
85+
none() // Used for a library model
8886
}
8987
}
9088

ruby/ql/lib/codeql/ruby/frameworks/http_clients/Httparty.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,7 @@ private module HttpartyDisablesCertificateValidationConfig implements DataFlow::
7272
}
7373

7474
predicate observeDiffInformedIncrementalMode() {
75-
// TODO(diff-informed): Manually verify if config can be diff-informed.
76-
// lib/codeql/ruby/frameworks/http_clients/Httparty.qll:59: Flow call outside 'select' clause
77-
none()
75+
none() // Used for a library model
7876
}
7977
}
8078

ruby/ql/lib/codeql/ruby/frameworks/http_clients/NetHttp.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,7 @@ private module NetHttpDisablesCertificateValidationConfig implements DataFlow::C
105105
}
106106

107107
predicate observeDiffInformedIncrementalMode() {
108-
// TODO(diff-informed): Manually verify if config can be diff-informed.
109-
// lib/codeql/ruby/frameworks/http_clients/NetHttp.qll:90: Flow call outside 'select' clause
110-
none()
108+
none() // Used for a library model
111109
}
112110
}
113111

ruby/ql/lib/codeql/ruby/frameworks/http_clients/OpenURI.qll

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,7 @@ private module OpenUriDisablesCertificateValidationConfig implements DataFlow::C
112112
}
113113

114114
predicate observeDiffInformedIncrementalMode() {
115-
// TODO(diff-informed): Manually verify if config can be diff-informed.
116-
// lib/codeql/ruby/frameworks/http_clients/OpenURI.qll:48: Flow call outside 'select' clause
117-
// lib/codeql/ruby/frameworks/http_clients/OpenURI.qll:95: Flow call outside 'select' clause
118-
none()
115+
none() // Used for a library model
119116
}
120117
}
121118

ruby/ql/lib/codeql/ruby/frameworks/http_clients/RestClient.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,7 @@ private module RestClientDisablesCertificateValidationConfig implements DataFlow
7575
}
7676

7777
predicate observeDiffInformedIncrementalMode() {
78-
// TODO(diff-informed): Manually verify if config can be diff-informed.
79-
// lib/codeql/ruby/frameworks/http_clients/RestClient.qll:60: Flow call outside 'select' clause
80-
none()
78+
none() // Used for a library model
8179
}
8280
}
8381

ruby/ql/lib/codeql/ruby/frameworks/http_clients/Typhoeus.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@ private module TyphoeusDisablesCertificateValidationConfig implements DataFlow::
6666
}
6767

6868
predicate observeDiffInformedIncrementalMode() {
69-
// TODO(diff-informed): Manually verify if config can be diff-informed.
70-
// lib/codeql/ruby/frameworks/http_clients/Typhoeus.qll:53: Flow call outside 'select' clause
71-
none()
69+
none() // Used for a library model
7270
}
7371
}
7472

ruby/ql/lib/codeql/ruby/frameworks/stdlib/Pathname.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ module Pathname {
5454
}
5555

5656
predicate observeDiffInformedIncrementalMode() {
57-
// TODO(diff-informed): Manually verify if config can be diff-informed.
58-
// lib/codeql/ruby/frameworks/stdlib/Pathname.qll:30: Flow call outside 'select' clause
59-
none()
57+
none() // Used for a library model
6058
}
6159
}
6260

ruby/ql/lib/codeql/ruby/security/ConditionalBypassQuery.qll

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,7 @@ private module Config implements DataFlow::ConfigSig {
1818

1919
predicate isBarrier(DataFlow::Node node) { node instanceof Sanitizer }
2020

21-
predicate observeDiffInformedIncrementalMode() {
22-
// TODO(diff-informed): Manually verify if config can be diff-informed.
23-
// src/experimental/cwe-807/ConditionalBypass.ql:78: Flow call outside 'select' clause
24-
none()
25-
}
21+
predicate observeDiffInformedIncrementalMode() { any() }
2622
}
2723

2824
/**

0 commit comments

Comments
 (0)