Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make internal prefixes available to linter rules #26188

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jabraham17
Copy link
Member

Makes the internal prefixes (as specified by --internal-prefix chpl_) be exposed to linter rules, rather than just the driver. Technically this was already possible, this PR just makes the naming based rules exclude the prefixes, such that chpl_camelCase is considered to be camelCase

[Reviewed by @]

Copy link
Contributor

@DanilaFe DanilaFe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but needs tests for the new flag.

tools/chplcheck/src/rules.py Outdated Show resolved Hide resolved
Signed-off-by: Jade Abraham <[email protected]>
@jabraham17
Copy link
Member Author

I removed the kwargs.

How do you feel about waiting for #26191 to add the tests? That will add .chplcheckopts to the chplcheck test infrastructure and will make adding tests for this much easier

@DanilaFe
Copy link
Contributor

DanilaFe commented Nov 1, 2024

Sounds good to me.

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