Skip to content

Commit a5bc2c1

Browse files
committed
docs: add note about parsing errors for incomplete codebases
1 parent 5862d63 commit a5bc2c1

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,12 @@ import scubatrace
7171
# language can be set to one of the following:
7272
# scubatrace.language.[C, JAVA, PYTHON, JAVASCRIPT, GO, RUST, RUBY, PHP, CSHARP, SWIFT]
7373
project = scubatrace.Project.create("path/to/your/codebase", language=scubatrace.language.C)
74+
```
75+
76+
> [!NOTE]
77+
> Incomplete or broken codebases may cause parsing errors that could result in inaccurate analysis results.
7478
79+
```python
7580
# Get a file from the project
7681
file = project.files["relative/path/to/your/file.c"]
7782

docs/usage.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ Here is a basic example of how to use ScubaTrace to analyze a C project:
2727
# scubatrace.language.[C, JAVA, PYTHON, JAVASCRIPT, GO, RUST, RUBY, PHP, CSHARP, SWIFT]
2828
project = scubatrace.Project.create("path/to/your/codebase", language=scubatrace.language.C)
2929
30+
.. note::
31+
32+
Incomplete or broken codebases may cause parsing errors that could result in inaccurate analysis results.
33+
34+
.. code-block:: python
35+
3036
# Get a file from the project
3137
file = project.files["relative/path/to/your/file.c"]
3238

0 commit comments

Comments
 (0)