Switch to WMO Instruments #3390
CodeScene PR Check
Quality Gate Passed
Code Health Improved
(2 files improve in Code Health)
Gates Passed
4 Quality Gates Passed
See analysis details in CodeScene
View Improvements
| File | Code Health Impact | Categories Improved |
|---|---|---|
| enhancer.py | 8.60 → 9.15 | Overall Code Complexity |
| mitiff.py | 5.73 → 6.08 | Lines of Code in a Single File, Overall Code Complexity |
Quality Gate Profile: Clean Code Collective
Install CodeScene MCP: safeguard and uplift AI-generated code. Catch issues early with our IDE extension and CLI tool.
Details
✅ Improving Code Health:
- Code Duplication test_load.py
- Overall Code Complexity mitiff.py
- Overall Code Complexity enhancer.py
- Lines of Code in a Single File mitiff.py
Annotations
Check notice on line 1 in satpy/enhancements/enhancer.py
codescene-delta-analysis / CodeScene Code Health Review (main)
✅ No longer an issue: Overall Code Complexity
The mean cyclomatic complexity in this module is no longer above the threshold
Check notice on line 1 in satpy/writers/mitiff.py
codescene-delta-analysis / CodeScene Code Health Review (main)
✅ No longer an issue: Lines of Code in a Single File
The lines of code in this module is no longer above the threshold
Check notice on line 1 in satpy/writers/mitiff.py
codescene-delta-analysis / CodeScene Code Health Review (main)
✅ Getting better: Overall Code Complexity
The mean cyclomatic complexity decreases from 6.19 to 6.15, threshold = 4. This file has many conditional statements (e.g. if, for, while) across its implementation, leading to lower code health. Avoid adding more conditionals.
Check notice on line 1 in satpy/tests/scene_tests/test_load.py
codescene-delta-analysis / CodeScene Code Health Review (main)
✅ Getting better: Code Duplication
reduced similar code in: TestLoadingComposites.test_load_when_sensor_none_in_preloaded_dataarrays,TestSceneAllAvailableDatasets.test_available_when_sensor_none_in_preloaded_dataarrays. Avoid duplicated, aka copy-pasted, code inside the module. More duplication lowers the code health.