Added unit tests and convenience methods, fixed SonarCloud issues, include file cleanup#849
Added unit tests and convenience methods, fixed SonarCloud issues, include file cleanup#849
Conversation
|
SonarCloud Quality Gate failed. |
|
@uweseimet Do you mean python and html issues reported by Sonarcloud? How can I see them? |
|
@rdmark Just select the branch you are interested in on https://sonarcloud.io/project/overview?id=akuker_RASCSI. |
|
@akuker After the review, I would like to merge this PR myself, because I want to clean up the final log message. |
|
@uweseimet Thanks I found the relevant report. Glancing through the Python code smells, vulnerabilities and issues, there are a handful that are worth addressing. Others are known structural issues that pylint has reported already, but are hard to do anything about (complexity, nested if statements, etc.) without major refactoring. As for the reported html issues: we deliberately use deprecated syntax in order to support ancient web browsers, so none of those are something that we want to address. If we can suppress html syntax deprecation warning that would be great. So the conclusion here is that I don't think we want to make any changes right now, but put on the backlog to address later. |
|
@rdmark Do issues like those reported for python/common/src/util/unarchiver.py require a major refactoring? |
|
@uweseimet I agree that unarchiver.py is the one module with low hanging fruit to potentially fix. |
|
Hi both, I will check out the SonarCloud reports soon and raise a new PR for any changes. The unarchiver module is going to need refactoring to allow it to be unit tested, which is something I'm keen to investigate now we've got pytest set up. |
|
|
||
|
|
||
| CXXFLAGS += -std=c++17 -iquote . -D_FILE_OFFSET_BITS=64 -MD -MP | ||
| CXXFLAGS += -std=c++17 -iquote . -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -MD -MP |
There was a problem hiding this comment.
Just out of curiosity, why was this added?
|
Approved. feel free to merge! |
|
@akuker Done, thank you for reviewing! |










No description provided.