| Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
| 11 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'requests' |
| 12 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pydantic' |
| 16 |
0 |
warning |
unused-import |
W0611 |
|
Unused AttrsFormat imported from filip.models.ngsi_v2.base |
| 29 |
0 |
warning |
unused-import |
W0611 |
|
Unused Query imported from filip.models.ngsi_v2.context |
| 81 |
4 |
refactor |
inconsistent-return-statements |
R1710 |
ContextBrokerLDClient.__pagination |
Either all return statements in a function should return an expression, or none of them should. |
| 152 |
4 |
refactor |
inconsistent-return-statements |
R1710 |
ContextBrokerLDClient.get_version |
Either all return statements in a function should return an expression, or none of them should. |
| 182 |
4 |
refactor |
inconsistent-return-statements |
R1710 |
ContextBrokerLDClient.get_statistics |
Either all return statements in a function should return an expression, or none of them should. |
| 198 |
4 |
refactor |
inconsistent-return-statements |
R1710 |
ContextBrokerLDClient.post_entity |
Either all return statements in a function should return an expression, or none of them should. |
| 236 |
16 |
refactor |
no-else-return |
R1705 |
ContextBrokerLDClient.post_entity |
Unnecessary "elif" after "return", remove the leading "el" from "elif" |
| 255 |
4 |
refactor |
too-many-arguments |
R0913 |
ContextBrokerLDClient.get_entity |
Too many arguments (6/5) |
| 255 |
4 |
refactor |
inconsistent-return-statements |
R1710 |
ContextBrokerLDClient.get_entity |
Either all return statements in a function should return an expression, or none of them should. |
| 261 |
8 |
convention |
invalid-name |
C0103 |
ContextBrokerLDClient.get_entity |
Argument name "geometryProperty" doesn't conform to snake_case naming style |
| 276 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (178/100) |
| 299 |
15 |
refactor |
consider-using-in |
R1714 |
ContextBrokerLDClient.get_entity |
Consider merging these comparisons with 'in' by using 'options not in ('keyValues', 'sysAttrs')'. Use a set instead if elements are hashable. |
| 301 |
20 |
warning |
f-string-without-interpolation |
W1309 |
ContextBrokerLDClient.get_entity |
Using an f-string that does not have any interpolated variables |
| 310 |
16 |
refactor |
no-else-return |
R1705 |
ContextBrokerLDClient.get_entity |
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
| 329 |
4 |
refactor |
too-many-arguments |
R0913 |
ContextBrokerLDClient.get_entity_list |
Too many arguments (12/5) |
| 329 |
4 |
refactor |
too-many-locals |
R0914 |
ContextBrokerLDClient.get_entity_list |
Too many local variables (20/15) |
| 329 |
4 |
refactor |
too-many-branches |
R0912 |
ContextBrokerLDClient.get_entity_list |
Too many branches (15/12) |
| 335 |
8 |
convention |
invalid-name |
C0103 |
ContextBrokerLDClient.get_entity_list |
Argument name "q" doesn't conform to snake_case naming style |
| 407 |
15 |
refactor |
consider-using-in |
R1714 |
ContextBrokerLDClient.get_entity_list |
Consider merging these comparisons with 'in' by using 'options not in ('keyValues', 'sysAttrs')'. Use a set instead if elements are hashable. |
| 409 |
20 |
warning |
f-string-without-interpolation |
W1309 |
ContextBrokerLDClient.get_entity_list |
Using an f-string that does not have any interpolated variables |
| 423 |
12 |
refactor |
no-else-return |
R1705 |
ContextBrokerLDClient.get_entity_list |
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
| 434 |
4 |
refactor |
inconsistent-return-statements |
R1710 |
ContextBrokerLDClient.replace_existing_attributes_of_entity |
Either all return statements in a function should return an expression, or none of them should. |
| 464 |
16 |
warning |
logging-fstring-interpolation |
W1203 |
ContextBrokerLDClient.replace_existing_attributes_of_entity |
Use lazy % formatting in logging functions |
| 516 |
16 |
warning |
logging-fstring-interpolation |
W1203 |
ContextBrokerLDClient.update_entity_attribute |
Use lazy % formatting in logging functions |
| 551 |
33 |
warning |
f-string-without-interpolation |
W1309 |
ContextBrokerLDClient.append_entity_attributes |
Using an f-string that does not have any interpolated variables |
| 562 |
16 |
warning |
logging-fstring-interpolation |
W1203 |
ContextBrokerLDClient.append_entity_attributes |
Use lazy % formatting in logging functions |
| 594 |
16 |
warning |
logging-fstring-interpolation |
W1203 |
ContextBrokerLDClient.delete_entity_by_id |
Use lazy % formatting in logging functions |
| 622 |
16 |
warning |
logging-fstring-interpolation |
W1203 |
ContextBrokerLDClient.delete_attribute |
Use lazy % formatting in logging functions |
| 659 |
4 |
refactor |
inconsistent-return-statements |
R1710 |
ContextBrokerLDClient.post_subscription |
Either all return statements in a function should return an expression, or none of them should. |
| 696 |
20 |
warning |
logging-fstring-interpolation |
W1203 |
ContextBrokerLDClient.post_subscription |
Use lazy % formatting in logging functions |
| 723 |
4 |
refactor |
inconsistent-return-statements |
R1710 |
ContextBrokerLDClient.get_subscription |
Either all return statements in a function should return an expression, or none of them should. |
| 793 |
16 |
warning |
logging-fstring-interpolation |
W1203 |
ContextBrokerLDClient.delete_subscription |
Use lazy % formatting in logging functions |
| 803 |
4 |
convention |
missing-function-docstring |
C0116 |
ContextBrokerLDClient.log_multi_errors |
Missing function or method docstring |
| 836 |
20 |
convention |
invalid-name |
C0103 |
ContextBrokerLDClient.handle_multi_status_response |
Variable name "successList" doesn't conform to snake_case naming style |
| 917 |
8 |
refactor |
no-else-raise |
R1720 |
ContextBrokerLDClient.entity_batch_operation |
Unnecessary "else" after "raise", remove the "else" and de-indent the code inside it |
| 941 |
12 |
warning |
logging-fstring-interpolation |
W1203 |
ContextBrokerLDClient.entity_batch_operation |
Use lazy % formatting in logging functions |
| 943 |
4 |
refactor |
inconsistent-return-statements |
R1710 |
ContextBrokerLDClient.validate_relationship |
Either all return statements in a function should return an expression, or none of them should. |
| Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
| 1 |
0 |
convention |
too-many-lines |
C0302 |
|
Too many lines in module (2276/1000) |
| 10 |
0 |
warning |
unused-import |
W0611 |
|
Unused Enum imported from enum |
| 14 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pydantic' |
| 15 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pydantic.type_adapter' |
| 16 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union" should be placed before "from packaging.version import parse as parse_version" |
| 16 |
0 |
warning |
unused-import |
W0611 |
|
Unused Optional imported from typing |
| 17 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "import re" should be placed before "from packaging.version import parse as parse_version" |
| 18 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'requests' |
| 19 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "from urllib.parse import urljoin" should be placed before "from packaging.version import parse as parse_version" |
| 20 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "import warnings" should be placed before "from packaging.version import parse as parse_version" |
| 21 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'requests' |
| 26 |
0 |
warning |
unused-import |
W0611 |
|
Unused PropertyFormat imported from filip.models.ngsi_v2.context |
| 51 |
0 |
refactor |
too-many-public-methods |
R0904 |
ContextBrokerClient |
Too many public methods (43/20) |
| 90 |
4 |
refactor |
inconsistent-return-statements |
R1710 |
ContextBrokerClient.__pagination |
Either all return statements in a function should return an expression, or none of them should. |
| 159 |
4 |
refactor |
inconsistent-return-statements |
R1710 |
ContextBrokerClient.get_version |
Either all return statements in a function should return an expression, or none of them should. |
| 178 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (108/100) |
| 183 |
12 |
warning |
logging-fstring-interpolation |
W1203 |
ContextBrokerClient._check_correct_cb_version |
Use lazy % formatting in logging functions |
| 184 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (109/100) |
| 185 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (103/100) |
| 189 |
4 |
refactor |
inconsistent-return-statements |
R1710 |
ContextBrokerClient.get_resources |
Either all return statements in a function should return an expression, or none of them should. |
| 207 |
4 |
refactor |
inconsistent-return-statements |
R1710 |
ContextBrokerClient.get_statistics |
Either all return statements in a function should return an expression, or none of them should. |
| 227 |
4 |
refactor |
too-many-arguments |
R0913 |
ContextBrokerClient.post_entity |
Too many arguments (6/5) |
| 227 |
4 |
refactor |
inconsistent-return-statements |
R1710 |
ContextBrokerClient.post_entity |
Either all return statements in a function should return an expression, or none of them should. |
| 301 |
4 |
refactor |
too-many-locals |
R0914 |
ContextBrokerClient.get_entity_list |
Too many local variables (27/15) |
| 301 |
4 |
refactor |
too-many-branches |
R0912 |
ContextBrokerClient.get_entity_list |
Too many branches (32/12) |
| 301 |
4 |
refactor |
too-many-statements |
R0915 |
ContextBrokerClient.get_entity_list |
Too many statements (76/50) |
| 367 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (176/100) |
| 370 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (178/100) |
| 378 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (114/100) |
| 444 |
16 |
refactor |
no-else-return |
R1705 |
ContextBrokerClient.get_entity_list |
Unnecessary "elif" after "return", remove the leading "el" from "elif" |
| 479 |
16 |
refactor |
no-else-return |
R1705 |
ContextBrokerClient.get_entity_list |
Unnecessary "elif" after "return", remove the leading "el" from "elif" |
| 493 |
4 |
refactor |
too-many-arguments |
R0913 |
ContextBrokerClient.get_entity |
Too many arguments (6/5) |
| 493 |
4 |
refactor |
inconsistent-return-statements |
R1710 |
ContextBrokerClient.get_entity |
Either all return statements in a function should return an expression, or none of them should. |
| 514 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (178/100) |
| 555 |
4 |
refactor |
too-many-arguments |
R0913 |
ContextBrokerClient.get_entity_attributes |
Too many arguments (6/5) |
| 555 |
4 |
refactor |
inconsistent-return-statements |
R1710 |
ContextBrokerClient.get_entity_attributes |
Either all return statements in a function should return an expression, or none of them should. |
| 578 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (178/100) |
| 730 |
4 |
refactor |
too-many-arguments |
R0913 |
ContextBrokerClient.delete_entity |
Too many arguments (6/5) |
| 778 |
12 |
convention |
import-outside-toplevel |
C0415 |
ContextBrokerClient.delete_entity |
Import outside toplevel (filip.clients.ngsi_v2.IoTAClient) |
| 847 |
4 |
refactor |
too-many-arguments |
R0913 |
ContextBrokerClient.update_or_append_entity_attributes |
Too many arguments (7/5) |
| 847 |
4 |
refactor |
too-many-locals |
R0914 |
ContextBrokerClient.update_or_append_entity_attributes |
Too many local variables (16/15) |
| 855 |
8 |
convention |
invalid-name |
C0103 |
ContextBrokerClient.update_or_append_entity_attributes |
Argument name "forcedUpdate" doesn't conform to snake_case naming style |
| 930 |
0 |
warning |
implicit-str-concat |
W1404 |
|
Implicit string concatenation found in call |
| 938 |
4 |
refactor |
too-many-arguments |
R0913 |
ContextBrokerClient.update_existing_entity_attributes |
Too many arguments (7/5) |
| 938 |
4 |
refactor |
too-many-locals |
R0914 |
ContextBrokerClient.update_existing_entity_attributes |
Too many local variables (16/15) |
| 945 |
8 |
convention |
invalid-name |
C0103 |
ContextBrokerClient.update_existing_entity_attributes |
Argument name "forcedUpdate" doesn't conform to snake_case naming style |
| 1006 |
0 |
warning |
implicit-str-concat |
W1404 |
|
Implicit string concatenation found in call |
| 1010 |
18 |
warning |
f-string-without-interpolation |
W1309 |
ContextBrokerClient.update_existing_entity_attributes |
Using an f-string that does not have any interpolated variables |
| 1035 |
4 |
refactor |
too-many-arguments |
R0913 |
ContextBrokerClient.replace_entity_attributes |
Too many arguments (6/5) |
| 1042 |
8 |
convention |
invalid-name |
C0103 |
ContextBrokerClient.replace_entity_attributes |
Argument name "forcedUpdate" doesn't conform to snake_case naming style |
| 1098 |
0 |
warning |
implicit-str-concat |
W1404 |
|
Implicit string concatenation found in call |
| 1106 |
4 |
refactor |
too-many-arguments |
R0913 |
ContextBrokerClient.get_attribute |
Too many arguments (6/5) |
| 1106 |
4 |
refactor |
inconsistent-return-statements |
R1710 |
ContextBrokerClient.get_attribute |
Either all return statements in a function should return an expression, or none of them should. |
| 1112 |
8 |
warning |
unused-argument |
W0613 |
ContextBrokerClient.get_attribute |
Unused argument 'response_format' |
| 1122 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (179/100) |
| 1226 |
0 |
warning |
implicit-str-concat |
W1404 |
|
Implicit string concatenation found in call |
| 1264 |
0 |
warning |
implicit-str-concat |
W1404 |
|
Implicit string concatenation found in call |
| 1275 |
4 |
refactor |
inconsistent-return-statements |
R1710 |
ContextBrokerClient.get_attribute_value |
Either all return statements in a function should return an expression, or none of them should. |
| 1362 |
0 |
warning |
implicit-str-concat |
W1404 |
|
Implicit string concatenation found in call |
| 1376 |
4 |
refactor |
inconsistent-return-statements |
R1710 |
ContextBrokerClient.get_entity_types |
Either all return statements in a function should return an expression, or none of them should. |
| 1408 |
4 |
refactor |
inconsistent-return-statements |
R1710 |
ContextBrokerClient.get_entity_type |
Either all return statements in a function should return an expression, or none of them should. |
| 1456 |
4 |
refactor |
inconsistent-return-statements |
R1710 |
ContextBrokerClient.post_subscription |
Either all return statements in a function should return an expression, or none of them should. |
| 1531 |
12 |
warning |
redefined-outer-name |
W0621 |
ContextBrokerClient.post_subscription |
Redefining name 'version' from outer scope (line 13) |
| 1575 |
4 |
refactor |
inconsistent-return-statements |
R1710 |
ContextBrokerClient.get_subscription |
Either all return statements in a function should return an expression, or none of them should. |
| 1616 |
12 |
warning |
redefined-outer-name |
W0621 |
ContextBrokerClient.update_subscription |
Redefining name 'version' from outer scope (line 13) |
| 1674 |
16 |
warning |
logging-fstring-interpolation |
W1203 |
ContextBrokerClient.delete_subscription |
Use lazy % formatting in logging functions |
| 1710 |
4 |
refactor |
inconsistent-return-statements |
R1710 |
ContextBrokerClient.post_registration |
Either all return statements in a function should return an expression, or none of them should. |
| 1739 |
4 |
refactor |
inconsistent-return-statements |
R1710 |
ContextBrokerClient.get_registration |
Either all return statements in a function should return an expression, or none of them should. |
| 1833 |
4 |
refactor |
inconsistent-return-statements |
R1710 |
ContextBrokerClient.validate_relationship |
Either all return statements in a function should return an expression, or none of them should. |
| 1845 |
11 |
refactor |
consider-merging-isinstance |
R1701 |
ContextBrokerClient.validate_relationship |
Consider merging these isinstance calls to isinstance(relationship, (ContextAttribute, NamedContextAttribute)) |
| 1856 |
32 |
error |
no-member |
E1101 |
ContextBrokerClient.validate_relationship |
Instance of 'tuple' has no 'value' member |
| 1910 |
0 |
warning |
implicit-str-concat |
W1404 |
|
Implicit string concatenation found in call |
| 1980 |
33 |
error |
no-member |
E1101 |
ContextBrokerClient.update |
Instance of 'tuple' has no 'value' member |
| 2006 |
8 |
warning |
unused-argument |
W0613 |
ContextBrokerClient.query |
Unused argument 'order_by' |
| 2124 |
4 |
refactor |
inconsistent-return-statements |
R1710 |
ContextBrokerClient.does_entity_exist |
Either all return statements in a function should return an expression, or none of them should. |
| 2158 |
8 |
convention |
invalid-name |
C0103 |
ContextBrokerClient.patch_entity |
Argument name "forcedUpdate" doesn't conform to snake_case naming style |
| 2203 |
51 |
warning |
unnecessary-lambda |
W0108 |
ContextBrokerClient.compare_lists_ignore_order.get_canonical_key.<lambda> |
Lambda may not be necessary |
| 2236 |
23 |
refactor |
use-a-generator |
R1729 |
ContextBrokerClient._subscription_dicts_are_equal._value_is_not_none |
Use a generator instead 'any(_value_is_not_none(value=_v) for _v in value.values())' |
| 2237 |
12 |
refactor |
no-else-return |
R1705 |
ContextBrokerClient._subscription_dicts_are_equal._value_is_not_none |
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
| 2238 |
23 |
refactor |
use-a-generator |
R1729 |
ContextBrokerClient._subscription_dicts_are_equal._value_is_not_none |
Use a generator instead 'any(_value_is_not_none(value=_v) for _v in value)' |
| 2247 |
15 |
convention |
invalid-name |
C0103 |
ContextBrokerClient._subscription_dicts_are_equal |
Variable name "v" doesn't conform to snake_case naming style |
| 2251 |
16 |
refactor |
no-else-continue |
R1724 |
ContextBrokerClient._subscription_dicts_are_equal |
Unnecessary "else" after "continue", remove the "else" and de-indent the code inside it |
| 2257 |
16 |
refactor |
no-else-continue |
R1724 |
ContextBrokerClient._subscription_dicts_are_equal |
Unnecessary "else" after "continue", remove the "else" and de-indent the code inside it |
| 2263 |
16 |
refactor |
no-else-continue |
R1724 |
ContextBrokerClient._subscription_dicts_are_equal |
Unnecessary "else" after "continue", remove the "else" and de-indent the code inside it |
| 2266 |
20 |
warning |
logging-fstring-interpolation |
W1203 |
ContextBrokerClient._subscription_dicts_are_equal |
Use lazy % formatting in logging functions |
| Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
| 9 |
0 |
warning |
unused-import |
W0611 |
|
Unused Optional imported from typing |
| 12 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'requests' |
| 13 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pydantic' |
| 14 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pydantic.type_adapter' |
| 60 |
4 |
refactor |
inconsistent-return-statements |
R1710 |
IoTAClient.get_version |
Either all return statements in a function should return an expression, or none of them should. |
| 127 |
0 |
warning |
implicit-str-concat |
W1404 |
|
Implicit string concatenation found in call |
| 158 |
4 |
refactor |
inconsistent-return-statements |
R1710 |
IoTAClient.get_group_list |
Either all return statements in a function should return an expression, or none of them should. |
| 173 |
16 |
convention |
invalid-name |
C0103 |
IoTAClient.get_group_list |
Variable name "ta" doesn't conform to snake_case naming style |
| 197 |
8 |
refactor |
no-else-return |
R1705 |
IoTAClient.get_group |
Unnecessary "elif" after "return", remove the leading "el" from "elif" |
| 311 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (101/100) |
| 316 |
4 |
refactor |
inconsistent-return-statements |
R1710 |
IoTAClient.post_devices |
Either all return statements in a function should return an expression, or none of them should. |
| 369 |
4 |
refactor |
too-many-locals |
R0914 |
IoTAClient.get_device_list |
Too many local variables (18/15) |
| 369 |
4 |
refactor |
inconsistent-return-statements |
R1710 |
IoTAClient.get_device_list |
Either all return statements in a function should return an expression, or none of them should. |
| 400 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (114/100) |
| 406 |
12 |
refactor |
no-else-raise |
R1720 |
IoTAClient.get_device_list |
Unnecessary "else" after "raise", remove the "else" and de-indent the code inside it |
| 407 |
0 |
warning |
implicit-str-concat |
W1404 |
|
Implicit string concatenation found in call |
| 412 |
12 |
refactor |
no-else-raise |
R1720 |
IoTAClient.get_device_list |
Unnecessary "else" after "raise", remove the "else" and de-indent the code inside it |
| 422 |
16 |
refactor |
no-else-return |
R1705 |
IoTAClient.get_device_list |
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
| 425 |
20 |
convention |
invalid-name |
C0103 |
IoTAClient.get_device_list |
Variable name "ta" doesn't conform to snake_case naming style |
| 462 |
4 |
refactor |
inconsistent-return-statements |
R1710 |
IoTAClient.get_device |
Either all return statements in a function should return an expression, or none of them should. |
| 484 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (107/100) |
| 521 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (118/100) |
| 603 |
12 |
refactor |
no-else-raise |
R1720 |
IoTAClient.delete_device |
Unnecessary "else" after "raise", remove the "else" and de-indent the code inside it |
| 604 |
16 |
warning |
broad-exception-raised |
W0719 |
IoTAClient.delete_device |
Raising too general exception: Exception |
| 612 |
20 |
convention |
import-outside-toplevel |
C0415 |
IoTAClient.delete_device |
Import outside toplevel (filip.clients.ngsi_v2.ContextBrokerClient) |
| 633 |
16 |
warning |
unused-variable |
W0612 |
IoTAClient.delete_device |
Unused variable 'err' |
| 721 |
8 |
convention |
import-outside-toplevel |
C0415 |
IoTAClient.patch_device |
Import outside toplevel (filip.models.ngsi_v2.context.ContextEntity, filip.models.ngsi_v2.context.NamedContextAttribute) |
| 724 |
12 |
convention |
import-outside-toplevel |
C0415 |
IoTAClient.patch_device.build_context_entity_from_device |
Import outside toplevel (filip.models.base.DataType) |
| 764 |
12 |
convention |
import-outside-toplevel |
C0415 |
IoTAClient.patch_device |
Import outside toplevel (filip.clients.ngsi_v2.ContextBrokerClient) |
| 798 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (106/100) |
| 805 |
4 |
refactor |
inconsistent-return-statements |
R1710 |
IoTAClient.get_loglevel_of_agent |
Either all return statements in a function should return an expression, or none of them should. |
| 822 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (108/100) |
| 848 |
0 |
warning |
implicit-str-concat |
W1404 |
|
Implicit string concatenation found in call |
| Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
| 1 |
0 |
convention |
too-many-lines |
C0302 |
|
Too many lines in module (1308/1000) |
| 12 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'requests' |
| 13 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pydantic' |
| 14 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pydantic.type_adapter' |
| 64 |
4 |
refactor |
inconsistent-return-statements |
R1710 |
QuantumLeapClient.get_version |
Either all return statements in a function should return an expression, or none of them should. |
| 83 |
4 |
refactor |
inconsistent-return-statements |
R1710 |
QuantumLeapClient.get_health |
Either all return statements in a function should return an expression, or none of them should. |
| 144 |
4 |
refactor |
too-many-arguments |
R0913 |
QuantumLeapClient.post_subscription |
Too many arguments (11/5) |
| 234 |
12 |
warning |
unused-variable |
W0612 |
QuantumLeapClient.delete_entity |
Unused variable 'err' |
| 242 |
8 |
warning |
broad-exception-raised |
W0719 |
QuantumLeapClient.delete_entity |
Raising too general exception: Exception |
| 244 |
4 |
refactor |
inconsistent-return-statements |
R1710 |
QuantumLeapClient.delete_entity_type |
Either all return statements in a function should return an expression, or none of them should. |
| 269 |
4 |
refactor |
too-many-locals |
R0914 |
QuantumLeapClient.__query_builder |
Too many local variables (26/15) |
| 269 |
4 |
refactor |
too-many-branches |
R0912 |
QuantumLeapClient.__query_builder |
Too many branches (25/12) |
| 269 |
4 |
refactor |
too-many-statements |
R0915 |
QuantumLeapClient.__query_builder |
Too many statements (64/50) |
| 398 |
16 |
refactor |
no-else-break |
R1723 |
QuantumLeapClient.__query_builder |
Unnecessary "else" after "break", remove the "else" and de-indent the code inside it |
| 463 |
8 |
convention |
invalid-name |
C0103 |
QuantumLeapClient.get_entities |
Variable name "ta" doesn't conform to snake_case naming style |
| 467 |
4 |
refactor |
too-many-locals |
R0914 |
QuantumLeapClient.get_entity_by_id |
Too many local variables (19/15) |
| 588 |
4 |
refactor |
too-many-locals |
R0914 |
QuantumLeapClient.get_entity_values_by_id |
Too many local variables (19/15) |
| 662 |
4 |
refactor |
too-many-locals |
R0914 |
QuantumLeapClient.get_entity_attr_by_id |
Too many local variables (20/15) |
| 747 |
4 |
refactor |
too-many-locals |
R0914 |
QuantumLeapClient.get_entity_attr_values_by_id |
Too many local variables (20/15) |
| 835 |
4 |
refactor |
too-many-locals |
R0914 |
QuantumLeapClient.get_entity_by_type |
Too many local variables (23/15) |
| 897 |
4 |
refactor |
too-many-locals |
R0914 |
QuantumLeapClient.get_entity_values_by_type |
Too many local variables (23/15) |
| 960 |
4 |
refactor |
too-many-locals |
R0914 |
QuantumLeapClient.get_entity_attr_by_type |
Too many local variables (24/15) |
| 1075 |
4 |
refactor |
too-many-locals |
R0914 |
QuantumLeapClient.get_entity_attr_values_by_type |
Too many local variables (23/15) |
| 1225 |
16 |
warning |
unnecessary-lambda |
W0108 |
QuantumLeapClient.get_entity_by_attrs.<lambda> |
Lambda may not be necessary |
| 1229 |
20 |
warning |
unnecessary-lambda |
W0108 |
QuantumLeapClient.get_entity_by_attrs.<lambda> |
Lambda may not be necessary |
| 1292 |
4 |
convention |
missing-function-docstring |
C0116 |
QuantumLeapClient.transform_attr_response_model |
Missing function or method docstring |
| 1299 |
31 |
warning |
cell-var-from-loop |
W0640 |
QuantumLeapClient.transform_attr_response_model.<lambda> |
Cell variable entity_group defined in loop |
| Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
| 7 |
0 |
warning |
unused-import |
W0611 |
|
Unused import re |
| 8 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'geojson_pydantic' |
| 17 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'aenum' |
| 18 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pydantic' |
| 19 |
0 |
warning |
unused-import |
W0611 |
|
Unused ContextEntity imported from filip.models.ngsi_v2 |
| 20 |
0 |
warning |
unused-import |
W0611 |
|
Unused FiwareRegex imported from filip.utils.validators |
| 25 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pydantic_core' |
| 25 |
0 |
convention |
wrong-import-order |
C0411 |
|
third party import "from pydantic_core import ValidationError" should be placed before "from filip.models.ngsi_v2 import ContextEntity" |
| 25 |
0 |
warning |
unused-import |
W0611 |
|
Unused ValidationError imported from pydantic_core |
| 30 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (101/100) |
| 47 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (109/100) |
| 125 |
14 |
refactor |
unnecessary-comprehension |
R1721 |
ContextProperty.get_model_fields_set |
Unnecessary use of a comprehension, use list(cls.model_fields) instead. |
| 151 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (115/100) |
| 193 |
4 |
refactor |
inconsistent-return-statements |
R1710 |
ContextGeoPropertyValue.check_geoproperty_value |
Either all return statements in a function should return an expression, or none of them should. |
| 197 |
8 |
refactor |
no-else-return |
R1705 |
ContextGeoPropertyValue.check_geoproperty_value |
Unnecessary "elif" after "return", remove the leading "el" from "elif" |
| 268 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (110/100) |
| 290 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (114/100) |
| 537 |
4 |
convention |
missing-function-docstring |
C0116 |
ContextLDEntity.return_context |
Missing function or method docstring |
| 582 |
14 |
refactor |
unnecessary-comprehension |
R1721 |
ContextLDEntity.get_model_fields_set |
Unnecessary use of a comprehension, use list(cls.model_fields) instead. |
| 600 |
19 |
warning |
broad-exception-caught |
W0718 |
ContextLDEntity._validate_single_property |
Catching too general exception Exception |
| 600 |
12 |
warning |
unused-variable |
W0612 |
ContextLDEntity._validate_single_property |
Unused variable 'e' |
| 626 |
4 |
convention |
missing-function-docstring |
C0116 |
ContextLDEntity.model_dump |
Missing function or method docstring |
| 626 |
4 |
warning |
useless-parent-delegation |
W0246 |
ContextLDEntity.model_dump |
Useless parent or super() delegation in method 'model_dump' |
| 631 |
26 |
warning |
redefined-builtin |
W0622 |
ContextLDEntity._validate_id |
Redefining built-in 'id' |
| 639 |
4 |
refactor |
too-many-branches |
R0912 |
ContextLDEntity.get_properties |
Too many branches (13/12) |
| 747 |
12 |
convention |
unnecessary-dunder-call |
C2801 |
ContextLDEntity.add_geo_properties |
Unnecessarily calls dunder method __setattr__. Set attribute directly or use setattr built-in function. |
| 767 |
12 |
convention |
unnecessary-dunder-call |
C2801 |
ContextLDEntity.add_properties |
Unnecessarily calls dunder method __setattr__. Set attribute directly or use setattr built-in function. |
| 788 |
12 |
convention |
unnecessary-dunder-call |
C2801 |
ContextLDEntity.add_relationships |
Unnecessarily calls dunder method __setattr__. Set attribute directly or use setattr built-in function. |
| 832 |
8 |
refactor |
no-else-return |
R1705 |
ContextLDEntity.get_context |
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
| 838 |
4 |
convention |
missing-function-docstring |
C0116 |
ContextLDEntity.to_keyvalues |
Missing function or method docstring |
| Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
| 1 |
0 |
convention |
missing-module-docstring |
C0114 |
|
Missing module docstring |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.models.ngsi_v2.base:[179:201]
==filip.models.ngsi_v2.context:[48:67]
"Example: "
"{"
" 'id': 'R12345',"
" 'type': 'Room',"
" 'temperature': 22"
"}",
)
VALUES = (
"values",
"Key value message representation. "
"This mode represents the entity as an array of "
"attribute values. Information about id and type is "
"left out. See example below. The order of the "
"attributes in the array is specified by the attrs "
"URI param (e.g. attrs=branch,colour,engine). "
"If attrs is not used, the order is arbitrary. "
"Example:"
"[ 'Ford', 'black', 78.3 ]",
)
# NGSIv2 entity models |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.clients.ngsi_ld.cb:[132:157]
==filip.clients.ngsi_v2.cb:[138:164]
while len(items) < limit and len(items) < count:
# Establishing the offset from where entities are retrieved
params["offset"] = len(items)
params["limit"] = min(1000, (limit - len(items)))
res = session.request(
method=method,
url=url,
params=params,
headers=headers,
data=data,
)
if res.ok:
items.extend(res.json())
else:
res.raise_for_status()
self.logger.debug("Received: %s", items)
return items
res.raise_for_status()
# MANAGEMENT API
def get_version(self) -> Dict:
"""
Gets version of IoT Agent
Returns:
Dictionary with response
""" |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.models.ngsi_ld.context:[403:415]
==filip.models.ngsi_v2.context:[166:177]
...,
title="Entity Type",
description="Id of an entity in an NGSI context broker. "
"Allowed characters are the ones in the plain ASCII set, "
"except the following ones: control characters, "
"whitespace, &, ?, / and #.",
json_schema_extra={"example": "Room"},
max_length=256,
min_length=1,
# pattern=FiwareRegex.standard.value, # Make it FIWARE-Safe
frozen=True,
) |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.models.ngsi_v2.iot:[143:154]
==filip.models.ngsi_v2.subscriptions:[48:59]
type: Union[DataType, str] = Field(
default=DataType.TEXT,
description="The attribute type represents the NGSI value type of the "
"attribute value. Note that FIWARE NGSI has its own type "
"system for attribute values, so NGSI value types are not "
"the same as JSON types. Allowed characters "
"are the ones in the plain ASCII set, except the following "
"ones: control characters, whitespace, &, ?, / and #.",
max_length=256,
min_length=1,
) |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.models.ngsi_ld.context:[384:394]
==filip.models.ngsi_v2.context:[149:159]
model_config = ConfigDict(
extra="allow", validate_default=True, validate_assignment=True
)
id: str = Field(
...,
title="Entity Id",
description="Id of an entity in an NGSI context broker. Allowed "
"characters are the ones in the plain ASCII set, except "
"the following ones: control characters, "
"whitespace, &, ?, / and #." |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.models.ngsi_v2.base:[297:308]
==filip.models.ngsi_v2.subscriptions:[48:59]
type: Union[DataType, str] = Field(
default=DataType.TEXT,
description="The attribute type represents the NGSI value type of the "
"attribute value. Note that FIWARE NGSI has its own type "
"system for attribute values, so NGSI value types are not "
"the same as JSON types. Allowed characters "
"are the ones in the plain ASCII set, except the following "
"ones: control characters, whitespace, &, ?, / and #.",
max_length=256,
min_length=1,
) |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.models.ngsi_v2.base:[297:309]
==filip.models.ngsi_v2.iot:[143:157]
type: Union[DataType, str] = Field(
default=DataType.TEXT,
description="The attribute type represents the NGSI value type of the "
"attribute value. Note that FIWARE NGSI has its own type "
"system for attribute values, so NGSI value types are not "
"the same as JSON types. Allowed characters "
"are the ones in the plain ASCII set, except the following "
"ones: control characters, whitespace, &, ?, / and #.",
max_length=256,
min_length=1,
)
valid_type = field_validator("type")(validate_fiware_datatype_string_protect)
|
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.clients.ngsi_ld.cb:[974:984]
==filip.clients.ngsi_v2.cb:[1856:1876]
'"value" "entity_id"}'
)
else:
raise ValueError("Invalid relationship type.")
try:
destination_entity = self.get_entity(entity_id=destination_id)
return destination_entity.id == destination_id
except requests.RequestException as err:
if err.response.status_code == 404:
return False
def update_registration(self, registration: Registration):
"""
Only the fields included in the request are updated in the registration.
Args:
registration: Registration to update
Returns:
""" |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.clients.ngsi_ld.cb:[119:130]
==filip.clients.ngsi_v2.cb:[125:136]
if self.session:
session = self.session
else:
session = requests.Session()
with session:
res = session.request(
method=method, url=url, params=params, headers=headers, data=data
)
if res.ok:
items = res.json()
# do pagination |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.models.ngsi_ld.context:[357:369]
==filip.models.ngsi_v2.base:[358:369]
name: str = Field(
title="Attribute name",
description="The attribute name describes what kind of property the "
"attribute value represents of the entity, for example "
"current_speed. Allowed characters "
"are the ones in the plain ASCII set, except the following "
"ones: control characters, whitespace, &, ?, / and #.",
max_length=256,
min_length=1,
# Make it FIWARE-Safe
) |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.semantics.ontology_parser.vocabulary_builder:[14:25]
==filip.semantics.vocabulary.vocabulary:[93:106]
class IdType(str, Enum):
class_ = "Class"
object_property = "Object Property"
data_property = "Data Property"
datatype = "Datatype"
relation = "Relation"
combined_relation = "Combined Relation"
individual = "Individual"
source = "Source"
|
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.clients.ngsi_ld.cb:[767:776]
==filip.clients.ngsi_v2.cb:[1649:1658]
exclude_none=True,
),
)
if res.ok:
self.logger.info("Subscription successfully updated!")
else:
res.raise_for_status()
except requests.RequestException as err:
msg = f"Could not update subscription {subscription.id}" |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.clients.ngsi_ld.cb:[496:505]
==filip.clients.ngsi_v2.cb:[1189:1198]
assert attr_name is not None, (
"Missing name for attribute. "
"attr_name must be present if"
"attr is of type ContextAttribute"
)
else:
assert attr_name is None, (
"Invalid argument attr_name. Do not set "
"attr_name if attr is of type " |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.models.ngsi_v2.base:[169:178]
==filip.models.ngsi_v2.context:[37:46]
_init_ = "value __doc__"
NORMALIZED = "normalized", "Normalized message representation"
KEY_VALUES = (
"keyValues",
"Key value message representation."
"This mode represents the entity "
"attributes by their values only, leaving out "
"the information about type and metadata. " |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.semantics.semantics_models:[126:137]
==filip.semantics.vocabulary.entities:[659:670]
return False
if not self.number_range_min == "/":
if number < self.number_range_min:
return False
if not self.number_range_max == "/":
if number > self.number_range_max:
return False
return True
|
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.semantics.semantics_models:[107:116]
==filip.semantics.vocabulary.entities:[638:648]
if len(self.allowed_chars) > 0:
# if allowed chars is empty all chars are allowed
for char in value:
if char not in self.allowed_chars:
return False
for char in self.forbidden_chars:
if char in value:
return False
return True
|
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.clients.ngsi_ld.cb:[731:739]
==filip.clients.ngsi_v2.cb:[1583:1591]
url = urljoin(
self.base_url, f"{self._url_version}/subscriptions/{subscription_id}"
)
headers = self.headers.copy()
try:
res = self.get(url=url, headers=headers)
if res.ok:
self.logger.debug("Received: %s", res.json()) |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.clients.ngsi_ld.cb:[640:651]
==filip.clients.ngsi_v2.cb:[1438:1449]
url = urljoin(self.base_url, f"{self._url_version}/subscriptions/")
headers = self.headers.copy()
params = {}
# We always use the 'count' option to check weather pagination is
# required
params.update({"options": "count"})
try:
items = self.__pagination(
limit=limit, url=url, params=params, headers=headers
) |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.models.ngsi_ld.context:[880:887]
==filip.models.ngsi_v2.subscriptions:[98:107]
description="is an array with the notification data itself which "
"includes the entity and all concerned attributes. Each "
"element in the array corresponds to a different entity. "
"By default, the entities are represented in normalized "
"mode. However, using the attrsFormat modifier, a "
"simplified representation mode can be requested."
) |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.models.ngsi_ld.context:[7:14]
==filip.models.ngsi_v2.base:[7:14]
from geojson_pydantic import (
Point,
MultiPoint,
LineString,
MultiLineString,
Polygon,
MultiPolygon, |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.semantics.semantics_models:[141:153]
==filip.semantics.vocabulary.entities:[674:703]
try:
from dateutil.parser import parse
parse(value, fuzzy=False)
return True
except ValueError:
return False
return True
|
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.clients.ngsi_ld.cb:[712:719]
==filip.clients.ngsi_v2.cb:[1565:1572]
)
if res.ok:
self.logger.info("Subscription successfully created!")
return res.headers["Location"].split("/")[-1]
res.raise_for_status()
except requests.RequestException as err:
msg = "Could not send subscription!" |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.clients.ngsi_ld.cb:[688:695]
==filip.clients.ngsi_v2.cb:[1516:1523]
):
self.logger.info("Subscription already exists")
if update:
self.logger.info("Updated subscription")
subscription.id = ex_sub.id
self.update_subscription(subscription)
else: |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.clients.ngsi_ld.cb:[641:651]
==filip.clients.ngsi_v2.cb:[1693:1703]
headers = self.headers.copy()
params = {}
# We always use the 'count' option to check weather pagination is
# required
params.update({"options": "count"})
try:
items = self.__pagination(
limit=limit, url=url, params=params, headers=headers
) |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.clients.ngsi_ld.cb:[288:295]
==filip.clients.ngsi_v2.cb:[526:533]
url = urljoin(self.base_url, f"{self._url_version}/entities/{entity_id}")
headers = self.headers.copy()
params = {}
if entity_type:
params.update({"type": entity_type})
if attrs:
params.update({"attrs": ",".join(attrs)}) |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.clients.ngsi_v2.cb:[165:172]
==filip.clients.ngsi_v2.iota:[67:74]
try:
res = self.get(url=url, headers=self.headers)
if res.ok:
return res.json()
res.raise_for_status()
except requests.RequestException as err:
self.logger.error(err) |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.models.ngsi_v2.registrations:[131:137]
==filip.models.ngsi_v2.subscriptions:[546:552]
"attribute is set to expired (no matter if the client "
"updates it to active/inactive). Also, for subscriptions "
"experiencing problems with notifications, the status is "
"set to failed. As soon as the notifications start working "
"again, the status is changed back to active.",
) |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.models.ngsi_ld.context:[159:166]
==filip.models.ngsi_v2.base:[361:369]
"attribute value represents of the entity, for example "
"current_speed. Allowed characters "
"are the ones in the plain ASCII set, except the following "
"ones: control characters, whitespace, &, ?, / and #.",
max_length=256,
min_length=1,
# Make it FIWARE-Safe
) |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.models.ngsi_ld.context:[8:14]
==filip.models.ngsi_v2.base:[463:469]
Point,
MultiPoint,
LineString,
MultiLineString,
Polygon,
MultiPolygon, |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.models.ngsi_v2.base:[363:372]
==filip.models.ngsi_v2.iot:[165:171]
"are the ones in the plain ASCII set, except the following "
"ones: control characters, whitespace, &, ?, / and #.",
max_length=256,
min_length=1,
)
valid_name = field_validator("name")(validate_fiware_attribute_name_regex) |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.semantics.ontology_parser.rdfparser:[77:87]
==filip.semantics.vocabulary.vocabulary:[551:570]
if "#" in iri:
index = iri.find("#")
return iri[:index]
else:
# for example if uri looks like:
# http://webprotege.stanford.edu/RDwpQ8vbi7HaApq8VoqJUXH
index = iri.rfind("/")
return iri[:index]
|
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.clients.ngsi_ld.cb:[733:739]
==filip.clients.ngsi_v2.cb:[1750:1756]
)
headers = self.headers.copy()
try:
res = self.get(url=url, headers=headers)
if res.ok:
self.logger.debug("Received: %s", res.json()) |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.clients.ngsi_ld.cb:[785:799]
==filip.clients.ngsi_v2.cb:[1666:1680]
url = urljoin(
self.base_url, f"{self._url_version}/subscriptions/{subscription_id}"
)
headers = self.headers.copy()
try:
res = self.delete(url=url, headers=headers)
if res.ok:
self.logger.info(
f"Subscription '{subscription_id}' " f"successfully deleted!"
)
else:
res.raise_for_status()
except requests.RequestException as err:
msg = f"Could not delete subscription {subscription_id}" |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.clients.ngsi_ld.cb:[787:793]
==filip.clients.ngsi_v2.cb:[1903:1909]
)
headers = self.headers.copy()
try:
res = self.delete(url=url, headers=headers)
if res.ok:
self.logger.info( |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.clients.ngsi_ld.cb:[615:622]
==filip.clients.ngsi_v2.cb:[1668:1674]
)
headers = self.headers.copy()
try:
res = self.delete(url=url, headers=headers)
if res.ok:
self.logger.info( |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.clients.ngsi_ld.cb:[289:295]
==filip.clients.ngsi_v2.cb:[591:597]
headers = self.headers.copy()
params = {}
if entity_type:
params.update({"type": entity_type})
if attrs:
params.update({"attrs": ",".join(attrs)}) |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.clients.ngsi_ld.cb:[228:234]
==filip.clients.ngsi_v2.cb:[282:288]
)
if res.ok:
self.logger.info("Entity successfully posted!")
return res.headers.get("Location")
res.raise_for_status()
except requests.RequestException as err: |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.clients.ngsi_ld.cb:[109:116]
==filip.clients.ngsi_v2.cb:[118:125]
if limit is None:
limit = inf
if limit > 1000:
params["limit"] = 1000 # maximum items per request
else:
params["limit"] = limit
|
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.clients.ngsi_v2.cb:[164:170]
==filip.clients.ngsi_v2.quantumleap:[70:76]
url = urljoin(self.base_url, "version")
try:
res = self.get(url=url, headers=self.headers)
if res.ok:
return res.json()
res.raise_for_status() |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.models.ngsi_v2.iot:[11:16]
==filip.models.ngsi_v2.subscriptions:[8:13]
from pydantic import (
field_validator,
model_validator,
ConfigDict,
BaseModel, |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.semantics.ontology_parser.post_processer:[14:19]
==filip.semantics.ontology_parser.rdfparser:[10:15]
from filip.semantics.ontology_parser.vocabulary_builder import VocabularyBuilder
from filip.semantics.vocabulary import (
Source,
IdType,
Vocabulary, |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.clients.ngsi_ld.cb:[966:971]
==filip.clients.ngsi_v2.cb:[1848:1853]
elif isinstance(relationship, dict):
_sentinel = object()
destination_id = relationship.get("value", _sentinel)
if destination_id is _sentinel:
raise ValueError( |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.clients.ngsi_ld.cb:[761:766]
==filip.clients.ngsi_v2.cb:[1635:1640]
try:
res = self.patch(
url=url,
headers=headers,
data=subscription.model_dump_json( |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.clients.ngsi_ld.cb:[304:309]
==filip.clients.ngsi_v2.cb:[539:544]
try:
res = self.get(url=url, params=params, headers=headers)
if res.ok:
self.logger.info("Entity successfully retrieved!")
self.logger.debug("Received: %s", res.json()) |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.clients.ngsi_ld.cb:[584:591]
==filip.clients.ngsi_v2.cb:[1255:1260]
headers = self.headers.copy()
params = {}
if entity_type:
params.update({"type": entity_type})
try: |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.clients.ngsi_ld.cb:[583:590]
==filip.clients.ngsi_v2.cb:[526:531]
url = urljoin(self.base_url, f"{self._url_version}/entities/{entity_id}")
headers = self.headers.copy()
params = {}
if entity_type:
params.update({"type": entity_type}) |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.clients.ngsi_ld.cb:[553:558]
==filip.clients.ngsi_v2.cb:[1985:1990]
try:
res = self.post(
url=url,
headers=headers,
params=params, |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.clients.ngsi_ld.cb:[705:710]
==filip.clients.ngsi_v2.cb:[1548:1553]
try:
res = self.post(
url=url,
headers=headers,
data=subscription.model_dump_json( |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.clients.ngsi_ld.cb:[190:195]
==filip.clients.ngsi_v2.cb:[167:172]
if res.ok:
return res.json()
res.raise_for_status()
except requests.RequestException as err:
self.logger.error(err) |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.clients.ngsi_v2.cb:[1669:1674]
==filip.clients.ngsi_v2.quantumleap:[253:258]
headers = self.headers.copy()
try:
res = self.delete(url=url, headers=headers)
if res.ok:
self.logger.info( |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.clients.ngsi_v2.cb:[165:170]
==filip.clients.ngsi_v2.quantumleap:[96:101]
try:
res = self.get(url=url, headers=self.headers)
if res.ok:
return res.json()
res.raise_for_status() |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.clients.ngsi_ld.cb:[160:165]
==filip.clients.ngsi_v2.iota:[69:74]
if res.ok:
return res.json()
res.raise_for_status()
except requests.RequestException as err:
self.logger.error(err) |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.clients.ngsi_v2.cb:[1216:1221]
==filip.clients.ngsi_v2.iota:[259:264]
try:
res = self.put(
url=url,
headers=headers,
params=params, |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.clients.ngsi_v2.iota:[67:72]
==filip.clients.ngsi_v2.quantumleap:[71:76]
try:
res = self.get(url=url, headers=self.headers)
if res.ok:
return res.json()
res.raise_for_status() |
| 1 |
0 |
refactor |
duplicate-code |
R0801 |
|
Similar lines in 2 files
==filip.clients.mqtt.encoder.json:[23:30]
==filip.clients.mqtt.encoder.ulralight:[29:38]
return apikey, device_id, payload
def encode_msg(
self, device_id: str, payload: Any, msg_type: IoTAMQTTMessageType
) -> str:
if msg_type == IoTAMQTTMessageType.SINGLE:
return payload
elif msg_type == IoTAMQTTMessageType.MULTI:
payload = super()._parse_timestamp(payload=payload) |
| 1 |
0 |
refactor |
cyclic-import |
R0401 |
|
Cyclic import (filip.models.base -> filip.utils.validators) |
| 1 |
0 |
refactor |
cyclic-import |
R0401 |
|
Cyclic import (filip -> filip.clients.ngsi_v2 -> filip.clients.ngsi_v2.quantumleap) |
| 1 |
0 |
refactor |
cyclic-import |
R0401 |
|
Cyclic import (filip.clients.ngsi_v2 -> filip.clients.ngsi_v2.cb) |
| 1 |
0 |
refactor |
cyclic-import |
R0401 |
|
Cyclic import (filip.clients.mqtt.encoder -> filip.clients.mqtt.encoder.json) |
| 1 |
0 |
refactor |
cyclic-import |
R0401 |
|
Cyclic import (filip.clients.mqtt.encoder -> filip.clients.mqtt.encoder.ulralight) |
| 1 |
0 |
refactor |
cyclic-import |
R0401 |
|
Cyclic import (filip.clients.ngsi_v2 -> filip.clients.ngsi_v2.iota) |
| 1 |
0 |
refactor |
cyclic-import |
R0401 |
|
Cyclic import (filip.clients.ngsi_v2 -> filip.clients.ngsi_v2.client) |
| 1 |
0 |
refactor |
cyclic-import |
R0401 |
|
Cyclic import (filip.clients.ngsi_v2 -> filip.clients.ngsi_v2.iota -> filip.utils.filter) |
| 1 |
0 |
refactor |
cyclic-import |
R0401 |
|
Cyclic import (filip.semantics.vocabulary -> filip.semantics.vocabulary.relation -> filip.semantics.vocabulary.vocabulary) |
| 1 |
0 |
refactor |
cyclic-import |
R0401 |
|
Cyclic import (filip.semantics.ontology_parser.post_processer -> filip.semantics.vocabulary_configurator) |
| 1 |
0 |
refactor |
cyclic-import |
R0401 |
|
Cyclic import (filip.semantics.vocabulary -> filip.semantics.vocabulary.vocabulary) |
| 2 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pydantic' |
| 2 |
0 |
warning |
unused-import |
W0611 |
|
Unused HttpUrl imported from pydantic |
| 11 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'dateutil.parser' |
| 32 |
0 |
convention |
missing-class-docstring |
C0115 |
KeyValuePair |
Missing class docstring |
| 93 |
4 |
convention |
missing-function-docstring |
C0116 |
Endpoint.check_uri |
Missing function or method docstring |
| 100 |
4 |
convention |
missing-function-docstring |
C0116 |
Endpoint.check_notifier_info |
Missing function or method docstring |
| 100 |
33 |
convention |
invalid-name |
C0103 |
Endpoint.check_notifier_info |
Argument name "notifierInfo" doesn't conform to snake_case naming style |
| 144 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (109/100) |
| 202 |
4 |
convention |
missing-function-docstring |
C0116 |
TemporalQuery.check_uri |
Missing function or method docstring |
| 202 |
23 |
convention |
invalid-name |
C0103 |
TemporalQuery.check_uri |
Argument name "v" doesn't conform to snake_case naming style |
| 203 |
8 |
refactor |
no-else-return |
R1705 |
TemporalQuery.check_uri |
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
| 209 |
16 |
warning |
raise-missing-from |
W0707 |
TemporalQuery.check_uri |
Consider explicitly re-raising using 'except ValueError as exc' and 'raise ValueError('timeAt must be in ISO8061 format') from exc' |
| 214 |
4 |
convention |
missing-function-docstring |
C0116 |
TemporalQuery.check_passwords_match |
Missing function or method docstring |
| 254 |
4 |
convention |
missing-function-docstring |
C0116 |
SubscriptionLD.check_q |
Missing function or method docstring |
| 254 |
21 |
convention |
invalid-name |
C0103 |
SubscriptionLD.check_q |
Argument name "v" doesn't conform to snake_case naming style |
| Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
| 7 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'aenum' |
| 8 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'geojson_pydantic' |
| 18 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pydantic' |
| 30 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "from typing import Union, Optional, Pattern, List, Dict, Any" should be placed before "from aenum import Enum" |
| 68 |
4 |
convention |
missing-function-docstring |
C0116 |
EntityPattern.validate_conditions |
Missing function or method docstring |
| 146 |
4 |
convention |
missing-function-docstring |
C0116 |
Expression.validate_expressions |
Missing function or method docstring |
| 146 |
34 |
convention |
invalid-name |
C0103 |
Expression.validate_expressions |
Argument name "v" doesn't conform to snake_case naming style |
| 146 |
4 |
refactor |
inconsistent-return-statements |
R1710 |
Expression.validate_expressions |
Either all return statements in a function should return an expression, or none of them should. |
| 151 |
4 |
convention |
missing-function-docstring |
C0116 |
Expression.serialize |
Missing function or method docstring |
| 151 |
41 |
warning |
unused-argument |
W0613 |
Expression.serialize |
Unused argument 'info' |
| 153 |
12 |
convention |
invalid-name |
C0103 |
Expression.serialize |
Attribute name "q" doesn't conform to snake_case naming style |
| 155 |
12 |
convention |
invalid-name |
C0103 |
Expression.serialize |
Attribute name "mq" doesn't conform to snake_case naming style |
| 230 |
4 |
convention |
missing-function-docstring |
C0116 |
Metadata.validate_value |
Missing function or method docstring |
| 257 |
4 |
convention |
missing-function-docstring |
C0116 |
NamedMetadata.validate_data |
Missing function or method docstring |
| 268 |
4 |
convention |
missing-function-docstring |
C0116 |
NamedMetadata.to_context_metadata |
Missing function or method docstring |
| 328 |
11 |
convention |
unidiomatic-typecheck |
C0123 |
BaseAttribute.validate_metadata_type |
Use isinstance() rather than type() for a typecheck. |
| 400 |
4 |
convention |
missing-function-docstring |
C0116 |
BaseValueAttribute.validate_value_based_on_type |
Missing function or method docstring |
| 410 |
4 |
refactor |
too-many-return-statements |
R0911 |
BaseValueAttribute.validate_value_type |
Too many return statements (26/6) |
| 410 |
4 |
refactor |
too-many-branches |
R0912 |
BaseValueAttribute.validate_value_type |
Too many branches (31/12) |
| 451 |
16 |
refactor |
no-else-return |
R1705 |
BaseValueAttribute.validate_value_type |
Unnecessary "elif" after "return", remove the leading "el" from "elif" |
| 477 |
20 |
refactor |
no-else-return |
R1705 |
BaseValueAttribute.validate_value_type |
Unnecessary "elif" after "return", remove the leading "el" from "elif" |
| 497 |
16 |
refactor |
no-else-return |
R1705 |
BaseValueAttribute.validate_value_type |
Unnecessary "elif" after "return", remove the leading "el" from "elif" |
| Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
| 8 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'aenum' |
| 9 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pydantic' |
| 17 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pydantic_core.core_schema' |
| 18 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pydantic.types' |
| 18 |
0 |
convention |
ungrouped-imports |
C0412 |
|
Imports from package pydantic are not grouped |
| 27 |
0 |
warning |
unused-import |
W0611 |
|
Unused validate_fiware_datatype_string_protect imported from filip.utils.validators |
| 118 |
23 |
warning |
redefined-builtin |
W0622 |
ContextAttribute.__init__ |
Redefining built-in 'type' |
| 134 |
4 |
warning |
unnecessary-pass |
W0107 |
NamedContextAttribute |
Unnecessary pass statement |
| 184 |
23 |
warning |
redefined-builtin |
W0622 |
ContextEntityKeyValues.__init__ |
Redefining built-in 'id' |
| 184 |
32 |
warning |
redefined-builtin |
W0622 |
ContextEntityKeyValues.__init__ |
Redefining built-in 'type' |
| 219 |
4 |
convention |
missing-function-docstring |
C0116 |
ContextEntityKeyValues.to_normalized |
Missing function or method docstring |
| 223 |
16 |
error |
no-member |
E1101 |
ContextEntityKeyValues.to_normalized |
Instance of 'tuple' has no 'value' member |
| 224 |
19 |
refactor |
consider-merging-isinstance |
R1701 |
ContextEntityKeyValues.to_normalized |
Consider merging these isinstance calls to isinstance(value, (float, int)) |
| 226 |
20 |
error |
no-member |
E1101 |
ContextEntityKeyValues.to_normalized |
Instance of 'tuple' has no 'value' member |
| 228 |
25 |
error |
no-member |
E1101 |
ContextEntityKeyValues.to_normalized |
Instance of 'tuple' has no 'value' member |
| 280 |
23 |
warning |
redefined-builtin |
W0622 |
ContextEntity.__init__ |
Redefining built-in 'id' |
| 280 |
32 |
warning |
redefined-builtin |
W0622 |
ContextEntity.__init__ |
Redefining built-in 'type' |
| 333 |
4 |
convention |
missing-function-docstring |
C0116 |
ContextEntity.check_attributes_after |
Missing function or method docstring |
| 336 |
34 |
convention |
unnecessary-dunder-call |
C2801 |
ContextEntity.check_attributes_after |
Unnecessarily calls dunder method __getattr__. Access attribute directly or use getattr built-in function. |
| 368 |
12 |
convention |
unnecessary-dunder-call |
C2801 |
ContextEntity.add_attributes |
Unnecessarily calls dunder method __setattr__. Set attribute directly or use setattr built-in function. |
| 413 |
30 |
refactor |
unnecessary-comprehension |
R1721 |
ContextEntity.get_attributes |
Unnecessary use of a comprehension, use list(list(DataType)) instead. |
| 416 |
12 |
refactor |
no-else-return |
R1705 |
ContextEntity.get_attributes |
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
| 430 |
12 |
refactor |
no-else-return |
R1705 |
ContextEntity.get_attributes |
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
| 470 |
12 |
convention |
unnecessary-dunder-call |
C2801 |
ContextEntity.update_attribute |
Unnecessarily calls dunder method __setattr__. Set attribute directly or use setattr built-in function. |
| 554 |
13 |
convention |
invalid-name |
C0103 |
ContextEntity.get_properties |
Variable name "c" doesn't conform to snake_case naming style |
| 562 |
8 |
refactor |
no-else-return |
R1705 |
ContextEntity.get_properties |
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
| 633 |
8 |
refactor |
no-else-return |
R1705 |
ContextEntity.get_commands |
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
| 672 |
4 |
convention |
missing-function-docstring |
C0116 |
ContextEntity.to_keyvalues |
Missing function or method docstring |
| 739 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (168/100) |
| 835 |
12 |
warning |
raise-missing-from |
W0707 |
Command.check_value |
Consider explicitly re-raising using 'except Exception as exc' and 'raise ValueError(f'Command value {value} is not serializable') from exc' |
| Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
| 8 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'aenum' |
| 9 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pydantic' |
| 19 |
0 |
convention |
wrong-import-order |
C0411 |
|
first party import "from filip.utils.validators import validate_mqtt_url, validate_mqtt_topic" should be placed before "from .base import AttrsFormat, EntityPattern, Http, Status, Expression" |
| 20 |
0 |
convention |
wrong-import-order |
C0411 |
|
first party import "from filip.models.ngsi_v2.context import ContextEntity" should be placed before "from .base import AttrsFormat, EntityPattern, Http, Status, Expression" |
| 21 |
0 |
convention |
wrong-import-order |
C0411 |
|
first party import "from filip.models.ngsi_v2.base import EntityPattern, Expression, DataType" should be placed before "from .base import AttrsFormat, EntityPattern, Http, Status, Expression" |
| 22 |
0 |
convention |
wrong-import-order |
C0411 |
|
first party import "from filip.custom_types import AnyMqttUrl" should be placed before "from .base import AttrsFormat, EntityPattern, Http, Status, Expression" |
| 23 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "import warnings" should be placed before "from aenum import Enum" |
| 83 |
4 |
convention |
missing-function-docstring |
C0116 |
NgsiPayload.validate_notification_attrs |
Missing function or method docstring |
| 84 |
12 |
convention |
invalid-name |
C0103 |
NgsiPayload.validate_notification_attrs |
Variable name "v" doesn't conform to snake_case naming style |
| 108 |
0 |
convention |
missing-class-docstring |
C0115 |
HttpMethods |
Missing class docstring |
| 164 |
4 |
convention |
missing-function-docstring |
C0116 |
HttpCustom.validate_notification_payloads |
Missing function or method docstring |
| 240 |
4 |
convention |
missing-function-docstring |
C0116 |
MqttCustom.validate_payload_type |
Missing function or method docstring |
| 318 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (168/100) |
| 367 |
4 |
convention |
missing-function-docstring |
C0116 |
Notification.validate_http |
Missing function or method docstring |
| 373 |
4 |
convention |
missing-function-docstring |
C0116 |
Notification.validate_attr |
Missing function or method docstring |
| 379 |
4 |
convention |
missing-function-docstring |
C0116 |
Notification.validate_endpoints |
Missing function or method docstring |
| 415 |
4 |
convention |
missing-function-docstring |
C0116 |
Notification.validate_covered_attrs |
Missing function or method docstring |
| 417 |
12 |
refactor |
no-else-return |
R1705 |
Notification.validate_covered_attrs |
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
| 484 |
4 |
convention |
missing-function-docstring |
C0116 |
Condition.check_attrs |
Missing function or method docstring |
| 484 |
25 |
convention |
invalid-name |
C0103 |
Condition.check_attrs |
Argument name "v" doesn't conform to snake_case naming style |
| 485 |
8 |
refactor |
no-else-return |
R1705 |
Condition.check_attrs |
Unnecessary "elif" after "return", remove the leading "el" from "elif" |
| 493 |
4 |
convention |
missing-function-docstring |
C0116 |
Condition.check_alteration_types |
Missing function or method docstring |
| 493 |
36 |
convention |
invalid-name |
C0103 |
Condition.check_alteration_types |
Argument name "v" doesn't conform to snake_case naming style |
| 496 |
8 |
refactor |
no-else-return |
R1705 |
Condition.check_alteration_types |
Unnecessary "elif" after "return", remove the leading "el" from "elif" |
| Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
| 8 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'rdflib' |
| 48 |
4 |
convention |
invalid-name |
C0103 |
Tags |
Class constant name "rdf_type" doesn't conform to UPPER_CASE naming style |
| 49 |
4 |
convention |
invalid-name |
C0103 |
Tags |
Class constant name "owl_intersection" doesn't conform to UPPER_CASE naming style |
| 50 |
4 |
convention |
invalid-name |
C0103 |
Tags |
Class constant name "owl_union" doesn't conform to UPPER_CASE naming style |
| 51 |
4 |
convention |
invalid-name |
C0103 |
Tags |
Class constant name "owl_one_of" doesn't conform to UPPER_CASE naming style |
| 52 |
4 |
convention |
invalid-name |
C0103 |
Tags |
Class constant name "owl_individual" doesn't conform to UPPER_CASE naming style |
| 53 |
4 |
convention |
invalid-name |
C0103 |
Tags |
Class constant name "owl_on_class" doesn't conform to UPPER_CASE naming style |
| 54 |
4 |
convention |
invalid-name |
C0103 |
Tags |
Class constant name "owl_on_data_range" doesn't conform to UPPER_CASE naming style |
| 78 |
4 |
refactor |
no-else-return |
R1705 |
get_base_out_of_iri |
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
| 136 |
8 |
convention |
invalid-name |
C0103 |
RdfParser.parse_source_into_vocabulary |
Variable name "g" doesn't conform to snake_case naming style |
| 163 |
14 |
convention |
invalid-name |
C0103 |
RdfParser._is_object_defined_by_other_source |
Argument name "a" doesn't conform to snake_case naming style |
| 187 |
4 |
refactor |
too-many-locals |
R0914 |
RdfParser._parse_to_vocabulary |
Too many local variables (29/15) |
| 187 |
4 |
refactor |
too-many-branches |
R0912 |
RdfParser._parse_to_vocabulary |
Too many branches (40/12) |
| 187 |
4 |
refactor |
too-many-statements |
R0915 |
RdfParser._parse_to_vocabulary |
Too many statements (78/50) |
| 200 |
12 |
convention |
invalid-name |
C0103 |
RdfParser._parse_to_vocabulary |
Variable name "a" doesn't conform to snake_case naming style |
| 216 |
16 |
convention |
invalid-name |
C0103 |
RdfParser._parse_to_vocabulary |
Variable name "c" doesn't conform to snake_case naming style |
| 244 |
12 |
convention |
invalid-name |
C0103 |
RdfParser._parse_to_vocabulary |
Variable name "a" doesn't conform to snake_case naming style |
| 286 |
12 |
convention |
invalid-name |
C0103 |
RdfParser._parse_to_vocabulary |
Variable name "a" doesn't conform to snake_case naming style |
| 313 |
12 |
convention |
invalid-name |
C0103 |
RdfParser._parse_to_vocabulary |
Variable name "a" doesn't conform to snake_case naming style |
| 378 |
12 |
convention |
invalid-name |
C0103 |
RdfParser._parse_to_vocabulary |
Variable name "a" doesn't conform to snake_case naming style |
| 402 |
20 |
warning |
redefined-builtin |
W0622 |
RdfParser._parse_to_vocabulary |
Redefining built-in 'object' |
| 411 |
20 |
warning |
redefined-builtin |
W0622 |
RdfParser._parse_to_vocabulary |
Redefining built-in 'type' |
| 458 |
4 |
refactor |
too-many-locals |
R0914 |
RdfParser._parse_subclass_term |
Too many local variables (17/15) |
| 458 |
4 |
refactor |
too-many-branches |
R0912 |
RdfParser._parse_subclass_term |
Too many branches (18/12) |
| 505 |
16 |
convention |
invalid-name |
C0103 |
RdfParser._parse_subclass_term |
Variable name "p" doesn't conform to snake_case naming style |
| 507 |
16 |
convention |
invalid-name |
C0103 |
RdfParser._parse_subclass_term |
Variable name "o" doesn't conform to snake_case naming style |
| 515 |
20 |
warning |
redefined-builtin |
W0622 |
RdfParser._parse_subclass_term |
Redefining built-in 'object' |
| 546 |
16 |
convention |
consider-using-enumerate |
C0200 |
RdfParser._parse_subclass_term |
Consider using enumerate instead of iterating with range and len |
| 580 |
20 |
warning |
redefined-builtin |
W0622 |
RdfParser._parse_subclass_term |
Redefining built-in 'id' |
| 598 |
16 |
convention |
unneeded-not |
C0113 |
RdfParser._parse_subclass_term |
Consider changing "not get_iri_from_uriref(node) == 'http://www.w3.org/1999/02/22-rdf-syntax-ns#nil'" to "get_iri_from_uriref(node) != 'http://www.w3.org/1999/02/22-rdf-syntax-ns#nil'" |
| 603 |
20 |
convention |
unneeded-not |
C0113 |
RdfParser._parse_subclass_term |
Consider changing "not get_iri_from_uriref(node) == 'http://www.w3.org/2002/07/owl#Thing'" to "get_iri_from_uriref(node) != 'http://www.w3.org/2002/07/owl#Thing'" |
| 676 |
20 |
convention |
consider-using-f-string |
C0209 |
RdfParser._parse_relation_type |
Formatting a regular string which could be a f-string |
| 680 |
4 |
refactor |
too-many-arguments |
R0913 |
RdfParser._parse_cardinality |
Too many arguments (6/5) |
| 771 |
14 |
convention |
unneeded-not |
C0113 |
RdfParser._parse_relation_values |
Consider changing "not len(queue) == 0" to "len(queue) != 0" |
| 811 |
4 |
refactor |
too-many-arguments |
R0913 |
RdfParser._extract_objects_out_of_single_combination |
Too many arguments (6/5) |
| Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
| 1 |
0 |
convention |
too-many-lines |
C0302 |
|
Too many lines in module (1302/1000) |
| 9 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'requests' |
| 11 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "from typing import Optional, Dict, Type, List, Any, Union, Set" should be placed before "import requests" |
| 12 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pydantic' |
| 13 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'rapidfuzz' |
| 103 |
8 |
refactor |
no-else-raise |
R1720 |
InstanceRegistry.register |
Unnecessary "else" after "raise", remove the "else" and de-indent the code inside it |
| 196 |
23 |
warning |
protected-access |
W0212 |
InstanceRegistry.load |
Access to a protected member _context_entity_to_semantic_class of a client class |
| 218 |
0 |
refactor |
too-many-public-methods |
R0904 |
SemanticsManager |
Too many public methods (25/20) |
| 255 |
8 |
refactor |
no-else-return |
R1705 |
SemanticsManager.get_client |
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
| 262 |
12 |
warning |
broad-exception-raised |
W0719 |
SemanticsManager.get_client |
Raising too general exception: Exception |
| 273 |
8 |
refactor |
no-else-return |
R1705 |
SemanticsManager.get_iota_client |
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
| 280 |
12 |
warning |
broad-exception-raised |
W0719 |
SemanticsManager.get_iota_client |
Raising too general exception: Exception |
| 282 |
4 |
refactor |
too-many-locals |
R0914 |
SemanticsManager._context_entity_to_semantic_class |
Too many local variables (22/15) |
| 282 |
4 |
refactor |
too-many-branches |
R0912 |
SemanticsManager._context_entity_to_semantic_class |
Too many branches (13/12) |
| 317 |
16 |
warning |
broad-exception-raised |
W0719 |
SemanticsManager._context_entity_to_semantic_class |
Raising too general exception: Exception |
| 338 |
20 |
warning |
protected-access |
W0212 |
SemanticsManager._context_entity_to_semantic_class |
Access to a protected member _set of a client class |
| 366 |
16 |
convention |
unnecessary-dunder-call |
C2801 |
SemanticsManager._context_entity_to_semantic_class |
Unnecessarily calls dunder method __setattr__. Set attribute directly or use setattr built-in function. |
| 371 |
4 |
refactor |
too-many-return-statements |
R0911 |
SemanticsManager._convert_value_fitting_for_field |
Too many return statements (7/6) |
| 371 |
4 |
refactor |
inconsistent-return-statements |
R1710 |
SemanticsManager._convert_value_fitting_for_field |
Either all return statements in a function should return an expression, or none of them should. |
| 382 |
8 |
refactor |
no-else-return |
R1705 |
SemanticsManager._convert_value_fitting_for_field |
Unnecessary "elif" after "return", remove the leading "el" from "elif" |
| 389 |
12 |
refactor |
no-else-return |
R1705 |
SemanticsManager._convert_value_fitting_for_field |
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
| 517 |
12 |
warning |
try-except-raise |
W0706 |
SemanticsManager.save_state |
The except handler raises immediately |
| 561 |
8 |
refactor |
no-else-return |
R1705 |
SemanticsManager.load_instance |
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
| 571 |
12 |
warning |
logging-fstring-interpolation |
W1203 |
SemanticsManager.load_instance |
Use lazy % formatting in logging functions |
| 593 |
8 |
refactor |
no-else-return |
R1705 |
SemanticsManager.does_instance_exists |
Unnecessary "elif" after "return", remove the leading "el" from "elif" |
| 680 |
4 |
refactor |
too-many-arguments |
R0913 |
SemanticsManager.load_instances_from_fiware |
Too many arguments (11/5) |
| 690 |
8 |
convention |
invalid-name |
C0103 |
SemanticsManager.load_instances_from_fiware |
Argument name "q" doesn't conform to snake_case naming style |
| 842 |
41 |
warning |
redefined-outer-name |
W0621 |
SemanticsManager.load_local_state_from_json |
Redefining name 'json' from outer scope (line 4) |
| 876 |
12 |
convention |
unneeded-not |
C0113 |
SemanticsManager.visualize_local_state |
Consider changing "not display_individuals_rule == 'ALL'" to "display_individuals_rule != 'ALL'" |
| 877 |
16 |
convention |
unneeded-not |
C0113 |
SemanticsManager.visualize_local_state |
Consider changing "not display_individuals_rule == 'NONE'" to "display_individuals_rule != 'NONE'" |
| 878 |
16 |
convention |
unneeded-not |
C0113 |
SemanticsManager.visualize_local_state |
Consider changing "not display_individuals_rule == 'USED'" to "display_individuals_rule != 'USED'" |
| 883 |
8 |
convention |
import-outside-toplevel |
C0415 |
SemanticsManager.visualize_local_state |
Import outside toplevel (igraph) |
| 883 |
8 |
error |
import-error |
E0401 |
SemanticsManager.visualize_local_state |
Unable to import 'igraph' |
| 885 |
8 |
convention |
invalid-name |
C0103 |
SemanticsManager.visualize_local_state |
Variable name "g" doesn't conform to snake_case naming style |
| 903 |
27 |
convention |
unneeded-not |
C0113 |
SemanticsManager.visualize_local_state |
Consider changing "not display_individuals_rule == 'NONE'" to "display_individuals_rule != 'NONE'" |
| 930 |
4 |
refactor |
too-many-locals |
R0914 |
SemanticsManager.generate_cytoscape_for_local_state |
Too many local variables (18/15) |
| 1002 |
12 |
refactor |
no-else-return |
R1705 |
SemanticsManager.generate_cytoscape_for_local_state.get_node_id |
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
| 1026 |
20 |
convention |
invalid-name |
C0103 |
SemanticsManager.generate_cytoscape_for_local_state |
Variable name "v" doesn't conform to snake_case naming style |
| 1105 |
4 |
refactor |
too-many-locals |
R0914 |
SemanticsManager.merge_local_and_live_instance_state |
Too many local variables (26/15) |
| 1105 |
4 |
refactor |
too-many-branches |
R0912 |
SemanticsManager.merge_local_and_live_instance_state |
Too many branches (21/12) |
| 1105 |
4 |
refactor |
too-many-statements |
R0915 |
SemanticsManager.merge_local_and_live_instance_state |
Too many statements (58/50) |
| 1207 |
12 |
warning |
protected-access |
W0212 |
SemanticsManager.merge_local_and_live_instance_state |
Access to a protected member _set of a client class |
| 1211 |
16 |
warning |
protected-access |
W0212 |
SemanticsManager.merge_local_and_live_instance_state |
Access to a protected member _set of a client class |
| 1274 |
16 |
convention |
unnecessary-dunder-call |
C2801 |
SemanticsManager.merge_local_and_live_instance_state |
Unnecessarily calls dunder method __setattr__. Set attribute directly or use setattr built-in function. |
| Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
| 1 |
0 |
convention |
too-many-lines |
C0302 |
|
Too many lines in module (1914/1000) |
| 5 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pydantic' |
| 6 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'requests' |
| 7 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'aenum' |
| 8 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "from typing import List, Tuple, Dict, Type, TYPE_CHECKING, Optional, Union, Set, Iterator, Any" should be placed before "import pydantic as pyd" |
| 21 |
0 |
refactor |
consider-using-from-import |
R0402 |
|
Use 'from filip.models.ngsi_v2 import iot' instead |
| 33 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pydantic' |
| 33 |
0 |
convention |
wrong-import-order |
C0411 |
|
third party import "from pydantic import ConfigDict, BaseModel, Field" should be placed before "import filip.models.ngsi_v2.iot as iot" |
| 34 |
0 |
convention |
ungrouped-imports |
C0412 |
|
Imports from package filip are not grouped |
| 54 |
18 |
error |
unexpected-keyword-arg |
E1123 |
InstanceHeader |
Unexpected keyword argument 'default' in constructor call |
| 54 |
18 |
error |
unexpected-keyword-arg |
E1123 |
InstanceHeader |
Unexpected keyword argument 'description' in constructor call |
| 54 |
18 |
error |
no-value-for-parameter |
E1120 |
InstanceHeader |
No value for argument 'name' in constructor call |
| 54 |
18 |
error |
no-value-for-parameter |
E1120 |
InstanceHeader |
No value for argument 'semantic_manager' in constructor call |
| 58 |
20 |
error |
unexpected-keyword-arg |
E1123 |
InstanceHeader |
Unexpected keyword argument 'default' in constructor call |
| 58 |
20 |
error |
unexpected-keyword-arg |
E1123 |
InstanceHeader |
Unexpected keyword argument 'description' in constructor call |
| 58 |
20 |
error |
no-value-for-parameter |
E1120 |
InstanceHeader |
No value for argument 'name' in constructor call |
| 58 |
20 |
error |
no-value-for-parameter |
E1120 |
InstanceHeader |
No value for argument 'semantic_manager' in constructor call |
| 63 |
32 |
error |
unexpected-keyword-arg |
E1123 |
InstanceHeader |
Unexpected keyword argument 'default' in constructor call |
| 63 |
32 |
error |
unexpected-keyword-arg |
E1123 |
InstanceHeader |
Unexpected keyword argument 'description' in constructor call |
| 63 |
32 |
error |
no-value-for-parameter |
E1120 |
InstanceHeader |
No value for argument 'name' in constructor call |
| 63 |
32 |
error |
no-value-for-parameter |
E1120 |
InstanceHeader |
No value for argument 'semantic_manager' in constructor call |
| 81 |
14 |
error |
unexpected-keyword-arg |
E1123 |
InstanceIdentifier |
Unexpected keyword argument 'description' in constructor call |
| 81 |
14 |
error |
no-value-for-parameter |
E1120 |
InstanceIdentifier |
No value for argument 'name' in constructor call |
| 81 |
14 |
error |
no-value-for-parameter |
E1120 |
InstanceIdentifier |
No value for argument 'semantic_manager' in constructor call |
| 82 |
16 |
error |
unexpected-keyword-arg |
E1123 |
InstanceIdentifier |
Unexpected keyword argument 'description' in constructor call |
| 82 |
16 |
error |
no-value-for-parameter |
E1120 |
InstanceIdentifier |
No value for argument 'name' in constructor call |
| 82 |
16 |
error |
no-value-for-parameter |
E1120 |
InstanceIdentifier |
No value for argument 'semantic_manager' in constructor call |
| 83 |
29 |
error |
unexpected-keyword-arg |
E1123 |
InstanceIdentifier |
Unexpected keyword argument 'description' in constructor call |
| 83 |
29 |
error |
no-value-for-parameter |
E1120 |
InstanceIdentifier |
No value for argument 'name' in constructor call |
| 83 |
29 |
error |
no-value-for-parameter |
E1120 |
InstanceIdentifier |
No value for argument 'semantic_manager' in constructor call |
| 96 |
4 |
refactor |
too-many-return-statements |
R0911 |
Datatype.value_is_valid |
Too many return statements (12/6) |
| 96 |
4 |
refactor |
too-many-branches |
R0912 |
Datatype.value_is_valid |
Too many branches (18/12) |
| 143 |
16 |
error |
import-error |
E0401 |
Datatype.value_is_valid |
Unable to import 'dateutil.parser' |
| 143 |
16 |
convention |
import-outside-toplevel |
C0415 |
Datatype.value_is_valid |
Import outside toplevel (dateutil.parser.parse) |
| 163 |
56 |
error |
unexpected-keyword-arg |
E1123 |
DevicePropertyInstanceLink |
Unexpected keyword argument 'default' in constructor call |
| 163 |
56 |
error |
unexpected-keyword-arg |
E1123 |
DevicePropertyInstanceLink |
Unexpected keyword argument 'description' in constructor call |
| 163 |
56 |
error |
no-value-for-parameter |
E1120 |
DevicePropertyInstanceLink |
No value for argument 'name' in constructor call |
| 163 |
56 |
error |
no-value-for-parameter |
E1120 |
DevicePropertyInstanceLink |
No value for argument 'semantic_manager' in constructor call |
| 166 |
53 |
error |
unexpected-keyword-arg |
E1123 |
DevicePropertyInstanceLink |
Unexpected keyword argument 'default' in constructor call |
| 166 |
53 |
error |
unexpected-keyword-arg |
E1123 |
DevicePropertyInstanceLink |
Unexpected keyword argument 'description' in constructor call |
| 166 |
53 |
error |
no-value-for-parameter |
E1120 |
DevicePropertyInstanceLink |
No value for argument 'name' in constructor call |
| 166 |
53 |
error |
no-value-for-parameter |
E1120 |
DevicePropertyInstanceLink |
No value for argument 'semantic_manager' in constructor call |
| 169 |
32 |
error |
unexpected-keyword-arg |
E1123 |
DevicePropertyInstanceLink |
Unexpected keyword argument 'default' in constructor call |
| 169 |
32 |
error |
unexpected-keyword-arg |
E1123 |
DevicePropertyInstanceLink |
Unexpected keyword argument 'description' in constructor call |
| 169 |
32 |
error |
no-value-for-parameter |
E1120 |
DevicePropertyInstanceLink |
No value for argument 'name' in constructor call |
| 169 |
32 |
error |
no-value-for-parameter |
E1120 |
DevicePropertyInstanceLink |
No value for argument 'semantic_manager' in constructor call |
| 187 |
16 |
error |
no-value-for-parameter |
E1120 |
DeviceProperty |
No value for argument 'semantic_manager' in constructor call |
| 217 |
12 |
warning |
broad-exception-raised |
W0719 |
DeviceProperty._get_field_from_fiware |
Raising too general exception: Exception |
| 229 |
12 |
warning |
raise-missing-from |
W0707 |
DeviceProperty._get_field_from_fiware |
Consider explicitly re-raising using 'except Exception as exc' and 'raise Exception('The instance to which this property belongs is not yet present in Fiware, you need to save the state first') from exc' |
| 229 |
12 |
warning |
broad-exception-raised |
W0719 |
DeviceProperty._get_field_from_fiware |
Raising too general exception: Exception |
| 237 |
12 |
warning |
raise-missing-from |
W0707 |
DeviceProperty._get_field_from_fiware |
Consider explicitly re-raising using 'except Exception as exc' and 'raise Exception('This property was not yet saved in Fiware. You need to save the state first before this methode can be executed') from exc' |
| 237 |
12 |
warning |
broad-exception-raised |
W0719 |
DeviceProperty._get_field_from_fiware |
Raising too general exception: Exception |
| 244 |
12 |
warning |
broad-exception-raised |
W0719 |
DeviceProperty._get_field_from_fiware |
Raising too general exception: Exception |
| 260 |
8 |
warning |
unnecessary-pass |
W0107 |
DeviceProperty.get_all_field_names |
Unnecessary pass statement |
| 354 |
42 |
error |
unexpected-keyword-arg |
E1123 |
DeviceAttribute |
Unexpected keyword argument 'description' in constructor call |
| 354 |
42 |
error |
no-value-for-parameter |
E1120 |
DeviceAttribute |
No value for argument 'name' in constructor call |
| 354 |
42 |
error |
no-value-for-parameter |
E1120 |
DeviceAttribute |
No value for argument 'semantic_manager' in constructor call |
| 386 |
0 |
error |
function-redefined |
E0102 |
Field |
class already defined line 33 |
| 400 |
16 |
error |
unexpected-keyword-arg |
E1123 |
Field |
Unexpected keyword argument 'default' in constructor call |
| 400 |
16 |
error |
unexpected-keyword-arg |
E1123 |
Field |
Unexpected keyword argument 'description' in constructor call |
| 400 |
16 |
error |
no-value-for-parameter |
E1120 |
Field |
No value for argument 'self' in constructor call |
| 400 |
16 |
error |
no-value-for-parameter |
E1120 |
Field |
No value for argument 'name' in constructor call |
| 400 |
16 |
error |
no-value-for-parameter |
E1120 |
Field |
No value for argument 'semantic_manager' in constructor call |
| 412 |
16 |
error |
unexpected-keyword-arg |
E1123 |
Field |
Unexpected keyword argument 'default' in constructor call |
| 412 |
16 |
error |
unexpected-keyword-arg |
E1123 |
Field |
Unexpected keyword argument 'description' in constructor call |
| 412 |
16 |
error |
no-value-for-parameter |
E1120 |
Field |
No value for argument 'self' in constructor call |
| 412 |
16 |
error |
no-value-for-parameter |
E1120 |
Field |
No value for argument 'name' in constructor call |
| 412 |
16 |
error |
no-value-for-parameter |
E1120 |
Field |
No value for argument 'semantic_manager' in constructor call |
| 427 |
8 |
warning |
unnecessary-pass |
W0107 |
Field.is_valid |
Unnecessary pass statement |
| 437 |
8 |
warning |
unnecessary-pass |
W0107 |
Field.build_context_attribute |
Unnecessary pass statement |
| 460 |
12 |
convention |
invalid-name |
C0103 |
Field.build_device_attributes |
Variable name "v" doesn't conform to snake_case naming style |
| 492 |
15 |
convention |
unnecessary-dunder-call |
C2801 |
Field.size |
Unnecessarily calls dunder method __len__. Use len built-in function. |
| 494 |
21 |
convention |
invalid-name |
C0103 |
Field.remove |
Argument name "v" doesn't conform to snake_case naming style |
| 506 |
18 |
convention |
invalid-name |
C0103 |
Field.add |
Argument name "v" doesn't conform to snake_case naming style |
| 526 |
12 |
convention |
invalid-name |
C0103 |
Field.update |
Variable name "v" doesn't conform to snake_case naming style |
| 540 |
12 |
convention |
invalid-name |
C0103 |
Field.set |
Variable name "v" doesn't conform to snake_case naming style |
| 550 |
12 |
convention |
invalid-name |
C0103 |
Field.clear |
Variable name "v" doesn't conform to snake_case naming style |
| 587 |
29 |
convention |
invalid-name |
C0103 |
Field._convert_value |
Argument name "v" doesn't conform to snake_case naming style |
| 617 |
12 |
convention |
invalid-name |
C0103 |
Field.values_to_json |
Variable name "v" doesn't conform to snake_case naming style |
| 664 |
25 |
convention |
invalid-name |
C0103 |
DeviceField.name_check |
Argument name "v" doesn't conform to snake_case naming style |
| 691 |
16 |
convention |
invalid-name |
C0103 |
DeviceField.name_check |
Variable name "c" doesn't conform to snake_case naming style |
| 703 |
8 |
warning |
protected-access |
W0212 |
DeviceField.remove |
Access to a protected member _instance_link of a client class |
| 704 |
8 |
warning |
protected-access |
W0212 |
DeviceField.remove |
Access to a protected member _instance_link of a client class |
| 705 |
8 |
warning |
protected-access |
W0212 |
DeviceField.remove |
Access to a protected member _instance_link of a client class |
| 706 |
8 |
refactor |
super-with-arguments |
R1725 |
DeviceField.remove |
Consider using Python 3 style super() without arguments |
| 727 |
12 |
warning |
protected-access |
W0212 |
DeviceField.add |
Access to a protected member _instance_link of a client class |
| 734 |
8 |
warning |
protected-access |
W0212 |
DeviceField.add |
Access to a protected member _instance_link of a client class |
| 735 |
8 |
warning |
protected-access |
W0212 |
DeviceField.add |
Access to a protected member _instance_link of a client class |
| 736 |
8 |
warning |
protected-access |
W0212 |
DeviceField.add |
Access to a protected member _instance_link of a client class |
| 738 |
8 |
refactor |
super-with-arguments |
R1725 |
DeviceField.add |
Consider using Python 3 style super() without arguments |
| 749 |
12 |
convention |
invalid-name |
C0103 |
DeviceField.get_field_names |
Variable name "v" doesn't conform to snake_case naming style |
| 762 |
12 |
convention |
invalid-name |
C0103 |
DeviceField.build_context_attribute |
Variable name "v" doesn't conform to snake_case naming style |
| 893 |
13 |
warning |
unused-variable |
W0612 |
RuleField.is_valid |
Unused variable 'rule' |
| 898 |
4 |
refactor |
too-many-locals |
R0914 |
RuleField.are_rules_fulfilled |
Too many local variables (16/15) |
| 898 |
4 |
refactor |
too-many-branches |
R0912 |
RuleField.are_rules_fulfilled |
Too many branches (20/12) |
| 937 |
16 |
convention |
invalid-name |
C0103 |
RuleField.are_rules_fulfilled |
Variable name "v" doesn't conform to snake_case naming style |
| 977 |
0 |
convention |
superfluous-parens |
C0325 |
|
Unnecessary parens after 'not' keyword |
| 992 |
8 |
warning |
unnecessary-pass |
W0107 |
RuleField._value_is_valid |
Unnecessary pass statement |
| 1001 |
17 |
refactor |
super-with-arguments |
R1725 |
RuleField.__str__ |
Consider using Python 3 style super() without arguments |
| 1015 |
12 |
warning |
unused-variable |
W0612 |
RuleField._get_all_rule_type_names |
Unused variable 'statement' |
| 1037 |
18 |
refactor |
unnecessary-comprehension |
R1721 |
DataField.build_context_attribute |
Unnecessary use of a comprehension, use list(self.get_all_raw()) instead. |
| 1102 |
8 |
refactor |
no-else-return |
R1705 |
RelationField._value_is_valid |
Unnecessary "elif" after "return", remove the leading "el" from "elif" |
| 1111 |
12 |
convention |
invalid-name |
C0103 |
RelationField.build_context_attribute |
Variable name "v" doesn't conform to snake_case naming style |
| 1121 |
4 |
refactor |
inconsistent-return-statements |
R1710 |
RelationField._convert_value |
Either all return statements in a function should return an expression, or none of them should. |
| 1126 |
8 |
refactor |
no-else-return |
R1705 |
RelationField._convert_value |
Unnecessary "elif" after "return", remove the leading "el" from "elif" |
| 1155 |
8 |
refactor |
too-many-nested-blocks |
R1702 |
RelationField.remove |
Too many nested blocks (6/5) |
| 1182 |
27 |
convention |
invalid-name |
C0103 |
RelationField._add_inverse |
Argument name "v" doesn't conform to snake_case naming style |
| 1205 |
15 |
refactor |
super-with-arguments |
R1725 |
RelationField.get_all |
Consider using Python 3 style super() without arguments |
| 1294 |
14 |
error |
no-member |
E1101 |
SemanticClass |
Instance of 'tuple' has no 'value' member |
| 1356 |
8 |
refactor |
consider-using-get |
R1715 |
SemanticClass.__new__ |
Consider using dict.get for getting values from a dict if a key is present or a default if not |
| 1368 |
12 |
convention |
import-outside-toplevel |
C0415 |
SemanticClass.__new__ |
Import outside toplevel (re) |
| 1371 |
16 |
error |
no-member |
E1101 |
SemanticClass.__new__ |
Instance of 'tuple' has no 'value' member |
| 1380 |
11 |
convention |
unneeded-not |
C0113 |
SemanticClass.__new__ |
Consider changing "not instance_id == ''" to "instance_id != ''" |
| 1389 |
15 |
error |
no-value-for-parameter |
E1120 |
SemanticClass.__new__ |
No value for argument 'cls' in classmethod call |
| 1391 |
0 |
warning |
unused-argument |
W0613 |
SemanticClass.__init__ |
Unused argument 'args' |
| 1414 |
8 |
refactor |
consider-using-get |
R1715 |
SemanticClass.__init__ |
Consider using dict.get for getting values from a dict if a key is present or a default if not |
| 1540 |
12 |
warning |
unused-variable |
W0612 |
SemanticClass.get_relation_fields |
Unused variable 'key' |
| 1554 |
12 |
warning |
unused-variable |
W0612 |
SemanticClass.get_data_fields |
Unused variable 'key' |
| 1586 |
12 |
warning |
unused-variable |
W0612 |
SemanticClass.get_field_by_name |
Unused variable 'key' |
| 1658 |
4 |
convention |
missing-function-docstring |
C0116 |
SemanticClass.get_all_field_names |
Missing function or method docstring |
| 1674 |
12 |
refactor |
consider-using-join |
R1713 |
SemanticClass.__hash__ |
Consider using str.join(sequence) for concatenating strings from an iterable |
| 1738 |
12 |
warning |
unused-variable |
W0612 |
SemanticDeviceClass.get_fields |
Unused variable 'key' |
| 1751 |
12 |
warning |
unused-variable |
W0612 |
SemanticDeviceClass.get_command_fields |
Unused variable 'key' |
| 1764 |
12 |
warning |
unused-variable |
W0612 |
SemanticDeviceClass.get_device_attribute_fields |
Unused variable 'key' |
| 1789 |
17 |
refactor |
super-with-arguments |
R1725 |
SemanticDeviceClass.build_context_entity |
Consider using Python 3 style super() without arguments |
| 1802 |
4 |
convention |
missing-function-docstring |
C0116 |
SemanticDeviceClass.get_device_id |
Missing function or method docstring |
| 1879 |
15 |
convention |
unidiomatic-typecheck |
C0123 |
SemanticIndividual.__eq__ |
Use isinstance() rather than type() for a typecheck. |
| Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
| 4 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pydantic' |
| 5 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "from typing import List, TYPE_CHECKING, Dict, Union, Set, Any" should be placed before "from pydantic import BaseModel, Field" |
| 115 |
35 |
convention |
invalid-name |
C0103 |
Entity._lists_are_identical |
Argument name "a" doesn't conform to snake_case naming style |
| 115 |
44 |
convention |
invalid-name |
C0103 |
Entity._lists_are_identical |
Argument name "b" doesn't conform to snake_case naming style |
| 202 |
12 |
warning |
redefined-builtin |
W0622 |
Class.get_relations |
Redefining built-in 'id' |
| 220 |
12 |
warning |
redefined-builtin |
W0622 |
Class.get_combined_object_relations |
Redefining built-in 'id' |
| 238 |
12 |
warning |
redefined-builtin |
W0622 |
Class.get_combined_data_relations |
Redefining built-in 'id' |
| 373 |
20 |
warning |
modified-iterating-list |
W4701 |
Class.get_parent_classes |
Iterated list 'parents' is being modified inside for loop body, consider iterating through a copy of it instead. |
| 418 |
19 |
convention |
singleton-comparison |
C0121 |
Class.treat_dependency_statements |
Comparison 'statement.fulfilled == False' should be 'statement.fulfilled is False' if checking for the singleton value False, or 'not statement.fulfilled' if testing for falsiness |
| 422 |
12 |
warning |
redefined-builtin |
W0622 |
Class.treat_dependency_statements |
Redefining built-in 'id' |
| 514 |
12 |
convention |
invalid-name |
C0103 |
Class.is_logically_equivalent_to |
Variable name "cr" doesn't conform to snake_case naming style |
| 556 |
4 |
convention |
invalid-name |
C0103 |
DatatypeType |
Class constant name "string" doesn't conform to UPPER_CASE naming style |
| 557 |
4 |
convention |
invalid-name |
C0103 |
DatatypeType |
Class constant name "number" doesn't conform to UPPER_CASE naming style |
| 558 |
4 |
convention |
invalid-name |
C0103 |
DatatypeType |
Class constant name "date" doesn't conform to UPPER_CASE naming style |
| 559 |
4 |
convention |
invalid-name |
C0103 |
DatatypeType |
Class constant name "enum" doesn't conform to UPPER_CASE naming style |
| 627 |
4 |
refactor |
too-many-return-statements |
R0911 |
Datatype.value_is_valid |
Too many return statements (12/6) |
| 627 |
4 |
refactor |
too-many-branches |
R0912 |
Datatype.value_is_valid |
Too many branches (18/12) |
| 654 |
16 |
warning |
bare-except |
W0702 |
Datatype.value_is_valid |
No exception type(s) specified |
| 659 |
16 |
warning |
bare-except |
W0702 |
Datatype.value_is_valid |
No exception type(s) specified |
| 676 |
16 |
error |
import-error |
E0401 |
Datatype.value_is_valid |
Unable to import 'dateutil.parser' |
| 676 |
16 |
convention |
import-outside-toplevel |
C0415 |
Datatype.value_is_valid |
Import outside toplevel (dateutil.parser.parse) |
| 689 |
8 |
warning |
unused-argument |
W0613 |
Datatype.is_logically_equivalent_to |
Unused argument 'vocabulary' |
| 690 |
8 |
warning |
unused-argument |
W0613 |
Datatype.is_logically_equivalent_to |
Unused argument 'old_vocabulary' |
| 774 |
8 |
warning |
unused-argument |
W0613 |
Individual.is_logically_equivalent_to |
Unused argument 'vocabulary' |
| 775 |
8 |
warning |
unused-argument |
W0613 |
Individual.is_logically_equivalent_to |
Unused argument 'old_vocabulary' |
| 832 |
4 |
convention |
invalid-name |
C0103 |
DataFieldType |
Class constant name "command" doesn't conform to UPPER_CASE naming style |
| 833 |
4 |
convention |
invalid-name |
C0103 |
DataFieldType |
Class constant name "device_attribute" doesn't conform to UPPER_CASE naming style |
| 834 |
4 |
convention |
invalid-name |
C0103 |
DataFieldType |
Class constant name "simple" doesn't conform to UPPER_CASE naming style |
| 876 |
8 |
warning |
unused-argument |
W0613 |
ObjectProperty.is_logically_equivalent_to |
Unused argument 'vocabulary' |
| 877 |
8 |
warning |
unused-argument |
W0613 |
ObjectProperty.is_logically_equivalent_to |
Unused argument 'old_vocabulary' |
| Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
| 3 |
0 |
warning |
unused-import |
W0611 |
|
Unused Dict imported from typing |
| 8 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'aenum' |
| 8 |
0 |
convention |
wrong-import-position |
C0413 |
|
Import "from aenum import Enum" should be placed at the top of the module |
| 9 |
0 |
warning |
reimported |
W0404 |
|
Reimport 'TYPE_CHECKING' (imported line 3) |
| 9 |
0 |
convention |
wrong-import-position |
C0413 |
|
Import "from typing import List, TYPE_CHECKING" should be placed at the top of the module |
| 9 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "from typing import List, TYPE_CHECKING" should be placed before "from aenum import Enum" |
| 11 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pydantic' |
| 11 |
0 |
convention |
wrong-import-position |
C0413 |
|
Import "from pydantic import BaseModel, Field" should be placed at the top of the module |
| 13 |
0 |
convention |
wrong-import-position |
C0413 |
|
Import "from .source import DependencyStatement" should be placed at the top of the module |
| 74 |
4 |
refactor |
too-many-branches |
R0912 |
TargetStatement.get_all_targets |
Too many branches (16/12) |
| 85 |
8 |
refactor |
too-many-nested-blocks |
R1702 |
TargetStatement.get_all_targets |
Too many nested blocks (7/5) |
| 86 |
12 |
refactor |
no-else-return |
R1705 |
TargetStatement.get_all_targets |
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
| 95 |
12 |
refactor |
no-else-return |
R1705 |
TargetStatement.get_all_targets |
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
| 123 |
20 |
warning |
unused-variable |
W0612 |
TargetStatement.get_all_targets |
Unused variable 'empty' |
| 126 |
16 |
convention |
consider-using-enumerate |
C0200 |
TargetStatement.get_all_targets |
Consider using enumerate instead of iterating with range and len |
| 150 |
8 |
refactor |
no-else-return |
R1705 |
TargetStatement.to_string |
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
| 209 |
8 |
convention |
import-outside-toplevel |
C0415 |
TargetStatement.is_fulfilled_by_data_value |
Import outside toplevel (vocabulary.IdType) |
| 211 |
8 |
refactor |
no-else-return |
R1705 |
TargetStatement.is_fulfilled_by_data_value |
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
| 227 |
12 |
refactor |
no-else-return |
R1705 |
TargetStatement.retrieve_label |
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
| 344 |
8 |
refactor |
no-else-return |
R1705 |
Relation.to_string |
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
| 345 |
19 |
convention |
consider-using-f-string |
C0209 |
Relation.to_string |
Formatting a regular string which could be a f-string |
| 357 |
4 |
refactor |
inconsistent-return-statements |
R1710 |
Relation.is_restriction_fulfilled |
Either all return statements in a function should return an expression, or none of them should. |
| 429 |
8 |
warning |
unused-argument |
W0613 |
Relation.is_fulfilled_with_iris |
Unused argument 'vocabulary' |
| 444 |
8 |
convention |
consider-using-enumerate |
C0200 |
Relation.is_fulfilled_with_iris |
Consider using enumerate instead of iterating with range and len |
| 467 |
8 |
convention |
consider-using-enumerate |
C0200 |
Relation.is_fulfilled_with_values |
Consider using enumerate instead of iterating with range and len |
| 512 |
8 |
convention |
import-outside-toplevel |
C0415 |
Relation.get_possible_enum_target_values |
Import outside toplevel (vocabulary.IdType) |
| 522 |
12 |
warning |
redefined-builtin |
W0622 |
Relation.get_possible_enum_target_values |
Redefining built-in 'list' |
| 566 |
8 |
refactor |
no-else-return |
R1705 |
Relation.export_rule |
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
| Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
| 6 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pydantic' |
| 7 |
0 |
warning |
wildcard-import |
W0401 |
|
Wildcard import |
| 7 |
0 |
warning |
unused-import |
W0611 |
|
Unused import * |
| 7 |
0 |
warning |
unused-import |
W0611 |
|
Unused import * |
| 7 |
0 |
warning |
unused-import |
W0611 |
|
Unused import * |
| 7 |
0 |
warning |
unused-import |
W0611 |
|
Unused import * |
| 7 |
0 |
warning |
unused-import |
W0611 |
|
Unused import * |
| 7 |
0 |
warning |
unused-import |
W0611 |
|
Unused import * |
| 7 |
0 |
warning |
unused-import |
W0611 |
|
Unused import * |
| 7 |
0 |
warning |
unused-import |
W0611 |
|
Unused import * |
| 8 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "from typing import List, Dict, Union, Optional, Tuple" should be placed before "from pydantic import BaseModel, Field" |
| 10 |
0 |
warning |
unused-import |
W0611 |
|
Unused LogLevel imported from models.base |
| 13 |
0 |
error |
function-redefined |
E0102 |
LabelSummary |
class already defined line 7 |
| 64 |
20 |
convention |
invalid-name |
C0103 |
LabelSummary.__str__.print_collection |
Variable name "v" doesn't conform to snake_case naming style |
| 94 |
0 |
error |
function-redefined |
E0102 |
IdType |
class already defined line 7 |
| 97 |
4 |
convention |
invalid-name |
C0103 |
IdType |
Class constant name "class_" doesn't conform to UPPER_CASE naming style |
| 98 |
4 |
convention |
invalid-name |
C0103 |
IdType |
Class constant name "object_property" doesn't conform to UPPER_CASE naming style |
| 99 |
4 |
convention |
invalid-name |
C0103 |
IdType |
Class constant name "data_property" doesn't conform to UPPER_CASE naming style |
| 100 |
4 |
convention |
invalid-name |
C0103 |
IdType |
Class constant name "datatype" doesn't conform to UPPER_CASE naming style |
| 101 |
4 |
convention |
invalid-name |
C0103 |
IdType |
Class constant name "relation" doesn't conform to UPPER_CASE naming style |
| 102 |
4 |
convention |
invalid-name |
C0103 |
IdType |
Class constant name "combined_relation" doesn't conform to UPPER_CASE naming style |
| 103 |
4 |
convention |
invalid-name |
C0103 |
IdType |
Class constant name "individual" doesn't conform to UPPER_CASE naming style |
| 104 |
4 |
convention |
invalid-name |
C0103 |
IdType |
Class constant name "source" doesn't conform to UPPER_CASE naming style |
| 107 |
0 |
error |
function-redefined |
E0102 |
VocabularySettings |
class already defined line 7 |
| 140 |
0 |
error |
function-redefined |
E0102 |
Vocabulary |
class already defined line 7 |
| 140 |
0 |
refactor |
too-many-public-methods |
R0904 |
Vocabulary |
Too many public methods (31/20) |
| 208 |
29 |
warning |
redefined-builtin |
W0622 |
Vocabulary.get_type_of_id |
Redefining built-in 'id' |
| 263 |
4 |
refactor |
inconsistent-return-statements |
R1710 |
Vocabulary.iri_is_predefined_datatype |
Either all return statements in a function should return an expression, or none of them should. |
| 320 |
36 |
warning |
redefined-builtin |
W0622 |
Vocabulary.is_id_from_individual |
Redefining built-in 'id' |
| 333 |
8 |
warning |
bare-except |
W0702 |
Vocabulary.is_id_from_individual |
No exception type(s) specified |
| 355 |
46 |
warning |
redefined-builtin |
W0622 |
Vocabulary.get_entity_list_sorted_by_label |
Redefining built-in 'list' |
| 413 |
33 |
warning |
redefined-builtin |
W0622 |
Vocabulary.get_relation_by_id |
Redefining built-in 'id' |
| 427 |
42 |
warning |
redefined-builtin |
W0622 |
Vocabulary.get_combined_relation_by_id |
Redefining built-in 'id' |
| 440 |
8 |
refactor |
no-else-return |
R1705 |
Vocabulary.get_combined_relation_by_id |
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
| 445 |
47 |
warning |
redefined-builtin |
W0622 |
Vocabulary.get_combined_data_relation_by_id |
Redefining built-in 'id' |
| 459 |
49 |
warning |
redefined-builtin |
W0622 |
Vocabulary.get_combined_object_relation_by_id |
Redefining built-in 'id' |
| 509 |
28 |
warning |
redefined-builtin |
W0622 |
Vocabulary.is_id_of_type |
Redefining built-in 'id' |
| 509 |
37 |
warning |
redefined-builtin |
W0622 |
Vocabulary.is_id_of_type |
Redefining built-in 'type' |
| 536 |
8 |
refactor |
no-else-return |
R1705 |
Vocabulary.get_label_for_entity_iri |
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
| 552 |
8 |
refactor |
no-else-return |
R1705 |
Vocabulary.get_base_out_of_iri |
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
| 561 |
4 |
refactor |
too-many-return-statements |
R0911 |
Vocabulary.get_entity_by_iri |
Too many return statements (7/6) |
| 571 |
8 |
refactor |
no-else-return |
R1705 |
Vocabulary.get_entity_by_iri |
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
| 584 |
12 |
refactor |
no-else-return |
R1705 |
Vocabulary.get_entity_by_iri |
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
| 635 |
12 |
convention |
invalid-name |
C0103 |
Vocabulary.get_all_entities |
Variable name "l" doesn't conform to snake_case naming style |
| Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
| 13 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'requests' |
| 14 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'wget' |
| 69 |
0 |
convention |
invalid-name |
C0103 |
|
Constant name "label_char_whitelist" doesn't conform to UPPER_CASE naming style |
| 194 |
13 |
warning |
unspecified-encoding |
W1514 |
VocabularyConfigurator.add_ontology_to_vocabulary_as_file |
Using open without explicitly specifying an encoding |
| 275 |
12 |
warning |
raise-missing-from |
W0707 |
VocabularyConfigurator._parse_sources_into_vocabulary |
Consider explicitly re-raising using 'raise ParsingException(e.args) from e' |
| 301 |
12 |
convention |
invalid-name |
C0103 |
VocabularyConfigurator.is_label_illegal |
Variable name "c" doesn't conform to snake_case naming style |
| 472 |
4 |
refactor |
too-many-locals |
R0914 |
VocabularyConfigurator.generate_vocabulary_models |
Too many local variables (39/15) |
| 472 |
4 |
refactor |
too-many-branches |
R0912 |
VocabularyConfigurator.generate_vocabulary_models |
Too many branches (59/12) |
| 472 |
4 |
refactor |
too-many-statements |
R0915 |
VocabularyConfigurator.generate_vocabulary_models |
Too many statements (231/50) |
| 504 |
12 |
warning |
broad-exception-raised |
W0719 |
VocabularyConfigurator.generate_vocabulary_models |
Raising too general exception: Exception |
| 571 |
19 |
warning |
f-string-without-interpolation |
W1309 |
VocabularyConfigurator.generate_vocabulary_models |
Using an f-string that does not have any interpolated variables |
| 579 |
23 |
warning |
f-string-without-interpolation |
W1309 |
VocabularyConfigurator.generate_vocabulary_models |
Using an f-string that does not have any interpolated variables |
| 631 |
8 |
refactor |
too-many-nested-blocks |
R1702 |
VocabularyConfigurator.generate_vocabulary_models |
Too many nested blocks (6/5) |
| 656 |
23 |
warning |
f-string-without-interpolation |
W1309 |
VocabularyConfigurator.generate_vocabulary_models |
Using an f-string that does not have any interpolated variables |
| 661 |
23 |
warning |
f-string-without-interpolation |
W1309 |
VocabularyConfigurator.generate_vocabulary_models |
Using an f-string that does not have any interpolated variables |
| 662 |
23 |
warning |
f-string-without-interpolation |
W1309 |
VocabularyConfigurator.generate_vocabulary_models |
Using an f-string that does not have any interpolated variables |
| 669 |
23 |
warning |
f-string-without-interpolation |
W1309 |
VocabularyConfigurator.generate_vocabulary_models |
Using an f-string that does not have any interpolated variables |
| 676 |
27 |
warning |
f-string-without-interpolation |
W1309 |
VocabularyConfigurator.generate_vocabulary_models |
Using an f-string that does not have any interpolated variables |
| 683 |
27 |
warning |
f-string-without-interpolation |
W1309 |
VocabularyConfigurator.generate_vocabulary_models |
Using an f-string that does not have any interpolated variables |
| 722 |
16 |
convention |
invalid-name |
C0103 |
VocabularyConfigurator.generate_vocabulary_models |
Variable name "cr" doesn't conform to snake_case naming style |
| 775 |
36 |
convention |
invalid-name |
C0103 |
VocabularyConfigurator.generate_vocabulary_models.build_field_comment |
Argument name "cr" doesn't conform to snake_case naming style |
| 779 |
27 |
warning |
f-string-without-interpolation |
W1309 |
VocabularyConfigurator.generate_vocabulary_models.build_field_comment |
Using an f-string that does not have any interpolated variables |
| 782 |
27 |
warning |
f-string-without-interpolation |
W1309 |
VocabularyConfigurator.generate_vocabulary_models.build_field_comment |
Using an f-string that does not have any interpolated variables |
| 803 |
31 |
warning |
f-string-without-interpolation |
W1309 |
VocabularyConfigurator.generate_vocabulary_models |
Using an f-string that does not have any interpolated variables |
| 813 |
31 |
warning |
f-string-without-interpolation |
W1309 |
VocabularyConfigurator.generate_vocabulary_models |
Using an f-string that does not have any interpolated variables |
| 825 |
31 |
warning |
f-string-without-interpolation |
W1309 |
VocabularyConfigurator.generate_vocabulary_models |
Using an f-string that does not have any interpolated variables |
| 848 |
27 |
warning |
f-string-without-interpolation |
W1309 |
VocabularyConfigurator.generate_vocabulary_models |
Using an f-string that does not have any interpolated variables |
| 872 |
19 |
warning |
f-string-without-interpolation |
W1309 |
VocabularyConfigurator.generate_vocabulary_models |
Using an f-string that does not have any interpolated variables |
| 874 |
12 |
warning |
unused-variable |
W0612 |
VocabularyConfigurator.generate_vocabulary_models |
Unused variable 'name' |
| 881 |
47 |
convention |
unidiomatic-typecheck |
C0123 |
VocabularyConfigurator.generate_vocabulary_models |
Use isinstance() rather than type() for a typecheck. |
| 900 |
19 |
warning |
f-string-without-interpolation |
W1309 |
VocabularyConfigurator.generate_vocabulary_models |
Using an f-string that does not have any interpolated variables |
| 910 |
19 |
warning |
f-string-without-interpolation |
W1309 |
VocabularyConfigurator.generate_vocabulary_models |
Using an f-string that does not have any interpolated variables |
| 918 |
8 |
refactor |
no-else-return |
R1705 |
VocabularyConfigurator.generate_vocabulary_models |
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it |
| Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
| 8 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'aenum' |
| 9 |
0 |
convention |
wrong-import-order |
C0411 |
|
standard import "from typing import Dict, Any, List" should be placed before "from aenum import Enum" |
| 10 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pydantic' |
| 11 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pydantic_core' |
| 13 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pyjexl.jexl' |
| 13 |
0 |
convention |
wrong-import-order |
C0411 |
|
third party import "from pyjexl.jexl import JEXL" should be placed before "from filip.custom_types import AnyMqttUrl" |
| 14 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pyjexl.parser' |
| 14 |
0 |
convention |
wrong-import-order |
C0411 |
|
third party import "from pyjexl.parser import Transform" should be placed before "from filip.custom_types import AnyMqttUrl" |
| 15 |
0 |
error |
import-error |
E0401 |
|
Unable to import 'pyjexl.exceptions' |
| 15 |
0 |
convention |
wrong-import-order |
C0411 |
|
third party import "from pyjexl.exceptions import ParseError" should be placed before "from filip.custom_types import AnyMqttUrl" |
| 108 |
8 |
refactor |
redefined-argument-from-local |
R1704 |
validate_escape_character_free |
Redefining argument with the local name 'value' |
| 110 |
16 |
warning |
unused-variable |
W0612 |
validate_escape_character_free |
Unused variable 'key' |
| 127 |
0 |
convention |
missing-function-docstring |
C0116 |
match_regex |
Missing function or method docstring |
| 142 |
0 |
convention |
missing-function-docstring |
C0116 |
ignore_none_input |
Missing function or method docstring |
| 151 |
0 |
convention |
missing-function-docstring |
C0116 |
validate_fiware_standard_regex |
Missing function or method docstring |
| 152 |
29 |
error |
no-member |
E1101 |
validate_fiware_standard_regex |
Instance of 'tuple' has no 'value' member |
| 155 |
0 |
convention |
missing-function-docstring |
C0116 |
validate_fiware_string_protect_regex |
Missing function or method docstring |
| 156 |
29 |
error |
no-member |
E1101 |
validate_fiware_string_protect_regex |
Instance of 'tuple' has no 'value' member |
| 159 |
0 |
convention |
missing-function-docstring |
C0116 |
validate_fiware_attribute_value_regex |
Missing function or method docstring |
| 160 |
29 |
error |
no-member |
E1101 |
validate_fiware_attribute_value_regex |
Instance of 'tuple' has no 'value' member |
| 163 |
0 |
convention |
missing-function-docstring |
C0116 |
validate_fiware_attribute_name_regex |
Missing function or method docstring |
| 164 |
29 |
error |
no-member |
E1101 |
validate_fiware_attribute_name_regex |
Instance of 'tuple' has no 'value' member |
| 168 |
0 |
convention |
missing-function-docstring |
C0116 |
validate_mqtt_topic |
Missing function or method docstring |
| 173 |
0 |
convention |
missing-function-docstring |
C0116 |
validate_fiware_datatype_standard |
Missing function or method docstring |
| 174 |
4 |
convention |
import-outside-toplevel |
C0415 |
validate_fiware_datatype_standard |
Import outside toplevel (filip.models.base.DataType) |
| 176 |
4 |
refactor |
no-else-return |
R1705 |
validate_fiware_datatype_standard |
Unnecessary "elif" after "return", remove the leading "el" from "elif" |
| 185 |
0 |
convention |
missing-function-docstring |
C0116 |
validate_fiware_datatype_string_protect |
Missing function or method docstring |
| 186 |
4 |
convention |
import-outside-toplevel |
C0415 |
validate_fiware_datatype_string_protect |
Import outside toplevel (filip.models.base.DataType) |
| 188 |
4 |
refactor |
no-else-return |
R1705 |
validate_fiware_datatype_string_protect |
Unnecessary "elif" after "return", remove the leading "el" from "elif" |
| 197 |
0 |
convention |
missing-function-docstring |
C0116 |
validate_fiware_service_path |
Missing function or method docstring |
| 202 |
0 |
convention |
missing-function-docstring |
C0116 |
validate_fiware_service |
Missing function or method docstring |
| 231 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (111/100) |
| 232 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (165/100) |
| 241 |
0 |
convention |
missing-function-docstring |
C0116 |
validate_jexl_expression |
Missing function or method docstring |
| 245 |
43 |
convention |
consider-iterating-dictionary |
C0201 |
validate_jexl_expression |
Consider iterating the dictionary directly instead of calling .keys() |
| 248 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (120/100) |
| 250 |
0 |
convention |
line-too-long |
C0301 |
|
Line too long (116/100) |
| 251 |
8 |
warning |
raise-missing-from |
W0707 |
validate_jexl_expression |
Consider explicitly re-raising using 'except ParseError as exc' and 'raise ParseError(msg) from exc' |
| 255 |
0 |
convention |
missing-function-docstring |
C0116 |
validate_expression_language |
Missing function or method docstring |
| 255 |
38 |
convention |
invalid-name |
C0103 |
validate_expression_language |
Argument name "expressionLanguage" doesn't conform to snake_case naming style |
| Line |
Col. |
Type |
Symbol |
ID |
Obj |
Message |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'print-statement' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'parameter-unpacking' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'unpacking-in-except' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'old-raise-syntax' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'backtick' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'import-star-module-level' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'apply-builtin' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'basestring-builtin' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'buffer-builtin' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'cmp-builtin' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'coerce-builtin' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'execfile-builtin' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'file-builtin' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'long-builtin' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'raw_input-builtin' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'reduce-builtin' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'standarderror-builtin' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'unicode-builtin' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'xrange-builtin' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'coerce-method' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'delslice-method' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'getslice-method' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'setslice-method' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'no-absolute-import' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'old-division' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'dict-iter-method' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'dict-view-method' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'next-method-called' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'metaclass-assignment' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'indexing-exception' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'raising-string' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'reload-builtin' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'oct-method' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'hex-method' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'nonzero-method' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'cmp-method' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'input-builtin' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'round-builtin' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'intern-builtin' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'unichr-builtin' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'map-builtin-not-iterating' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'zip-builtin-not-iterating' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'range-builtin-not-iterating' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'filter-builtin-not-iterating' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'using-cmp-argument' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'div-method' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'idiv-method' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'rdiv-method' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'exception-message-attribute' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'invalid-str-codec' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'sys-max-int' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'bad-python3-import' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'deprecated-string-function' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'deprecated-str-translate-call' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'deprecated-itertools-function' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'deprecated-types-field' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'next-method-defined' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'dict-items-not-iterating' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'dict-keys-not-iterating' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'dict-values-not-iterating' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'deprecated-operator-function' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'deprecated-urllib-function' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'xreadlines-attribute' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'deprecated-sys-function' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'exception-escape' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'comprehension-escape' was removed from pylint, see https://github.com/pylint-dev/pylint/pull/4942. |
| 1 |
0 |
refactor |
useless-option-value |
R0022 |
|
Useless option value for '--disable', 'no-self-use' was moved to an optional extension, see https://pylint.readthedocs.io/en/latest/whatsnew/2/2.14/summary.html#removed-checkers. |
| 1 |
0 |
warning |
unknown-option-value |
W0012 |
|
Unknown option value for '--disable', expected a valid pylint message and got 'long-suffix' |
| 1 |
0 |
warning |
unknown-option-value |
W0012 |
|
Unknown option value for '--disable', expected a valid pylint message and got 'old-ne-operator' |
| 1 |
0 |
warning |
unknown-option-value |
W0012 |
|
Unknown option value for '--disable', expected a valid pylint message and got 'old-octal-literal' |
| 1 |
0 |
warning |
unknown-option-value |
W0012 |
|
Unknown option value for '--disable', expected a valid pylint message and got 'non-ascii-bytes-literal' |
| 1 |
0 |
warning |
unknown-option-value |
W0012 |
|
Unknown option value for '--disable', expected a valid pylint message and got 'eq-without-hash' |