Skip to content
This repository was archived by the owner on Nov 10, 2025. It is now read-only.

feat: add option helpers for comparison and assertion checks#107

Merged
polyfloyd merged 1 commit into
polyfloyd:mainfrom
kakkoyun:add_missing_options
Sep 5, 2025
Merged

feat: add option helpers for comparison and assertion checks#107
polyfloyd merged 1 commit into
polyfloyd:mainfrom
kakkoyun:add_missing_options

Conversation

@kakkoyun

@kakkoyun kakkoyun commented Sep 3, 2025

Copy link
Copy Markdown
Contributor

Add WithComparison and WithAsserts option helpers to allow programmatic
configuration of checkComparison and checkAsserts flags. This enables
fine-grained control over which error linting rules are applied when
using the analyzer as a library.

  • Add WithComparison(bool) option helper for comparison checking
  • Add WithAsserts(bool) option helper for assertion checking
  • Add corresponding test cases and test data
  • All tests pass

Signed-off-by: Kemal Akkoyun [email protected]

Add WithComparison and WithAsserts option helpers to allow programmatic
configuration of checkComparison and checkAsserts flags. This enables
fine-grained control over which error linting rules are applied when
using the analyzer as a library.

- Add WithComparison(bool) option helper for comparison checking
- Add WithAsserts(bool) option helper for assertion checking
- Add corresponding test cases and test data
- All tests pass

Signed-off-by: Kemal Akkoyun <[email protected]>
@kakkoyun
kakkoyun marked this pull request as ready for review September 3, 2025 09:33
@polyfloyd
polyfloyd merged commit 5095374 into polyfloyd:main Sep 5, 2025
3 checks passed
@polyfloyd

Copy link
Copy Markdown
Owner

Thanks!

github-merge-queue Bot pushed a commit to DataDog/orchestrion that referenced this pull request Sep 11, 2025
- Add new 'orchestrion lint' command
- Use multichecker framework to run static analysis checks
- Include custom help formatting to maintain Orchestrion CLI consistency
- Add go-errorlint as the first linter
- Enable comparison and asserts checks by default for error handling
validation

Needs polyfloyd/go-errorlint#107 before merging.

Signed-off-by: Kemal Akkoyun <[email protected]>

---------

Signed-off-by: Kemal Akkoyun <[email protected]>
Co-authored-by: dd-k9-library-go[bot] <214463715+dd-k9-library-go[bot]@users.noreply.github.com>
github-merge-queue Bot pushed a commit to DataDog/orchestrion that referenced this pull request Sep 11, 2025
- Add new 'orchestrion lint' command
- Use multichecker framework to run static analysis checks
- Include custom help formatting to maintain Orchestrion CLI consistency
- Add go-errorlint as the first linter
- Enable comparison and asserts checks by default for error handling
validation

Needs polyfloyd/go-errorlint#107 before merging.

Signed-off-by: Kemal Akkoyun <[email protected]>

---------

Signed-off-by: Kemal Akkoyun <[email protected]>
Co-authored-by: dd-k9-library-go[bot] <214463715+dd-k9-library-go[bot]@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants