Skip to content

feat: remove suffix from end column - #400

Open
cx-diogo-rocha wants to merge 3 commits into
AST-151006-fix-line-contentfrom
AST-151006-remove-suffix-from-end-column
Open

cx-diogo-rocha wants to merge 3 commits into
AST-151006-fix-line-contentfrom
AST-151006-remove-suffix-from-end-column

Conversation

@cx-diogo-rocha

Copy link
Copy Markdown
Contributor

Closes #

Proposed Changes
Suffixes of regexes of most rules were being considered as part of the location of the secret.
This created inconsistent EndColumn values between scans for secrets that got a new line, a ";" or '"' character at the end.
This feature removes those characters from the EndColumn value, accurately representing the end of the secret
StartColumn will still account for prefixes such as variables preceding the secret.

Checklist

  • I covered my changes with tests.
  • I Updated the documentation that is affected by my changes:
    • Change in the CLI arguments
    • Change in the configuration file

I submit this contribution under the Apache-2.0 license.

@cx-diogo-rocha
cx-diogo-rocha requested a review from a team as a code owner September 14, 2026 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants