Skip to content

Title : Improved line length check in commit message.#30

Merged
ynancher merged 1 commit into
qualcomm:mainfrom
snainani:snainani_develop
May 14, 2026
Merged

Title : Improved line length check in commit message.#30
ynancher merged 1 commit into
qualcomm:mainfrom
snainani:snainani_develop

Conversation

@snainani
Copy link
Copy Markdown
Contributor

@snainani snainani commented May 13, 2026

Improved the logic of checking line length check of commit body which can allow words without spaces like urls etc.The new logic will check if the last space of a line is occuring beyond the body character limit then it should throw the error.

Comment thread check_commits.py Outdated
Comment thread check_commits.py
@abinjose-qualcomm
Copy link
Copy Markdown
Contributor

I see test cases are failing because of incorrect formatting. Please check.

@snainani snainani force-pushed the snainani_develop branch from 1ed7bfc to 31b1333 Compare May 14, 2026 07:02
Enhanced validation logic for commit message line length.
Allow long words such as URLs or identifiers without spaces.
If the last word starts after the 72 character limit
It reports an error.Otherwise allow lines where a single
word extends beyond the limit.

Signed-off-by: Sumit Nainani <snainani@qti.qualcomm.com>
@snainani
Copy link
Copy Markdown
Contributor Author

I see test cases are failing because of incorrect formatting. Please check.

done

@ynancher ynancher merged commit 7c0dd28 into qualcomm:main May 14, 2026
11 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.

3 participants