-
Notifications
You must be signed in to change notification settings - Fork 38
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
feat(config): add support for restrictionKeys #2602
Conversation
View your CI Pipeline Execution ↗ for commit b0bc18b.
☁️ Nx Cloud last updated this comment at |
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found.
Additional details and impacted files☔ View full report in Codecov by Sentry. |
const { loc, value: docText } = comment; | ||
const actualKeys = Array.from(docText.matchAll(/@o3rRestrictionKeys (.*)/g)).map((match) => match[1]); | ||
|
||
if (actualKeys.length === 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't actual keys be mandatory?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
number of supported keys should be mandatory
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I change the code to raise issue is the rule is configured with an empty array for supportedKeys
...3r/eslint-plugin/src/rules/typescript/o3r-restriction-keys-tags/o3r-restriction-keys-tags.ts
Outdated
Show resolved
Hide resolved
...3r/eslint-plugin/src/rules/typescript/o3r-restriction-keys-tags/o3r-restriction-keys-tags.ts
Outdated
Show resolved
Hide resolved
apps/showcase/src/components/showcase/configuration/configuration-pres.config.ts
Outdated
Show resolved
Hide resolved
7617a31
to
debe22b
Compare
packages/@o3r/configuration/schemas/configuration.metadata.schema.json
Outdated
Show resolved
Hide resolved
aadaf2e
to
7e80aed
Compare
Missing documentation in |
7e80aed
to
6e353c9
Compare
8d861ce
to
34904c6
Compare
34904c6
to
bb4e875
Compare
b0bc18b
bb4e875
to
b0bc18b
Compare
Proposed change
As a developer I want to be able to flag a configuration property as sensitive.
It was decided to have an array of restriction, named
restrictionKeys
for each property, to support potential future use case with different level of restriction based on the role of the user configuring the property value.This PR includes:
restrictionKeys
from the jsdoc tags@o3rRestrictionKeys
@o3rRestrictionKeys
Related issues
- No issue associated -