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

feat: logic for new config #45

Merged
merged 7 commits into from
Mar 6, 2024
Merged

feat: logic for new config #45

merged 7 commits into from
Mar 6, 2024

Conversation

excaliborr
Copy link

@excaliborr excaliborr commented Mar 4, 2024

🤖 Linear

Closes BES-251

Comment on lines +216 to +219
// Cant have more then one notice tag
if (noticeCounter > 1) {
alerts.push(`@notice is duplicated`);
}
Copy link
Member

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.

Comment on lines +59 to +62
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;
}
Copy link
Member

@gas1cent gas1cent Mar 5, 2024

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.

@excaliborr excaliborr changed the title feat: logic for new functions config feat: logic for new config Mar 6, 2024
Copy link

linear bot commented Mar 6, 2024

@gas1cent gas1cent added this to the v1.2.0 milestone Mar 6, 2024
@excaliborr excaliborr merged commit 6f2c28f into main Mar 6, 2024
4 checks passed
@excaliborr excaliborr deleted the feat/new-config branch March 6, 2024 14:28
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