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 2a79c63
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@
4
4
5
5
### Plugins
6
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).
7
8
- A plugin's entrypoint may be a package, `<module>/__init__.py`, so a plugin can split its tables across files and import them relatively (#93).
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
@@ -147,6 +147,11 @@ class BottleModels(ModelPlugin):
147
147
|`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. |
148
148
|`AuthorizationGuard(symbol, label)`| A decorator or a condition restricting who reaches the code, such as `login_required`; a flow behind it is a hotspot. |
149
149
150
+
Two plugins may describe the same symbol. An identical model is registered once; two
151
+
`Sink` models merge their kinds and positions, so a plugin can add `SQL` to a sink
152
+
another plugin declared for `COMMAND`; any other difference is a conflict that stops
153
+
the analysis with a `ModelError` naming both plugins.
154
+
150
155
A model plugin may also carry `advisories`, a tuple of `Advisory` values
151
156
(`coretrace_python.dependency`) with the package, the vulnerable range and the affected
152
157
symbols, as the shipped `sample-advisories` plugin does. Requirements matching them are
0 commit comments