Skip to content

Commit caedd25

Browse files
committed
Add docstrings
1 parent b0deb93 commit caedd25

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sonar/applications.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ def delete(self) -> bool:
260260
return super().delete()
261261

262262
def get_hotspots(self, filters: Optional[dict[str, str]] = None) -> dict[str, object]:
263+
"""Returns the security hotspots of the application (ie of its projects or branches)"""
263264
new_filters = filters.copy() if filters else {}
264265
pattern = new_filters.pop("branch", None) if new_filters else None
265266
if not pattern:
@@ -271,6 +272,7 @@ def get_hotspots(self, filters: Optional[dict[str, str]] = None) -> dict[str, ob
271272
return findings_list
272273

273274
def get_issues(self, filters: Optional[dict[str, str]] = None) -> dict[str, object]:
275+
"""Returns the issues of the application (ie of its projects or branches)"""
274276
new_filters = filters.copy() if filters else {}
275277
pattern = new_filters.pop("branch", None) if new_filters else None
276278
if not pattern:

0 commit comments

Comments
 (0)