Add clang-tidy plugin to convert implicit conversions to explicit ones #4663
3 new issues (0 max.) of at least minor severity.
Here is an overview of what got changed by this pull request:
Issues
======
- Added 3
Complexity increasing per file
==============================
- clang_tidy_plugin/ModernizeNlohmannJsonExplicitConversionsCheck.cpp 11
- clang_tidy_plugin/Module.cpp 1
- clang_tidy_plugin/ModernizeNlohmannJsonExplicitConversionsCheck.h 2
- tests/clang_tidy_plugin/modernize-nlohmann-json-explicit-conversions.cpp 20
- tests/clang_tidy_plugin/check_clang_tidy.py 4
See the complete overview on Codacy
Annotations
Check warning on line 53 in tests/clang_tidy_plugin/check_clang_tidy.py
codacy-production / Codacy Static Code Analysis
tests/clang_tidy_plugin/check_clang_tidy.py#L53
Consider possible security implications associated with the subprocess module.
Check warning on line 65 in tests/clang_tidy_plugin/check_clang_tidy.py
codacy-production / Codacy Static Code Analysis
tests/clang_tidy_plugin/check_clang_tidy.py#L65
subprocess call - check for execution of untrusted input.
Check notice on line 163 in tests/clang_tidy_plugin/modernize-nlohmann-json-explicit-conversions.cpp
codacy-production / Codacy Static Code Analysis
tests/clang_tidy_plugin/modernize-nlohmann-json-explicit-conversions.cpp#L163
Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126).