-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[config] ecal api config path review #1869
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
There were too many comments to post at once. Showing the first 20 out of 24. Check the log or trigger a new build to see more.
app/sys/sys_gui/src/widgets/import_from_cloud_widget/import_from_cloud_widget.cpp
Outdated
Show resolved
Hide resolved
…pse-ecal/ecal into feature/ecal_api_config_path_review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
#endif | ||
} | ||
|
||
std::string eCALPlatformSpecificFolder(const std::string& path_, const std::string& linux_folder_name_ = ECAL_FOLDER_NAME_HOME_LINUX, const std::string& win_folder_name_ = ECAL_FOLDER_NAME_WINDOWS) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: parameter 'win_folder_name_' is unused [misc-unused-parameters]
std::string eCALPlatformSpecificFolder(const std::string& path_, const std::string& linux_folder_name_ = ECAL_FOLDER_NAME_HOME_LINUX, const std::string& win_folder_name_ = ECAL_FOLDER_NAME_WINDOWS) | |
std::string eCALPlatformSpecificFolder(const std::string& path_, const std::string& linux_folder_name_ = ECAL_FOLDER_NAME_HOME_LINUX) |
} | ||
else | ||
{ | ||
std::cout << "[eCAL] Log path does not exist: " << path << std::endl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: do not use 'std::endl' with streams; use '\n' instead [performance-avoid-endl]
std::cout << "[eCAL] Log path does not exist: " << path << std::endl; | |
std::cout << "[eCAL] Log path does not exist: " << path << '\n'; |
* ========================= eCAL LICENSE ================================= | ||
*/ | ||
|
||
#include <gmock/gmock.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: 'gmock/gmock.h' file not found [clang-diagnostic-error]
#include <gmock/gmock.h>
^
|
||
#include <cstdlib> | ||
|
||
class ScopedEnvVar { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: class 'ScopedEnvVar' defines a non-default destructor but does not define a copy constructor, a copy assignment operator, a move constructor or a move assignment operator [cppcoreguidelines-special-member-functions]
class ScopedEnvVar {
^
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
const std::string env_ecal_log_value = "/path/to/log"; | ||
|
||
{ // Check for config path | ||
MockEnvVar mock_env_var; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: variable 'mock_env_var' of type 'MockEnvVar' can be declared 'const' [misc-const-correctness]
MockEnvVar mock_env_var; | |
MockEnvVar const mock_env_var; |
Closed due to merge problem and too many files to review. |
Description
Path processing and API changes regarding configuration and log paths.
API Changes
ecal_util.h
Logic Changes
Misc