Skip to content

Conversation

@r-farkhutdinov
Copy link
Contributor

No description provided.

@r-farkhutdinov r-farkhutdinov self-assigned this Apr 29, 2025
@r-farkhutdinov r-farkhutdinov force-pushed the 25_1_html_editor_ai_warnings branch from eb2e2f7 to c134dc3 Compare May 1, 2025 10:33
@r-farkhutdinov r-farkhutdinov marked this pull request as ready for review May 1, 2025 10:34
@r-farkhutdinov r-farkhutdinov force-pushed the 25_1_html_editor_ai_warnings branch 2 times, most recently from 8deca4b to f733325 Compare May 5, 2025 07:11
}
};

export const hasInvalidCustomCommand = (commandsMap: CommandsMap): boolean => Object.keys(commandsMap).some((command) => command.startsWith('custom') && !commandsMap[command].prompt);
Copy link
Contributor

Choose a reason for hiding this comment

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

Really long string

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agree, but I can't find a shorter name that will describe the function better. Also, I have seen longer function names in the codebase. If it's not critical, I would like to leave it as is.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ruslan, you can just wrap body with {}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Linter automatically fixes it to be in one line. We don't want to ignore this rule :)

Copy link
Contributor

Choose a reason for hiding this comment

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

you can extract commandNames variable, then it gotta be okay. But it's a minor so let's not waste time

@r-farkhutdinov r-farkhutdinov merged commit c69d257 into DevExpress:25_1 May 6, 2025
570 of 600 checks passed
ajivanyandev pushed a commit that referenced this pull request May 23, 2025
Co-authored-by: Ruslan Farkhutdinov <ruslan.farkhutdinov@devexpress.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants