Skip to content

Add qodana CI checks #1

Add qodana CI checks

Add qodana CI checks #1

Triggered via pull request February 10, 2025 01:51
Status Success
Total duration 1m 37s
Artifacts

qodana_code_quality.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

43 warnings and 88 notices
Redeclared names without usages: src/misc/wip/test_gabac_run.py#L92
Redeclared 'g_stream_output' defined above without usage
Statement has no effect: src/misc/gabac_api/c_api.py#L192
Statement seems to have no effect
Incorrect type: src/misc/gabac_opt/gabac_ga.py#L75
Expected type 'SupportsWrite\[str\]', got 'TextIO' instead
Incorrect type: src/misc/gabac_opt/gabac_conf_gen.py#L272
Expected type 'int \| None' (matched generic type '_VT'), got 'list' instead
Incorrect type: src/misc/gabac_opt/gabac_ga.py#L110
Expected type 'SupportsWrite\[str\]', got 'TextIO' instead
Incorrect type: src/misc/wip/test_gabac_ga.py#L31
Expected type 'SupportsWrite\[str\]', got 'TextIO' instead
Incorrect type: src/misc/gabac_opt/gabac_sa.py#L126
Expected type 'SupportsWrite\[str\]', got 'TextIO' instead
Incorrect type: src/misc/gabac_opt/gabac_conf_gen.py#L241
Expected type 'SupportsLenAndGetItem\[_T\]', got 'int \| None' instead
Incorrect type: src/misc/gabac_opt/hyperparameter_search.py#L58
Expected type 'SupportsWrite\[str\]', got 'TextIO' instead
Incorrect type: src/misc/gabac_opt/gabac_conf_gen.py#L70
Expected type 'int \| None' (matched generic type '_VT'), got 'list\[int\]' instead
Incorrect type: src/misc/gabac_opt/optimize_config.py#L74
Expected type 'SupportsWrite\[str\]', got 'TextIO' instead
Incorrect type: src/misc/gabac_opt/gabac_sa.py#L123
Expected type 'SupportsWrite\[str\]', got 'TextIO' instead
Incorrect type: src/misc/gabac_opt/optimize_config.py#L51
Expected type 'SupportsWrite\[str\]', got 'TextIO' instead
Incorrect type: src/misc/gabac_opt/hyperparameter_search.py#L103
Expected type 'SupportsWrite\[str\]', got 'TextIO' instead
Incorrect type: src/misc/gabac_opt/gabac_conf_gen.py#L270
Expected type 'SupportsLenAndGetItem\[_T\]', got 'int \| None' instead
Incorrect type: src/misc/gabac_opt/gabac_conf_gen.py#L185
Expected type 'SupportsLenAndGetItem\[_T\]', got 'int \| None' instead
Unbound local variables: src/misc/gabac_opt/hyperparameter_search.py#L257
Local variable 'callback_f' might be referenced before assignment
Unbound local variables: src/misc/gabac_opt/gabac_conf_gen.py#L413
Local variable 'copy_in_block' might be referenced before assignment
Unbound local variables: src/misc/gabac_api/api.py#L255
Local variable 'copy_in_block' might be referenced before assignment
Unbound local variables: src/misc/gabac_opt/hyperparameter_search.py#L136
Local variable 'data_fname' might be referenced before assignment
Unbound local variables: src/misc/gabac_opt/hyperparameter_search.py#L225
Local variable 'list_hyperparams' might be referenced before assignment
Unbound local variables: src/misc/gabac_api/api.py#L240
Local variable 'copy_in_block' might be referenced before assignment
Unbound local variables: src/misc/gabac_opt/hyperparameter_search.py#L136
Local variable 'gabac_transform' might be referenced before assignment
Unbound local variables: src/misc/gabac_api/api.py#L277
Local variable 'copy_in_block' might be referenced before assignment
Unbound local variables: src/misc/brute_force.py#L181
Local variable 'copy_in_block' might be referenced before assignment
Unbound local variables: src/misc/brute_force.py#L173
Local variable 'copy_in_block' might be referenced before assignment
Unbound local variables: src/misc/gabac_api/api.py#L283
Local variable 'copy_in_block' might be referenced before assignment
Unbound local variables: src/misc/gabac_opt/gabac_conf_gen.py#L303
Local variable 'conf' might be referenced before assignment
Unbound local variables: src/misc/brute_force.py#L203
Local variable 'copy_in_block' might be referenced before assignment
Unbound local variables: src/misc/gabac_opt/hyperparameter_search.py#L225
Local variable 'list_iters_per_data' might be referenced before assignment
Unbound local variables: src/misc/brute_force.py#L247
Local variable 'copy_in_block' might be referenced before assignment
Unbound local variables: src/misc/gabac_api/api.py#L92
Local variable 'return_code' might be referenced before assignment
Unbound local variables: src/misc/gabac_opt/hyperparameter_search.py#L242
Local variable 'result_dirpath' might be referenced before assignment
Unbound local variables: src/misc/brute_force.py#L228
Local variable 'copy_in_block' might be referenced before assignment
Unbound local variables: src/misc/gabac_opt/hyperparameter_search.py#L136
Local variable 'exp_params' might be referenced before assignment
Unbound local variables: src/misc/gabac_opt/hyperparameter_search.py#L136
Local variable 'result_dirpath' might be referenced before assignment
Unbound local variables: src/misc/brute_force.py#L256
Local variable 'copy_in_block' might be referenced before assignment
Unnecessary backslash: ci/sam_tools/sam_cmp.py#L100
Unnecessary backslash in the expression
Unnecessary backslash: ci/sam_tools/sam_cmp_complete.py#L29
Unnecessary backslash in the expression
Unnecessary backslash: ci/sam_tools/sam_cmp.py#L102
Unnecessary backslash in the expression
Unnecessary backslash: ci/sam_tools/sam_cmp_complete.py#L27
Unnecessary backslash in the expression
Unreachable code: src/misc/gabac_api/api.py#L170
This code is unreachable
An instance attribute is defined outside `__init__`: src/misc/gabac_opt/gabac_ga.py#L60
Instance attribute populations defined outside __init__
An instance attribute is defined outside `__init__`: src/misc/gabac_opt/gabac_ga.py#L67
Instance attribute result defined outside __init__
An instance attribute is defined outside `__init__`: src/misc/gabac_opt/gabac_ga.py#L63
Instance attribute fitness defined outside __init__
Unclear exception clauses: src/misc/gabac_opt/gabac_conf_gen.py#L184
Too broad exception clause
Unclear exception clauses: src/misc/gabac_opt/gabac_conf_gen.py#L240
Too broad exception clause
Incorrect docstring: ci/sam_tools/sam_cmp.py#L10
Unexpected parameter input_path in docstring
Incorrect docstring: ci/sam_tools/sam_cmp.py#L11
Unexpected parameter output_path in docstring
Incorrect docstring: ci/sam_tools/sam_cmp.py#L7
Missing parameter input_first in docstring
Incorrect docstring: ci/sam_tools/sam_cmp.py#L7
Missing parameter input_second in docstring
Method is not declared static: src/misc/gabac_opt/gabac_conf_gen.py#L305
Method `json_to_cchar` may be 'static'
Method is not declared static: src/misc/gabac_api/api.py#L127
Method `is_attr_valid` may be 'static'
PEP 8 naming convention violation: src/misc/gabac_api/__init__.py#L25
Class names should use CapWords convention
PEP 8 naming convention violation: src/misc/gabac_opt/optimize_config.py#L71
Variable in function should be lowercase
PEP 8 naming convention violation: src/misc/gabac_api/const.py#L32
Class names should use CapWords convention
PEP 8 naming convention violation: src/misc/test/test_gabac_api.py#L126
Variable in function should be lowercase
PEP 8 naming convention violation: src/misc/gabac_opt/gabac_sa.py#L108
Variable in function should be lowercase
PEP 8 naming convention violation: src/misc/gabac_api/__init__.py#L87
Class names should use CapWords convention
PEP 8 naming convention violation: ci/sam_tools/sam_remove_header.py#L25
Variable in function should be lowercase
PEP 8 naming convention violation: src/misc/gabac_opt/gabac_sa.py#L112
Variable in function should be lowercase
PEP 8 naming convention violation: src/misc/gabac_api/const.py#L90
Class names should use CapWords convention
PEP 8 naming convention violation: src/misc/gabac_api/const.py#L104
Class names should use CapWords convention
PEP 8 naming convention violation: src/misc/gabac_opt/gabac_sa.py#L185
Variable in function should be lowercase
PEP 8 naming convention violation: src/misc/test/test_gabac_api.py#L125
Variable in function should be lowercase
PEP 8 naming convention violation: src/misc/gabac_api/const.py#L54
Class names should use CapWords convention
PEP 8 naming convention violation: src/misc/gabac_opt/gabac_sa.py#L137
Variable in function should be lowercase
PEP 8 naming convention violation: src/misc/gabac_api/__init__.py#L67
Class names should use CapWords convention
PEP 8 naming convention violation: src/misc/gabac_api/c_api.py#L25
Class names should use CapWords convention
PEP 8 naming convention violation: src/misc/gabac_opt/gabac_sa.py#L159
Variable in function should be lowercase
PEP 8 naming convention violation: src/misc/gabac_api/c_api.py#L204
Class names should use CapWords convention
PEP 8 naming convention violation: src/misc/gabac_opt/gabac_sa.py#L139
Variable in function should be lowercase
PEP 8 naming convention violation: ci/sam_tools/sam_remove_header.py#L13
Variable in function should be lowercase
PEP 8 naming convention violation: src/misc/gabac_api/const.py#L74
Class names should use CapWords convention
PEP 8 naming convention violation: src/misc/gabac_api/__init__.py#L14
Class names should use CapWords convention
PEP 8 naming convention violation: src/misc/gabac_api/const.py#L1
Class names should use CapWords convention
PEP 8 naming convention violation: ci/sam_tools/sam_cmp.py#L14
Variable in function should be lowercase
PEP 8 naming convention violation: src/misc/gabac_api/__init__.py#L117
Class names should use CapWords convention
PEP 8 naming convention violation: src/misc/gabac_opt/gabac_sa.py#L115
Variable in function should be lowercase
PEP 8 naming convention violation: src/misc/gabac_opt/gabac_sa.py#L177
Variable in function should be lowercase
PEP 8 naming convention violation: src/misc/gabac_api/__init__.py#L103
Class names should use CapWords convention
PEP 8 naming convention violation: src/misc/gabac_api/c_api.py#L130
Class names should use CapWords convention
PEP 8 naming convention violation: src/misc/gabac_opt/optimize_config.py#L48
Variable in function should be lowercase
PEP 8 naming convention violation: src/misc/gabac_api/__init__.py#L45
Class names should use CapWords convention
PEP 8 naming convention violation: src/misc/gabac_api/const.py#L12
Class names should use CapWords convention
Accessing a protected member of a class or a module: src/misc/gabac_api/api.py#L82
Access to a protected member _data_block of a class
Accessing a protected member of a class or a module: src/misc/gabac_api/api.py#L267
Access to a protected member _io_config of a class
Accessing a protected member of a class or a module: src/misc/gabac_api/api.py#L143
Access to a protected member _data_block of a class
Accessing a protected member of a class or a module: src/misc/gabac_api/api.py#L281
Access to a protected member _io_config of a class
Accessing a protected member of a class or a module: src/misc/gabac_api/api.py#L267
Access to a protected member _data_block of a class
Accessing a protected member of a class or a module: src/misc/gabac_api/api.py#L262
Access to a protected member _data_block of a class
Accessing a protected member of a class or a module: src/misc/gabac_api/api.py#L262
Access to a protected member _io_config of a class
Accessing a protected member of a class or a module: src/misc/gabac_api/api.py#L263
Access to a protected member _data_block of a class
Accessing a protected member of a class or a module: src/misc/gabac_api/api.py#L247
Access to a protected member _io_config of a class
Accessing a protected member of a class or a module: src/misc/gabac_api/api.py#L64
Access to a protected member _data_block of a class
Accessing a protected member of a class or a module: src/misc/gabac_api/api.py#L281
Access to a protected member _data_block of a class
Accessing a protected member of a class or a module: src/misc/gabac_api/api.py#L271
Access to a protected member _io_config of a class
Accessing a protected member of a class or a module: src/misc/gabac_api/api.py#L263
Access to a protected member _data_block of a class
Redundant parentheses: src/misc/wip/test_gabac_run.py#L42
Remove redundant parentheses
Redundant parentheses: ci/sam_tools/sam_cmp.py#L82
Remove redundant parentheses
Redundant parentheses: ci/sam_tools/sam_cmp.py#L47
Remove redundant parentheses
Redundant parentheses: src/misc/gabac_opt/gabac_conf_gen.py#L22
Remove redundant parentheses
Suspicious relative imports: src/misc/wip/test_gabac_conf_gen.py#L5
Relative import outside of a package
Shadowing names from outer scopes: src/misc/brute_force.py#L62
Shadows name 'diff_coding' from outer scope
Shadowing names from outer scopes: src/misc/gabac_opt/optimize_config.py#L24
Shadows name 'args' from outer scope
Shadowing names from outer scopes: src/misc/brute_force.py#L278
Shadows name 'args' from outer scope
Shadowing names from outer scopes: src/misc/gabac_opt/plot_hs_result_ga.py#L19
Shadows name 'transform' from outer scope
Shadowing names from outer scopes: src/misc/brute_force.py#L71
Shadows name 'binarization_param' from outer scope
Shadowing names from outer scopes: src/misc/brute_force.py#L78
Shadows name 'context_selection_id' from outer scope
Shadowing names from outer scopes: src/misc/brute_force.py#L56
Shadows name 'lut_param' from outer scope
Shadowing names from outer scopes: src/misc/gabac_opt/summerize_res.py#L18
Shadows name 'transform' from outer scope
Shadowing names from outer scopes: src/misc/brute_force.py#L56
Shadows name 'lut_id' from outer scope
Shadowing names from outer scopes: src/misc/brute_force.py#L96
Shadows name 'args' from outer scope
Shadowing names from outer scopes: src/misc/brute_force.py#L58
Shadows name 'lut_id' from outer scope
Shadowing names from outer scopes: src/misc/brute_force.py#L66
Shadows name 'binarization_param' from outer scope
Shadowing names from outer scopes: src/misc/brute_force.py#L58
Shadows name 'lut_param' from outer scope
Shadowing names from outer scopes: src/misc/gabac_opt/hyperparameter_search.py#L171
Shadows name 'args' from outer scope
Shadowing names from outer scopes: src/misc/brute_force.py#L66
Shadows name 'binarization_id' from outer scope
Shadowing names from outer scopes: src/misc/brute_force.py#L71
Shadows name 'binarization_id' from outer scope
Redundant boolean variable check: ci/sam_tools/sam_remove_header.py#L17
Expression can be simplified
Single quoted docstring: src/misc/gabac_opt/gabac_conf_gen.py#L135
Triple double-quoted strings should be used for docstrings.
Single quoted docstring: src/misc/gabac_opt/gabac_conf_gen.py#L137
Triple double-quoted strings should be used for docstrings.
Unused local symbols: src/misc/gabac_api/api.py#L237
Local variable 'e' value is not used
Unused local symbols: src/misc/gabac_api/api.py#L219
Local variable 'e' value is not used
Unused local symbols: src/misc/gabac_api/api.py#L167
Parameter 'attr' value is not used
Unused local symbols: src/misc/gabac_api/api.py#L226
Local variable 'e' value is not used
Unused local symbols: src/misc/gabac_api/api.py#L208
Parameter 'verbose_level' value is not used
Unused local symbols: src/misc/brute_force.py#L144
Local variable 'logfilename' value is not used
Unused local symbols: src/misc/gabac_opt/gabac_conf_gen.py#L294
Local variable 'conf_cchar' value is not used
Unused local symbols: conformance_tests/conformance_tests.py#L177
Local variable 'executables' value is not used