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
The reason will be displayed to describe this comment to others. Learn more.
SonarQube Report
SonarQube report for Airbyte Connectors Source Google Workspace Admin Reports(#10638)
Measures
Name
Value
Name
Value
Name
Value
Lines to Cover
164
Duplicated Lines (%)
0.0
Reliability Rating
A
Bugs
0
Duplicated Blocks
0
Vulnerabilities
0
Security Rating
A
Coverage
0.0
Lines of Code
181
Quality Gate Status
OK
Code Smells
21
Blocker Issues
0
Critical Issues
0
Major Issues
0
Minor Issues
21
Detected Issues
Rule
File
Description
Message
python:mypy_assignment (MINOR)
source_google_workspace_admin_reports/api.py:183
Check that assigned value is compatible with target
Incompatible types in assignment (expression has type "str", base class "ActivitiesAPI" defined the type as "None") . Code line: application_name = "meet"
python:mypy_attr_defined (MINOR)
source_google_workspace_admin_reports/api.py:131
Check that attribute exists
Module has no attribute "parse" . Code line: record[self.state_pk] = pendulum.parse(record[self.state_p...
python:mypy_assignment (MINOR)
source_google_workspace_admin_reports/api.py:123
Check that assigned value is compatible with target
Incompatible default for argument "params" (default has type "None", argument has type "Mapping[str, Any]") . Code line: ...self, getter: Callable, params: Mapping[str, Any] = None) -> Iterator:
python:mypy_arg_type (MINOR)
source_google_workspace_admin_reports/api.py:127
Check argument types in calls
Argument 2 to "read" of "StreamAPI" has incompatible type "Mapping[str, Any]"; expected "Dict[Any, Any]" . Code line: for record in super().read(getter, params):
python:mypy_attr_defined (MINOR)
source_google_workspace_admin_reports/api.py:130
Check that attribute exists
Module has no attribute "parse" . Code line: cursor = pendulum.parse(record[self.state_pk])
python:mypy_import (MINOR)
source_google_workspace_admin_reports/api.py:15
Require that imported module can be found or has stubs
Library stubs not installed for "pytz" (or incompatible with Python 3.7) . Code line: import pytz
python:mypy_no_any_return (MINOR)
source_google_workspace_admin_reports/api.py:36
Reject returning value with "Any" type if return type is not "Any"
Returning Any from function declared to return "Dict[Any, Any]" . Code line: return account_info
python:mypy_assignment (MINOR)
source_google_workspace_admin_reports/api.py:54
Check that assigned value is compatible with target
Incompatible default for argument "params" (default has type "None", argument has type "Dict[Any, Any]") . Code line: def get(self, name: str, params: Dict = None) -> Dict:
python:mypy_misc (MINOR)
source_google_workspace_admin_reports/api.py:57
Miscellaneous other checks
"None" not callable . Code line: response = self._resource().list(**params).execute()
python:mypy_no_any_return (MINOR)
source_google_workspace_admin_reports/api.py:58
Reject returning value with "Any" type if return type is not "Any"
Returning Any from function declared to return "Dict[Any, Any]" . Code line: return response
python:mypy_assignment (MINOR)
source_google_workspace_admin_reports/api.py:77
Check that assigned value is compatible with target
Incompatible default for argument "params" (default has type "None", argument has type "Dict[Any, Any]") . Code line: def _api_get(self, resource: str, params: Dict = None):
python:mypy_assignment (MINOR)
source_google_workspace_admin_reports/api.py:81
Check that assigned value is compatible with target
Incompatible default for argument "fields" (default has type "None", argument has type "Sequence[str]") . Code line: def list(self, fields: Sequence[str] = None) -> Iterator[dict]:
python:mypy_assignment (MINOR)
source_google_workspace_admin_reports/api.py:88
Check that assigned value is compatible with target
Incompatible default for argument "params" (default has type "None", argument has type "Dict[Any, Any]") . Code line: def read(self, getter: Callable, params: Dict = None) -> Iterator:
python:mypy_assignment (MINOR)
source_google_workspace_admin_reports/api.py:161
Check that assigned value is compatible with target
Incompatible default for argument "fields" (default has type "None", argument has type "Sequence[str]") . Code line: def list(self, fields: Sequence[str] = None) -> Iterator[dict]:
python:mypy_assignment (MINOR)
source_google_workspace_admin_reports/api.py:168
Check that assigned value is compatible with target
Incompatible types in assignment (expression has type "str", base class "ActivitiesAPI" defined the type as "None") . Code line: application_name = "admin"
python:mypy_assignment (MINOR)
source_google_workspace_admin_reports/api.py:173
Check that assigned value is compatible with target
Incompatible types in assignment (expression has type "str", base class "ActivitiesAPI" defined the type as "None") . Code line: application_name = "drive"
python:mypy_assignment (MINOR)
source_google_workspace_admin_reports/api.py:178
Check that assigned value is compatible with target
Incompatible types in assignment (expression has type "str", base class "ActivitiesAPI" defined the type as "None") . Code line: application_name = "login"
python:mypy_assignment (MINOR)
source_google_workspace_admin_reports/api.py:188
Check that assigned value is compatible with target
Incompatible types in assignment (expression has type "str", base class "ActivitiesAPI" defined the type as "None") . Code line: application_name = "mobile"
python:mypy_assignment (MINOR)
source_google_workspace_admin_reports/api.py:193
Check that assigned value is compatible with target
Incompatible types in assignment (expression has type "str", base class "ActivitiesAPI" defined the type as "None") . Code line: application_name = "token"
Define a constant instead of duplicating this literal "sort_by[asc]" 3 times.
python:mypy_override (MINOR)
source_chargebee/streams.py:303
Check that method override is compatible with base class
Signature of "request_params" incompatible with supertype "IncrementalChargebeeStream" . Code line: def request_params(self, **kwargs) -> MutableMapping[str, Any]:
python:mypy_override (MINOR)
source_chargebee/streams.py:303
Check that method override is compatible with base class
Signature of "request_params" incompatible with supertype "ChargebeeStream" . Code line: def request_params(self, **kwargs) -> MutableMapping[str, Any]:
python:mypy_override (MINOR)
source_chargebee/streams.py:318
Check that method override is compatible with base class
Signature of "request_params" incompatible with supertype "IncrementalChargebeeStream" . Code line: def request_params(self, **kwargs) -> MutableMapping[str, Any]:
python:mypy_override (MINOR)
source_chargebee/streams.py:318
Check that method override is compatible with base class
Signature of "request_params" incompatible with supertype "ChargebeeStream" . Code line: def request_params(self, **kwargs) -> MutableMapping[str, Any]:
python:mypy_no_any_return (MINOR)
source_chargebee/streams.py:125
Reject returning value with "Any" type if return type is not "Any"
Returning Any from function declared to return "int" . Code line: return start_point
python:mypy_override (MINOR)
source_chargebee/streams.py:127
Check that method override is compatible with base class
Signature of "parse_response" incompatible with supertype "ChargebeeStream" . Code line: def parse_response(
python:mypy_assignment (MINOR)
source_chargebee/streams.py:128
Check that assigned value is compatible with target
Incompatible default for argument "stream_slice" (default has type "None", argument has type "Mapping[str, Any]") . Code line: ...t: ListResult, stream_slice: Mapping[str, Any] = None, stream_state: M...
python:mypy_assignment (MINOR)
source_chargebee/streams.py:128
Check that assigned value is compatible with target
Incompatible default for argument "stream_state" (default has type "None", argument has type "Mapping[str, Any]") . Code line: ...lice: Mapping[str, Any] = None, stream_state: Mapping[str, Any] = None
python:mypy_attr_defined (MINOR)
source_chargebee/streams.py:143
Check that attribute exists
"MutableMapping[str, Any]" has no attribute "copy" . Code line: current_stream_state = current_stream_state.copy()
python:mypy_type_var (MINOR)
source_chargebee/streams.py:149
Check that type variable values are valid
Value of type variable "SupportsRichComparisonT" of "max" cannot be "Optional[Any]" . Code line: max_value = max(current_state_value, latest_cursor_value)
python:mypy_assignment (MINOR)
source_chargebee/streams.py:162
Check that assigned value is compatible with target
Incompatible default for argument "stream_slice" (default has type "None", argument has type "Mapping[str, Any]") . Code line: ...ing[str, Any], stream_slice: Mapping[str, Any] = None, next_page_token...
python:mypy_assignment (MINOR)
source_chargebee/streams.py:162
Check that assigned value is compatible with target
Incompatible default for argument "next_page_token" (default has type "None", argument has type "Mapping[str, Any]") . Code line: ...e: Mapping[str, Any] = None, next_page_token: Mapping[str, Any] = None
python:mypy_override (MINOR)
source_chargebee/streams.py:178
Check that method override is compatible with base class
Signature of "parse_response" incompatible with supertype "SemiIncrementalChargebeeStream" . Code line: def parse_response(self, list_result: ListResult, **kwargs) -> Ite...
python:mypy_assignment (MINOR)
source_chargebee/streams.py:274
Check that assigned value is compatible with target
Incompatible default for argument "stream_slice" (default has type "None", argument has type "Mapping[str, Any]") . Code line: ...ing[str, Any], stream_slice: Mapping[str, Any] = None, next_page_token...
python:mypy_assignment (MINOR)
source_chargebee/streams.py:274
Check that assigned value is compatible with target
Incompatible default for argument "next_page_token" (default has type "None", argument has type "Mapping[str, Any]") . Code line: ...e: Mapping[str, Any] = None, next_page_token: Mapping[str, Any] = None
python:mypy_import (MINOR)
source_chargebee/rate_limiting.py:11
Require that imported module can be found or has stubs
Library stubs not installed for "requests" (or incompatible with Python 3.7) . Code line: from requests import codes
python:mypy_call_overload (MINOR)
source_chargebee/source.py:21
Check that an overload variant matches arguments
No overload variant of "next" matches argument type "Iterable[Mapping[str, Any]]" . Code line: next(subscription_stream.read_records(sync_mode=SyncMode.f...
Check that assigned value is compatible with target
Incompatible default for argument "stream_slice" (default has type "None", argument has type "Mapping[str, Any]") . Code line: ...ing[str, Any], stream_slice: Mapping[str, Any] = None, next_page_token...
python:mypy_assignment (MINOR)
source_chargebee/streams.py:48
Check that assigned value is compatible with target
Incompatible default for argument "next_page_token" (default has type "None", argument has type "Mapping[str, Any]") . Code line: ...e: Mapping[str, Any] = None, next_page_token: Mapping[str, Any] = None
python:mypy_assignment (MINOR)
source_chargebee/streams.py:75
Check that assigned value is compatible with target
Incompatible default for argument "cursor_field" (default has type "None", argument has type "List[str]") . Code line: cursor_field: List[str] = None,
python:mypy_assignment (MINOR)
source_chargebee/streams.py:76
Check that assigned value is compatible with target
Incompatible default for argument "stream_slice" (default has type "None", argument has type "Mapping[str, Any]") . Code line: stream_slice: Mapping[str, Any] = None,
python:mypy_assignment (MINOR)
source_chargebee/streams.py:77
Check that assigned value is compatible with target
Incompatible default for argument "stream_state" (default has type "None", argument has type "Mapping[str, Any]") . Code line: stream_state: Mapping[str, Any] = None,
python:mypy_valid_type (MINOR)
source_chargebee/source.py:16
Check that type (annotation) is valid
Function "builtins.any" is not valid as a type . Code line: ...nnection(self, logger, config: Mapping[str, Any]) -> Tuple[bool, any]:
3dacf20
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SonarQube Report
SonarQube report for Airbyte Connectors Source Google Workspace Admin Reports(#10638)
Measures
Detected Issues
Coverage (0.0%)
3dacf20
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SonarQube Report
SonarQube report for Airbyte Connectors Source Chargebee(#10638)
Measures
Detected Issues
Coverage (84.3%)