We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03b4e0b commit 04bfca3Copy full SHA for 04bfca3
sonar/branches.py
@@ -317,13 +317,15 @@ def rename(self, new_name: str) -> bool:
317
Branch.CACHE.put(self)
318
return True
319
320
- def get_findings(self) -> dict[str, object]:
+ def get_findings(self, filters: Optional[types.ApiParams] = None) -> dict[str, object]:
321
"""Returns a branch list of findings
322
323
:return: dict of Findings, with finding key as key
324
:rtype: dict{key: Finding}
325
"""
326
- return self.get_issues() | self.get_hotspots()
+ if not filters:
327
+ return self.concerned_object.get_findings(branch=self.name)
328
+ return self.get_issues(filters) | self.get_hotspots(filters)
329
330
def component_data(self) -> dict[str, str]:
331
"""Returns key data"""
0 commit comments