Dev prashah aws iam tag#2270
Quality Gate failed
Failed conditions
78.0% Coverage on New Code (required ≥ 80%)
Annotations
Check failure on line 248 in tests/oauthbearer/aws/test_dispatch.py
sonarqube-confluent / SonarQube Code Analysis
Remove this identity check; it will always be True.
[S5727] Comparison to None should not be constant
See more on https://sonarqube.confluent.io/project/issues?id=confluent-kafka-python&pullRequest=2270&issues=a3a4b8fb-f6ce-4466-9143-5faea7048f58&open=a3a4b8fb-f6ce-4466-9143-5faea7048f58
Check warning on line 42 in src/confluent_kafka/oauthbearer/aws/_aws_jwt_subject_extractor.py
sonarqube-confluent / SonarQube Code Analysis
Merge these implicitly concatenated strings; or did you forget a comma?
[S5799] Implicit string and byte concatenations should not be confusing
See more on https://sonarqube.confluent.io/project/issues?id=confluent-kafka-python&pullRequest=2270&issues=34d1b93c-07d0-4030-9baa-364d5d068bb8&open=34d1b93c-07d0-4030-9baa-364d5d068bb8
Check failure on line 46 in tests/oauthbearer/aws/test_aws_oauthbearer_config.py
sonarqube-confluent / SonarQube Code Analysis
Change this argument; Function "parse" expects a different type
[S5655] Arguments given to functions should be of an expected type
See more on https://sonarqube.confluent.io/project/issues?id=confluent-kafka-python&pullRequest=2270&issues=1c58245d-7bb1-43ba-8cc7-abae1ecd2847&open=1c58245d-7bb1-43ba-8cc7-abae1ecd2847
Check warning on line 263 in tests/oauthbearer/aws/test_dispatch.py
sonarqube-confluent / SonarQube Code Analysis
Use asynchronous features in this function or remove the `async` keyword.
[S7503] Async functions should use async features
See more on https://sonarqube.confluent.io/project/issues?id=confluent-kafka-python&pullRequest=2270&issues=1ce4cc68-a105-4658-ba21-92de70980ccc&open=1ce4cc68-a105-4658-ba21-92de70980ccc
Check warning on line 104 in tests/oauthbearer/aws/test_aws_jwt_subject_extractor.py
sonarqube-confluent / SonarQube Code Analysis
Merge these implicitly concatenated strings; or did you forget a comma?
[S5799] Implicit string and byte concatenations should not be confusing
See more on https://sonarqube.confluent.io/project/issues?id=confluent-kafka-python&pullRequest=2270&issues=219db66d-38d9-44f5-b746-baffa50c8509&open=219db66d-38d9-44f5-b746-baffa50c8509
Check warning on line 131 in src/confluent_kafka/oauthbearer/aws/_aws_oauthbearer_config.py
sonarqube-confluent / SonarQube Code Analysis
Merge these implicitly concatenated strings; or did you forget a comma?
[S5799] Implicit string and byte concatenations should not be confusing
See more on https://sonarqube.confluent.io/project/issues?id=confluent-kafka-python&pullRequest=2270&issues=69a5918e-38db-4a33-8c49-d277c36c1145&open=69a5918e-38db-4a33-8c49-d277c36c1145
Check warning on line 287 in tests/oauthbearer/aws/test_dispatch.py
sonarqube-confluent / SonarQube Code Analysis
Remove this unnecessary `list()` call on an already iterable object.
[S7504] When iterating over an iterable object, using "list()" should be avoided
See more on https://sonarqube.confluent.io/project/issues?id=confluent-kafka-python&pullRequest=2270&issues=30fa8199-4d39-4d10-aa6d-f7f42ee2c408&open=30fa8199-4d39-4d10-aa6d-f7f42ee2c408
Check failure on line 26 in tests/_util/test_kv_string_parser.py
sonarqube-confluent / SonarQube Code Analysis
Change this argument; Function "parse_kv" expects a different type
[S5655] Arguments given to functions should be of an expected type
See more on https://sonarqube.confluent.io/project/issues?id=confluent-kafka-python&pullRequest=2270&issues=c08d7fc4-c48a-4221-aadb-58c5b7660e3e&open=c08d7fc4-c48a-4221-aadb-58c5b7660e3e
Check warning on line 153 in src/confluent_kafka/oauthbearer/aws/_aws_oauthbearer_config.py
sonarqube-confluent / SonarQube Code Analysis
Merge these implicitly concatenated strings; or did you forget a comma?
[S5799] Implicit string and byte concatenations should not be confusing
See more on https://sonarqube.confluent.io/project/issues?id=confluent-kafka-python&pullRequest=2270&issues=cd812637-b9a0-43ff-8ad6-caba1932c1ac&open=cd812637-b9a0-43ff-8ad6-caba1932c1ac
Check failure on line 117 in tests/oauthbearer/aws/test_dispatch.py
sonarqube-confluent / SonarQube Code Analysis
Remove this identity check; it will always be True.
[S5727] Comparison to None should not be constant
See more on https://sonarqube.confluent.io/project/issues?id=confluent-kafka-python&pullRequest=2270&issues=4f7ab64f-f064-42cb-a364-bbf82f910834&open=4f7ab64f-f064-42cb-a364-bbf82f910834
Check failure on line 158 in src/confluent_kafka/oauthbearer/aws/_aws_oauthbearer_config.py
sonarqube-confluent / SonarQube Code Analysis
Refactor this function to reduce its Cognitive Complexity from 26 to the 15 allowed.
[S3776] Cognitive Complexity of functions should not be too high
See more on https://sonarqube.confluent.io/project/issues?id=confluent-kafka-python&pullRequest=2270&issues=be2e1dda-a08a-4109-be13-881ba1ef0c71&open=be2e1dda-a08a-4109-be13-881ba1ef0c71
Check warning on line 124 in tests/oauthbearer/aws/test_dispatch.py
sonarqube-confluent / SonarQube Code Analysis
Remove this unnecessary `list()` call on an already iterable object.
[S7504] When iterating over an iterable object, using "list()" should be avoided
See more on https://sonarqube.confluent.io/project/issues?id=confluent-kafka-python&pullRequest=2270&issues=d1994c81-c0f4-42c6-b1ce-271cc0e24c2f&open=d1994c81-c0f4-42c6-b1ce-271cc0e24c2f
Check warning on line 174 in tests/oauthbearer/aws/test_aws_oauthbearer_config.py
sonarqube-confluent / SonarQube Code Analysis
Merge these implicitly concatenated strings; or did you forget a comma?
[S5799] Implicit string and byte concatenations should not be confusing
See more on https://sonarqube.confluent.io/project/issues?id=confluent-kafka-python&pullRequest=2270&issues=8b121f83-c4ca-4feb-ac52-b04bef5b1802&open=8b121f83-c4ca-4feb-ac52-b04bef5b1802
Check warning on line 214 in tests/oauthbearer/aws/test_aws_oauthbearer_config.py
sonarqube-confluent / SonarQube Code Analysis
Merge these implicitly concatenated strings; or did you forget a comma?
[S5799] Implicit string and byte concatenations should not be confusing
See more on https://sonarqube.confluent.io/project/issues?id=confluent-kafka-python&pullRequest=2270&issues=46a0e753-27b3-4d1c-99aa-56bc74bcd071&open=46a0e753-27b3-4d1c-99aa-56bc74bcd071
Check failure on line 123 in src/confluent_kafka/oauthbearer/aws/_aws_oauthbearer_config.py
sonarqube-confluent / SonarQube Code Analysis
Refactor this function to reduce its Cognitive Complexity from 20 to the 15 allowed.
[S3776] Cognitive Complexity of functions should not be too high
See more on https://sonarqube.confluent.io/project/issues?id=confluent-kafka-python&pullRequest=2270&issues=40115656-fce6-4b3c-b37f-ebf03e52a02e&open=40115656-fce6-4b3c-b37f-ebf03e52a02e
Check warning on line 372 in tests/oauthbearer/aws/test_aws_sts_token_provider.py
sonarqube-confluent / SonarQube Code Analysis
Merge these implicitly concatenated strings; or did you forget a comma?
[S5799] Implicit string and byte concatenations should not be confusing
See more on https://sonarqube.confluent.io/project/issues?id=confluent-kafka-python&pullRequest=2270&issues=0c7062d6-cfec-4512-9eb8-84ea340c9347&open=0c7062d6-cfec-4512-9eb8-84ea340c9347
Check warning on line 251 in tests/oauthbearer/aws/test_dispatch.py
sonarqube-confluent / SonarQube Code Analysis
Use asynchronous features in this function or remove the `async` keyword.
[S7503] Async functions should use async features
See more on https://sonarqube.confluent.io/project/issues?id=confluent-kafka-python&pullRequest=2270&issues=95b8c3f4-fc86-4053-8538-b803888a86e8&open=95b8c3f4-fc86-4053-8538-b803888a86e8
Check failure on line 32 in tests/oauthbearer/aws/test_aws_autowire.py
sonarqube-confluent / SonarQube Code Analysis
Change this argument; Function "create_handler" expects a different type
[S5655] Arguments given to functions should be of an expected type
See more on https://sonarqube.confluent.io/project/issues?id=confluent-kafka-python&pullRequest=2270&issues=36283db0-86c4-496c-931d-dea83a5faf8e&open=36283db0-86c4-496c-931d-dea83a5faf8e
Check warning on line 365 in tests/oauthbearer/aws/test_dispatch.py
sonarqube-confluent / SonarQube Code Analysis
Remove this unnecessary `list()` call on an already iterable object.
[S7504] When iterating over an iterable object, using "list()" should be avoided
See more on https://sonarqube.confluent.io/project/issues?id=confluent-kafka-python&pullRequest=2270&issues=dfe1e697-df78-426a-b8e0-144455678e48&open=dfe1e697-df78-426a-b8e0-144455678e48
Check warning on line 208 in src/confluent_kafka/oauthbearer/aws/_aws_oauthbearer_config.py
sonarqube-confluent / SonarQube Code Analysis
Merge these implicitly concatenated strings; or did you forget a comma?
[S5799] Implicit string and byte concatenations should not be confusing
See more on https://sonarqube.confluent.io/project/issues?id=confluent-kafka-python&pullRequest=2270&issues=5bc88bb5-00a3-4cf6-9663-b8ea82a2f1a5&open=5bc88bb5-00a3-4cf6-9663-b8ea82a2f1a5
Check warning on line 89 in src/confluent_kafka/oauthbearer/aws/_aws_jwt_subject_extractor.py
sonarqube-confluent / SonarQube Code Analysis
Remove this redundant Exception class; it derives from another which is already caught.
[S5713] A subclass should not be in the same "except" statement as a parent class
See more on https://sonarqube.confluent.io/project/issues?id=confluent-kafka-python&pullRequest=2270&issues=808bbbff-3871-4940-9a88-ab4943d231eb&open=808bbbff-3871-4940-9a88-ab4943d231eb
Check failure on line 42 in tests/oauthbearer/aws/test_aws_autowire.py
sonarqube-confluent / SonarQube Code Analysis
Change this argument; Function "create_handler" expects a different type
[S5655] Arguments given to functions should be of an expected type
See more on https://sonarqube.confluent.io/project/issues?id=confluent-kafka-python&pullRequest=2270&issues=17823906-04e8-4019-9c17-32e864d67ba9&open=17823906-04e8-4019-9c17-32e864d67ba9
Check failure on line 31 in tests/_util/test_kv_string_parser.py
sonarqube-confluent / SonarQube Code Analysis
Change this argument; Function "parse_kv" expects a different type
[S5655] Arguments given to functions should be of an expected type
See more on https://sonarqube.confluent.io/project/issues?id=confluent-kafka-python&pullRequest=2270&issues=e564496b-ec26-4c6a-b5c1-d2560db6d1ba&open=e564496b-ec26-4c6a-b5c1-d2560db6d1ba
Check warning on line 2681 in src/confluent_kafka/src/confluent_kafka.c
sonarqube-confluent / SonarQube Code Analysis
Make the type of this variable a pointer-to-const. The current type of "cb" is "struct _object *".
[S5350] Pointer and reference local variables should be "const" if the corresponding object is not modified
See more on https://sonarqube.confluent.io/project/issues?id=confluent-kafka-python&pullRequest=2270&issues=58be5e83-13cf-47c7-bc78-0194abbbdd1e&open=58be5e83-13cf-47c7-bc78-0194abbbdd1e
Check warning on line 387 in tests/oauthbearer/aws/test_real_sts.py
sonarqube-confluent / SonarQube Code Analysis
Merge these implicitly concatenated strings; or did you forget a comma?
[S5799] Implicit string and byte concatenations should not be confusing
See more on https://sonarqube.confluent.io/project/issues?id=confluent-kafka-python&pullRequest=2270&issues=a38c4e44-c297-4de4-bb5f-1819033acedc&open=a38c4e44-c297-4de4-bb5f-1819033acedc