-
Notifications
You must be signed in to change notification settings - Fork 8
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: logic for new config #45
Conversation
// Cant have more then one notice tag | ||
if (noticeCounter > 1) { | ||
alerts.push(`@notice is duplicated`); | ||
} |
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 believe it's a valid scenario. At the same time, having duplicated @param
tags should be prohibited.
Object.keys(this.config.functions[key as keyof Functions].tags).forEach((tag) => { | ||
if (this.config.functions[key as keyof Functions][tag as keyof FunctionConfig]) { | ||
needsWarning = true; | ||
} |
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.
One thing to note here, we could avoid repeating as keyof
by converting the config into a class and adding helpers to it. This approach will also help with retrieving the rest of the rules, let's discuss it later when the logic is fully developed.
🤖 Linear
Closes BES-251