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

Adding rule id to a VCS message #156

Merged
merged 2 commits into from
Oct 30, 2023
Merged

Conversation

Vedmax
Copy link
Contributor

@Vedmax Vedmax commented Oct 18, 2023

No description provided.

@@ -46,4 +46,8 @@ ${warningMsg}`;
? `CodeCoach report ${nOfErrors} errors`
: 'CodeCoach report no critical issue, good job!';
}

static addRuleIdToMessage(msg: string, ruleId: string): string {
return `${msg}` + (ruleId ? ` \n(rule: ${ruleId})` : '');
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe not a line break between the message and the rule ID as the whole text being built could have multiple lint issues and it's going to be confusing.

@encX encX merged commit 0057082 into codeleague:main Oct 30, 2023
2 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