mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-13 12:15:10 +00:00
JetBrainsClient: Add version guards for inspections calls
This commit is contained in:
1 parent
1d4c460dad
commit
08b87bb03d
1 file changed
+2
@@ -686,6 +686,7 @@ class JetBrainsPluginClient(ToStringMixin):
|
||||
:param start_line: optional start line to restrict the inspection range
|
||||
:param end_line: optional end line to restrict the inspection range
|
||||
"""
|
||||
self._require_version_at_least(2023, 2, 14)
|
||||
request_data: dict[str, Any] = {
|
||||
"relativePath": relative_path,
|
||||
}
|
||||
@@ -710,6 +711,7 @@ class JetBrainsPluginClient(ToStringMixin):
|
||||
:param language: optional language to filter inspections by (e.g. "Java", "Python")
|
||||
:param group_path_contains: optional substring to filter inspection group paths
|
||||
"""
|
||||
self._require_version_at_least(2023, 2, 14)
|
||||
request_data: dict[str, Any] = {}
|
||||
if language is not None:
|
||||
request_data["language"] = language
|
||||
|
||||
Reference in new issue
Block a user