cleanup: Use make_unique
and make_shared
instead of new
.
#76
Mergeable / Mergeable
succeeded
Nov 21, 2024 in 12s
3 checks passed!
Status: PASS
Details
✔️ Validator: TITLE
- ✔️ All the requisite validations passed for 'or' option
Input : cleanup: Usemake_unique
andmake_shared
instead ofnew
.
Settings :{"or":[{"must_include":{"regex":"^(feat|docs|chore|cleanup|fix|refactor|test|style|perf)(\\([^) ]+\\))?:\\ .+$","message":"Semantic release conventions must be followed."}},{"must_include":{"regex":"^Bump [^ ]* from [^ ]* to [^ ]*$","message":"Dependabot PRs are exempt from semantic release conventions."}}]}
✔️ Validator: COMMIT
- ✔️ Your commit messages met the specified criteria
Input : cleanup: Usemake_unique
andmake_shared
instead ofnew
.
Also replace deprecated C header includes with their C++ versions.
To reproduce:
run-clang-tidy -p _build -fix \
$(find . -name "*.h" -or -name "*.cpp" | grep -v "/_build/") \
-checks="-*,modernize-deprecated-headers,modernize-make-shared,modernize-make-unique"
Settings : {"do":"commit","message":{"regex":"^((feat|docs|chore|cleanup|fix|refactor|test|style|perf)(\\([^) ]+\\))?:\\ .+|Bump [^ ]* from [^ ]* to [^ ]*)","message":"Semantic release conventions must be followed."}}
✔️ Validator: DESCRIPTION
- ✔️ description must exclude '\[ \]'
Input : Also replace deprecated C header includes with their C++ versions.
To reproduce:
run-clang-tidy -p _build -fix \
$(find . -name "*.h" -or -name "*.cpp" | grep -v "/_build/") \
-checks="-*,modernize-deprecated-headers,modernize-make-shared,modernize-make-unique"
Settings : {"must_exclude":{"regex":"\\\\[ \\\\]","message":"There are incomplete TODO task(s) unchecked."}}
Loading