feat: add optional RE2 regex engine support#336
Conversation
Agent-Logs-Url: https://github.com/philips-software/amp-cucumber-cpp-runner/sessions/0e3cf009-a2d6-49bc-bf3e-dd63ff740acd Co-authored-by: daantimmer <8293597+daantimmer@users.noreply.github.com>
✅
|
| Descriptor | Linter | Files | Fixed | Errors | Warnings | Elapsed time |
|---|---|---|---|---|---|---|
| ✅ ACTION | actionlint | 6 | 0 | 0 | 0.03s | |
| ✅ CPP | clang-format | 238 | 1 | 0 | 0 | 1.59s |
| ✅ DOCKERFILE | hadolint | 1 | 0 | 0 | 0.04s | |
| markdownlint | 7 | 4 | 19 | 0 | 1.05s | |
| ✅ MARKDOWN | markdown-table-formatter | 7 | 4 | 0 | 0 | 0.3s |
| ✅ REPOSITORY | git_diff | yes | no | no | 0.02s | |
| ✅ REPOSITORY | grype | yes | no | no | 51.63s | |
| ✅ REPOSITORY | ls-lint | yes | no | no | 0.1s | |
| ✅ REPOSITORY | secretlint | yes | no | no | 4.45s | |
| ✅ REPOSITORY | syft | yes | no | no | 1.69s | |
| ✅ REPOSITORY | trivy | yes | no | no | 9.26s | |
| ✅ REPOSITORY | trivy-sbom | yes | no | no | 0.19s | |
| ✅ REPOSITORY | trufflehog | yes | no | no | 5.17s | |
| lychee | 86 | 2 | 0 | 3.15s | ||
| ✅ YAML | prettier | 10 | 0 | 0 | 0 | 0.67s |
| ✅ YAML | v8r | 10 | 0 | 0 | 8.58s | |
| ✅ YAML | yamllint | 10 | 0 | 0 | 0.54s |
Detailed Issues
⚠️ SPELL / lychee - 2 errors
[ERROR] https://www.contributor-covenant.org/version/2/0/code_of_conduct.html | Network error: error sending request for url (https://www.contributor-covenant.org/version/2/0/code_of_conduct.html) Maybe a certificate error?
[404] https://github.com/yourname/amp-cucumber-cpp-runner.git | Network error: Not Found
📝 Summary
---------------------
🔍 Total..........169
✅ Successful.....167
⏳ Timeouts.........0
🔀 Redirected.......0
👻 Excluded.........0
❓ Unknown..........0
🚫 Errors...........2
Errors in CODE_OF_CONDUCT.md
[ERROR] https://www.contributor-covenant.org/version/2/0/code_of_conduct.html | Network error: error sending request for url (https://www.contributor-covenant.org/version/2/0/code_of_conduct.html) Maybe a certificate error?
Errors in CONTRIBUTING.md
[404] https://github.com/yourname/amp-cucumber-cpp-runner.git | Network error: Not Found
⚠️ MARKDOWN / markdownlint - 19 errors
CHANGELOG.md:31 error MD024/no-duplicate-heading Multiple headings with the same content [Context: "Bug Fixes"]
CHANGELOG.md:37 error MD024/no-duplicate-heading Multiple headings with the same content [Context: "Chores"]
CHANGELOG.md:44 error MD024/no-duplicate-heading Multiple headings with the same content [Context: "Features"]
CHANGELOG.md:51 error MD024/no-duplicate-heading Multiple headings with the same content [Context: "Chores"]
CHANGELOG.md:59 error MD024/no-duplicate-heading Multiple headings with the same content [Context: "⚠ BREAKING CHANGES"]
CHANGELOG.md:63 error MD024/no-duplicate-heading Multiple headings with the same content [Context: "Features"]
CHANGELOG.md:72 error MD024/no-duplicate-heading Multiple headings with the same content [Context: "Features"]
CHANGELOG.md:78 error MD024/no-duplicate-heading Multiple headings with the same content [Context: "Chores"]
CHANGELOG.md:86 error MD024/no-duplicate-heading Multiple headings with the same content [Context: "⚠ BREAKING CHANGES"]
CHANGELOG.md:90 error MD024/no-duplicate-heading Multiple headings with the same content [Context: "Features"]
CHANGELOG.md:95 error MD024/no-duplicate-heading Multiple headings with the same content [Context: "Bug Fixes"]
CHANGELOG.md:104 error MD024/no-duplicate-heading Multiple headings with the same content [Context: "Features"]
CHANGELOG.md:115 error MD024/no-duplicate-heading Multiple headings with the same content [Context: "Chores"]
CHANGELOG.md:123 error MD024/no-duplicate-heading Multiple headings with the same content [Context: "⚠ BREAKING CHANGES"]
CHANGELOG.md:127 error MD024/no-duplicate-heading Multiple headings with the same content [Context: "Features"]
CHANGELOG.md:152 error MD024/no-duplicate-heading Multiple headings with the same content [Context: "Bug Fixes"]
CHANGELOG.md:159 error MD024/no-duplicate-heading Multiple headings with the same content [Context: "Chores"]
cmake/WindowsToolchainFilesProvidedBy.md:1 error MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "<https://github.com/MarkSchofi..."]
README.md:132 error MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
See detailed reports in MegaLinter artifacts
Your project could benefit from a custom flavor, which would allow you to run only the linters you need, and thus improve runtime performances. (Skip this info by defining FLAVOR_SUGGESTIONS: false)
- Documentation: Custom Flavors
- Command:
npx mega-linter-runner@9.4.0 --custom-flavor-setup --custom-flavor-linters ACTION_ACTIONLINT,CPP_CLANG_FORMAT,DOCKERFILE_HADOLINT,MARKDOWN_MARKDOWNLINT,MARKDOWN_MARKDOWN_TABLE_FORMATTER,REPOSITORY_GIT_DIFF,REPOSITORY_GRYPE,REPOSITORY_LS_LINT,REPOSITORY_SECRETLINT,REPOSITORY_SYFT,REPOSITORY_TRIVY,REPOSITORY_TRIVY_SBOM,REPOSITORY_TRUFFLEHOG,SPELL_LYCHEE,YAML_PRETTIER,YAML_YAMLLINT,YAML_V8R

Show us your support by starring ⭐ the repository
|
Copilot resolve the cmake configure issues |
Agent-Logs-Url: https://github.com/philips-software/amp-cucumber-cpp-runner/sessions/9f30db49-b4ba-4e81-8e79-9526f60101d5 Co-authored-by: daantimmer <8293597+daantimmer@users.noreply.github.com>
Fixed in d625ab2. The issue was that re2's |
Agent-Logs-Url: https://github.com/philips-software/amp-cucumber-cpp-runner/sessions/40e20c8b-1421-4d1f-867d-fb4e29d1b994 Co-authored-by: daantimmer <8293597+daantimmer@users.noreply.github.com>
Agent-Logs-Url: https://github.com/philips-software/amp-cucumber-cpp-runner/sessions/40e20c8b-1421-4d1f-867d-fb4e29d1b994 Co-authored-by: daantimmer <8293597+daantimmer@users.noreply.github.com>
Agent-Logs-Url: https://github.com/philips-software/amp-cucumber-cpp-runner/sessions/40e20c8b-1421-4d1f-867d-fb4e29d1b994 Co-authored-by: daantimmer <8293597+daantimmer@users.noreply.github.com>
…n conflict Agent-Logs-Url: https://github.com/philips-software/amp-cucumber-cpp-runner/sessions/7bb1f5cc-0fbc-4d37-b19a-d7d70116d3cd Co-authored-by: daantimmer <8293597+daantimmer@users.noreply.github.com>
…plementations Agent-Logs-Url: https://github.com/philips-software/amp-cucumber-cpp-runner/sessions/e62df561-2d9b-48d9-9306-405d1d941bb1 Co-authored-by: daantimmer <8293597+daantimmer@users.noreply.github.com>
…nvalid-pattern test Agent-Logs-Url: https://github.com/philips-software/amp-cucumber-cpp-runner/sessions/e62df561-2d9b-48d9-9306-405d1d941bb1 Co-authored-by: daantimmer <8293597+daantimmer@users.noreply.github.com>
…d tests Agent-Logs-Url: https://github.com/philips-software/amp-cucumber-cpp-runner/sessions/9823874c-5558-4d0a-bb90-309e7c61d636 Co-authored-by: daantimmer <8293597+daantimmer@users.noreply.github.com>
Done — removed the |
|
🤖 I have created a release *beep* *boop* --- ## [4.1.0](v4.0.1...v4.1.0) (2026-07-03) ### Features * Add optional RE2 regex engine support ([#336](#336)) ([874dfb5](874dfb5)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: philips-software-forest-releaser[bot] <80338643+philips-software-forest-releaser[bot]@users.noreply.github.com>



Adds an optional RE2 regex engine backend via a
CCR_USE_RE2CMake option.RegexStrategyabstraction withStdRegexStrategy(std::regex) andRe2RegexStrategy(RE2) implementations;TreeRegexpnow delegates to the strategy selected byRegexStrategyFactory, falling back tostd::regexwhen RE2 is unavailableCCR_FETCH_DEPSor auto-detected viafind_package; sanitizer flags moved after external dependency fetching to avoid abseil/GCC ASan incompatibility-no-re2presets to verify both code paths on all platforms