-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Added a new line linter #2875
Added a new line linter #2875
Conversation
7b6ed41
to
94e63c7
Compare
❌ Gradle Check failure 92b274adf2dcd58e13827471cc7294ffb0649dad |
❌ Gradle Check failure 7b6ed41b889be5f1a13af473ab85631c053309f8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
.github/workflows/new-line.yml
Outdated
@@ -0,0 +1,14 @@ | |||
name: Code Hygiene |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd recommend renaming the file name to match the workflow name, new-line
-> code-hygiene
. In the future you could add addition jobs that scanned for other hygiene related issues.
In log 4411:
The last test failure is caused by a PR merged yesterday that changed the expected warning message by mistake in the commit 07fc06d (of PR #2678), which makes the deprecation warning is not the same as the expected in the test. |
❌ Gradle Check failure 94e63c7a15fbb7e10b06db3cae1386a3621f646e |
Signed-off-by: Owais Kazi <[email protected]>
Signed-off-by: Owais Kazi <[email protected]>
Signed-off-by: Owais Kazi <[email protected]>
Signed-off-by: Owais Kazi <[email protected]>
Signed-off-by: Owais Kazi <[email protected]>
❌ Gradle Check failure 4827228a2b6e274b98a0da5ff508962aaa26f638 |
Signed-off-by: Owais Kazi <[email protected]>
* Added linter to add new line Signed-off-by: Owais Kazi <[email protected]> * Fixed new lines Signed-off-by: Owais Kazi <[email protected]> * Ignore empty files Signed-off-by: Owais Kazi <[email protected]> * Updated DEVELOPER GUIDE Signed-off-by: Owais Kazi <[email protected]> * Renamed workflow file Signed-off-by: Owais Kazi <[email protected]> * Fixed failing tests Signed-off-by: Owais Kazi <[email protected]> (cherry picked from commit 3c5d997)
* Added a new line linter (#2875) * Added linter to add new line Signed-off-by: Owais Kazi <[email protected]> * Fixed new lines Signed-off-by: Owais Kazi <[email protected]> * Ignore empty files Signed-off-by: Owais Kazi <[email protected]> * Updated DEVELOPER GUIDE Signed-off-by: Owais Kazi <[email protected]> * Renamed workflow file Signed-off-by: Owais Kazi <[email protected]> * Fixed failing tests Signed-off-by: Owais Kazi <[email protected]> (cherry picked from commit 3c5d997) * Fixed new lines Signed-off-by: Owais Kazi <[email protected]> Co-authored-by: Owais Kazi <[email protected]>
@owaiskazi19 I'm not going to backport this into 2.0, I think we can let that one be |
Sounds good. Thanks for the review and taking care of the 2.x backport. |
Description
Added a new-line linter to make sure all files end with a single newline. This is a POSIX standard, read more https://stackoverflow.com/questions/729692/why-should-text-files-end-with-a-newline. Thanks @peternied for introducing it.
Issues Resolved
#2857
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.