You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit be855ea
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,10 @@
2
2
3
3
## Unreleased
4
4
5
+
### Plugins
6
+
7
+
- Two plugins may declare the same symbol: an identical model is registered once and sinks merge their kinds and positions; a real conflict names both plugins instead of failing the run on the first duplicate (#92).
8
+
5
9
### Precision
6
10
7
11
- A `Sanitizer` declared on a function of the analysed project takes precedence over the summary derived from its body, in the same file and across files, so a code base can declare its own validation layer (#95).
Copy file name to clipboardExpand all lines: docs/plugins.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -142,6 +142,11 @@ class BottleModels(ModelPlugin):
142
142
|`Validator(symbol, kinds=ALL, argument=0)`| A callable whose truth proves its argument safe, such as `re.fullmatch`; a flow guarded by it is refuted. |
143
143
|`AuthorizationGuard(symbol, label)`| A decorator or a condition restricting who reaches the code, such as `login_required`; a flow behind it is a hotspot. |
144
144
145
+
Two plugins may describe the same symbol. An identical model is registered once; two
146
+
`Sink` models merge their kinds and positions, so a plugin can add `SQL` to a sink
147
+
another plugin declared for `COMMAND`; any other difference is a conflict that stops
148
+
the analysis with a `ModelError` naming both plugins.
149
+
145
150
A model plugin may also carry `advisories`, a tuple of `Advisory` values
146
151
(`coretrace_python.dependency`) with the package, the vulnerable range and the affected
147
152
symbols, as the shipped `sample-advisories` plugin does. Requirements matching them are
0 commit comments