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

CommitValidationTest: add character limit to line #3910

Closed
rnveach opened this issue Mar 4, 2017 · 14 comments
Closed

CommitValidationTest: add character limit to line #3910

rnveach opened this issue Mar 4, 2017 · 14 comments

Comments

@rnveach
Copy link
Member

rnveach commented Mar 4, 2017

Taken from #3905 (comment):

We restrict commit messages to be 1 line to be concise, but we don't limit how long that line can be allowing users to create 400+ character messages.

CommitValidationTest needs to be modified to restrict the line length to 200 characters.

Rules message needs to be updated to show this new rule with it's own number when validation fails so users know how to correct the issue.

@sagar-shah94
Copy link
Contributor

i am on it.

@voidfist
Copy link
Contributor

voidfist commented Mar 4, 2017

On it

@sagar-shah94
Copy link
Contributor

Already sent pull request

@voidfist
Copy link
Contributor

voidfist commented Mar 4, 2017

kudos.

@sagar-shah94
Copy link
Contributor

Thanks @PS-SP

@voidfist
Copy link
Contributor

voidfist commented Mar 4, 2017

I was almost done too man ! It hurts :P

@sagar-shah94
Copy link
Contributor

@PS-SP Sorry i did not know .when i commented i am on it .i did not see any comment that is why i commented.
Sorry :(

@voidfist
Copy link
Contributor

voidfist commented Mar 4, 2017

NO ! You don't have to be sorry bro. You got it done before me so it's rightfully yours. Also, if it makes you feel better, I'd have made a PR even in spite of seeing your comment, if I had completed it before you that is ! 😋

@romani
Copy link
Member

romani commented Mar 4, 2017

who first did "i am on it.", that user will be assignee and I expect fix from it, any racing will be rejected.

@romani romani added this to the 7.7 milestone Mar 4, 2017
@romani romani closed this as completed Mar 4, 2017
@romani
Copy link
Member

romani commented Mar 4, 2017

fix is merged

@rnveach
Copy link
Member Author

rnveach commented Mar 4, 2017

I am re-opening the issue. Rule number was added but no updates were done to the violation message to inform the user of this new rule.
See https://github.com/checkstyle/checkstyle/blob/master/src/test/java/com/puppycrawl/tools/checkstyle/internal/CommitValidationTest.java#L289

@sagar-shah94 since you did first update, can you finish this?

@rnveach rnveach reopened this Mar 4, 2017
@sagar-shah94
Copy link
Contributor

@rnveach doing it now

@sagar-shah94
Copy link
Contributor

@rnveach Sir added violation message please review and approve

sagar-shah94 pushed a commit to sagar-shah94/checkstyle that referenced this issue Mar 4, 2017
sagar-shah94 pushed a commit to sagar-shah94/checkstyle that referenced this issue Mar 4, 2017
sagar-shah94 pushed a commit to sagar-shah94/checkstyle that referenced this issue Mar 4, 2017
sagar-shah94 pushed a commit to sagar-shah94/checkstyle that referenced this issue Mar 4, 2017
sagar-shah94 pushed a commit to sagar-shah94/checkstyle that referenced this issue Mar 4, 2017
sagar-shah94 pushed a commit to sagar-shah94/checkstyle that referenced this issue Mar 7, 2017
@romani
Copy link
Member

romani commented Mar 8, 2017

fix is merged.

@romani romani closed this as completed Mar 8, 2017
sagar-shah94 pushed a commit to sagar-shah94/checkstyle that referenced this issue Mar 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants