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

add rule for roRegex duplicates #119

Merged
merged 4 commits into from
Aug 6, 2024

Conversation

RokuAndrii
Copy link
Contributor

image

src/plugins/codeStyle/index.ts Outdated Show resolved Hide resolved
src/plugins/codeStyle/index.ts Outdated Show resolved Hide resolved
src/plugins/codeStyle/index.ts Outdated Show resolved Hide resolved
src/plugins/codeStyle/index.ts Outdated Show resolved Hide resolved
src/plugins/codeStyle/index.ts Outdated Show resolved Hide resolved
src/plugins/codeStyle/index.ts Outdated Show resolved Hide resolved
src/plugins/codeStyle/diagnosticMessages.ts Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
src/plugins/codeStyle/index.spec.ts Outdated Show resolved Hide resolved
src/plugins/codeStyle/index.ts Outdated Show resolved Hide resolved
Copy link
Member

@TwitchBronBron TwitchBronBron left a comment

Choose a reason for hiding this comment

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

Looking pretty good. Just a few small tweaks yet.

src/plugins/codeStyle/index.ts Outdated Show resolved Hide resolved
Comment on lines 398 to 406
isLoop(node: AstNode) {
return isForStatement(node) || isForEachStatement(node) || isWhileStatement(node);
}

isCreateObject(s: CallExpression) {
return isVariableExpression(s.callee) && s.callee.name.text.toLowerCase() === 'createobject';
}

getLiteralArgs(args: Expression[]) {
Copy link
Member

Choose a reason for hiding this comment

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

This comment still needs to be addressed. Please declare isLoop, isCreateObject, and getLiteralArgs as private.

@TwitchBronBron TwitchBronBron merged commit a3cb206 into rokucommunity:master Aug 6, 2024
5 checks passed
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