https://github.com/public-apis/public-apis.git ·
lang: python ·
LOC: ·
source: user_submitted
| Rule | Severity | Count |
|---|---|---|
MINED108 self.attribute used but never assigned in __init__ |
high | 25 |
MINED115 GitHub Action pinned to mutable ref (not 40-char SHA) |
high | 6 |
COMP001 [COMP001] High cognitive complexity: Function `load_yfinanc… |
low | 2 |
MINED067 Python Requests No Timeout |
info | 1 |
MINED106 Phantom test coverage (assertion-free test) |
high | 1 |
SEC078 Python: requests without timeout |
high | 1 |
COMP001
[COMP001] High cognitive complexity: Function `load_yfinance_data` has cognitive complexity 9 (SonarSource scale). Cognitive complexity measures how hard the function is for a human to understand — nested branches, boolean chains, and recursion all weigh in. Breakdown: except=1, for=1, if=2, nested_bonus=3, or=2.
scripts/validate/format.py:192
· conf 0.95
[COMP001] High cognitive complexity: Function `check_file_format` has cognitive complexity 28 (SonarSource scale). Cognitive complexity measures how hard the function is for a human to understand — n…
MINED106
Phantom test coverage (assertion-free test)
CWE-1126
scripts/tests/test_validate_links.py:99
· conf 1.00
[MINED106] Phantom test coverage: test_if_fake_user_agent_has_a_str_as_return: Test function `test_if_fake_user_agent_has_a_str_as_return` runs code but contains no assert / expect / should call — it…
MINED108
self.attribute used but never assigned in __init__
CWE-476
scripts/tests/test_validate_format.py:32
· conf 1.00
[MINED108] `self.assertIsInstance` used but never assigned in __init__: Method `test_error_message_return_and_return_type` of class `TestValidadeFormat` reads `self.assertIsInstance`, but no assignme…
MINED108
self.attribute used but never assigned in __init__
CWE-476
scripts/tests/test_validate_format.py:33
· conf 1.00
[MINED108] `self.assertIsInstance` used but never assigned in __init__: Method `test_error_message_return_and_return_type` of class `TestValidadeFormat` reads `self.assertIsInstance`, but no assignme…
MINED108
self.attribute used but never assigned in __init__
CWE-476
scripts/tests/test_validate_format.py:34
· conf 1.00
[MINED108] `self.assertIsInstance` used but never assigned in __init__: Method `test_error_message_return_and_return_type` of class `TestValidadeFormat` reads `self.assertIsInstance`, but no assignme…
MINED108
self.attribute used but never assigned in __init__
CWE-476
scripts/tests/test_validate_format.py:35
· conf 1.00
[MINED108] `self.assertIsInstance` used but never assigned in __init__: Method `test_error_message_return_and_return_type` of class `TestValidadeFormat` reads `self.assertIsInstance`, but no assignme…
MINED108
self.attribute used but never assigned in __init__
CWE-476
scripts/tests/test_validate_format.py:37
· conf 1.00
[MINED108] `self.assertEqual` used but never assigned in __init__: Method `test_error_message_return_and_return_type` of class `TestValidadeFormat` reads `self.assertEqual`, but no assignment to it e…
MINED108
self.attribute used but never assigned in __init__
CWE-476
scripts/tests/test_validate_format.py:38
· conf 1.00
[MINED108] `self.assertEqual` used but never assigned in __init__: Method `test_error_message_return_and_return_type` of class `TestValidadeFormat` reads `self.assertEqual`, but no assignment to it e…
MINED108
self.attribute used but never assigned in __init__
CWE-476
scripts/tests/test_validate_format.py:39
· conf 1.00
[MINED108] `self.assertEqual` used but never assigned in __init__: Method `test_error_message_return_and_return_type` of class `TestValidadeFormat` reads `self.assertEqual`, but no assignment to it e…
MINED108
self.attribute used but never assigned in __init__
CWE-476
scripts/tests/test_validate_format.py:40
· conf 1.00
[MINED108] `self.assertEqual` used but never assigned in __init__: Method `test_error_message_return_and_return_type` of class `TestValidadeFormat` reads `self.assertEqual`, but no assignment to it e…
MINED108
self.attribute used but never assigned in __init__
CWE-476
scripts/tests/test_validate_format.py:58
· conf 1.00
[MINED108] `self.assertIsInstance` used but never assigned in __init__: Method `test_if_get_categories_content_return_correct_data_of_categories` of class `TestValidadeFormat` reads `self.assertIsIns…
MINED108
self.attribute used but never assigned in __init__
CWE-476
scripts/tests/test_validate_format.py:61
· conf 1.00
[MINED108] `self.assertIsInstance` used but never assigned in __init__: Method `test_if_get_categories_content_return_correct_data_of_categories` of class `TestValidadeFormat` reads `self.assertIsIns…
MINED108
self.attribute used but never assigned in __init__
CWE-476
scripts/tests/test_validate_format.py:62
· conf 1.00
[MINED108] `self.assertIsInstance` used but never assigned in __init__: Method `test_if_get_categories_content_return_correct_data_of_categories` of class `TestValidadeFormat` reads `self.assertIsIns…
MINED108
self.attribute used but never assigned in __init__
CWE-476
scripts/tests/test_validate_format.py:68
· conf 1.00
[MINED108] `self.subTest` used but never assigned in __init__: Method `test_if_get_categories_content_return_correct_data_of_categories` of class `TestValidadeFormat` reads `self.subTest`, but no ass…
MINED108
self.attribute used but never assigned in __init__
CWE-476
scripts/tests/test_validate_format.py:69
· conf 1.00
[MINED108] `self.assertEqual` used but never assigned in __init__: Method `test_if_get_categories_content_return_correct_data_of_categories` of class `TestValidadeFormat` reads `self.assertEqual`, bu…
MINED108
self.attribute used but never assigned in __init__
CWE-476
scripts/tests/test_validate_format.py:104
· conf 1.00
[MINED108] `self.assertIsInstance` used but never assigned in __init__: Method `test_if_check_alphabetical_order_return_correct_msg_error` of class `TestValidadeFormat` reads `self.assertIsInstance`,…
MINED108
self.attribute used but never assigned in __init__
CWE-476
scripts/tests/test_validate_format.py:105
· conf 1.00
[MINED108] `self.assertIsInstance` used but never assigned in __init__: Method `test_if_check_alphabetical_order_return_correct_msg_error` of class `TestValidadeFormat` reads `self.assertIsInstance`,…
MINED108
self.attribute used but never assigned in __init__
CWE-476
scripts/tests/test_validate_format.py:107
· conf 1.00
[MINED108] `self.assertEqual` used but never assigned in __init__: Method `test_if_check_alphabetical_order_return_correct_msg_error` of class `TestValidadeFormat` reads `self.assertEqual`, but no as…
MINED108
self.attribute used but never assigned in __init__
CWE-476
scripts/tests/test_validate_format.py:108
· conf 1.00
[MINED108] `self.assertEqual` used but never assigned in __init__: Method `test_if_check_alphabetical_order_return_correct_msg_error` of class `TestValidadeFormat` reads `self.assertEqual`, but no as…
MINED108
self.attribute used but never assigned in __init__
CWE-476
scripts/tests/test_validate_format.py:117
· conf 1.00
[MINED108] `self.subTest` used but never assigned in __init__: Method `test_if_check_alphabetical_order_return_correct_msg_error` of class `TestValidadeFormat` reads `self.subTest`, but no assignment…
MINED108
self.attribute used but never assigned in __init__
CWE-476
scripts/tests/test_validate_format.py:118
· conf 1.00
[MINED108] `self.assertEqual` used but never assigned in __init__: Method `test_if_check_alphabetical_order_return_correct_msg_error` of class `TestValidadeFormat` reads `self.assertEqual`, but no as…
MINED108
self.attribute used but never assigned in __init__
CWE-476
scripts/tests/test_validate_format.py:125
· conf 1.00
[MINED108] `self.assertIsInstance` used but never assigned in __init__: Method `test_check_title_with_correct_title` of class `TestValidadeFormat` reads `self.assertIsInstance`, but no assignment to …
MINED108
self.attribute used but never assigned in __init__
CWE-476
scripts/tests/test_validate_format.py:126
· conf 1.00
[MINED108] `self.assertEqual` used but never assigned in __init__: Method `test_check_title_with_correct_title` of class `TestValidadeFormat` reads `self.assertEqual`, but no assignment to it exists …
MINED108
self.attribute used but never assigned in __init__
CWE-476
scripts/tests/test_validate_format.py:127
· conf 1.00
[MINED108] `self.assertEqual` used but never assigned in __init__: Method `test_check_title_with_correct_title` of class `TestValidadeFormat` reads `self.assertEqual`, but no assignment to it exists …
MINED108
self.attribute used but never assigned in __init__
CWE-476
scripts/tests/test_validate_format.py:134
· conf 1.00
[MINED108] `self.assertIsInstance` used but never assigned in __init__: Method `test_check_title_with_markdown_syntax_incorrect` of class `TestValidadeFormat` reads `self.assertIsInstance`, but no as…
MINED108
self.attribute used but never assigned in __init__
CWE-476
scripts/tests/test_validate_format.py:135
· conf 1.00
[MINED108] `self.assertEqual` used but never assigned in __init__: Method `test_check_title_with_markdown_syntax_incorrect` of class `TestValidadeFormat` reads `self.assertEqual`, but no assignment t…
MINED108
self.attribute used but never assigned in __init__
CWE-476
scripts/tests/test_validate_format.py:140
· conf 1.00
[MINED108] `self.assertEqual` used but never assigned in __init__: Method `test_check_title_with_markdown_syntax_incorrect` of class `TestValidadeFormat` reads `self.assertEqual`, but no assignment t…
MINED115
GitHub Action pinned to mutable ref (not 40-char SHA)
CWE-829
.github/workflows/test_of_push_and_pull.yml:18
· conf 0.90
[MINED115] Action `actions/checkout` pinned to mutable ref `@v2`: `uses: actions/checkout@v2` resolves at workflow-run time. Tags and branches can be re-pushed by the action owner; that made the tj-a…
MINED115
GitHub Action pinned to mutable ref (not 40-char SHA)
CWE-829
.github/workflows/test_of_push_and_pull.yml:21
· conf 0.90
[MINED115] Action `actions/setup-python` pinned to mutable ref `@v2`: `uses: actions/setup-python@v2` resolves at workflow-run time. Tags and branches can be re-pushed by the action owner; that made …
MINED115
GitHub Action pinned to mutable ref (not 40-char SHA)
CWE-829
.github/workflows/test_of_validate_package.yml:16
· conf 0.90
[MINED115] Action `actions/checkout` pinned to mutable ref `@v2`: `uses: actions/checkout@v2` resolves at workflow-run time. Tags and branches can be re-pushed by the action owner; that made the tj-a…
MINED115
GitHub Action pinned to mutable ref (not 40-char SHA)
CWE-829
.github/workflows/test_of_validate_package.yml:19
· conf 0.90
[MINED115] Action `actions/setup-python` pinned to mutable ref `@v2`: `uses: actions/setup-python@v2` resolves at workflow-run time. Tags and branches can be re-pushed by the action owner; that made …
MINED115
GitHub Action pinned to mutable ref (not 40-char SHA)
CWE-829
.github/workflows/validate_links.yml:17
· conf 0.90
[MINED115] Action `actions/checkout` pinned to mutable ref `@v2`: `uses: actions/checkout@v2` resolves at workflow-run time. Tags and branches can be re-pushed by the action owner; that made the tj-a…
MINED115
GitHub Action pinned to mutable ref (not 40-char SHA)
CWE-829
.github/workflows/validate_links.yml:20
· conf 0.90
[MINED115] Action `actions/setup-python` pinned to mutable ref `@v2`: `uses: actions/setup-python@v2` resolves at workflow-run time. Tags and branches can be re-pushed by the action owner; that made …
COMP001
[COMP001] High cognitive complexity: Function `load_yfinance_data` has cognitive complexity 9 (SonarSource scale). Cognitive complexity measures how hard the function is for a human to understand — nested branches, boolean chains, and recursion all weigh in. Breakdown: except=1, for=1, if=2, nested_bonus=3, or=2.
scripts/validate/format.py:42
· conf 0.95
[COMP001] High cognitive complexity: Function `get_categories_content` has cognitive complexity 9 (SonarSource scale). Cognitive complexity measures how hard the function is for a human to understand…
MINED067
Python Requests No Timeout
CWE-400
scripts/validate/links.py:167
· conf 1.00
[MINED067] Python Requests No Timeout: requests.get/post/etc. without timeout= can hang forever.
SEC078
Python: requests without timeout
scripts/validate/links.py:167
· conf 0.10
[SEC078] Python: requests without timeout: requests.get/post without a timeout will hang indefinitely on a non-responsive server, causing thread exhaustion and ReDoS. Ported from bandit B113 (Apache-…
Reading from rp.scan + rp.finding + rp.rule (unified schema, R78 series). Legacy data path unchanged. Compare with /scan/8a53490f-106d-43fc-b5b7-d6909ad84ab7/.