Skip to content

Check that text files have a final newline - #22819

Merged
AdamBrousseau merged 1 commit into
eclipse-openj9:masterfrom
keithc-ca:newline-at-eof
Oct 24, 2025
Merged

Check that text files have a final newline#22819
AdamBrousseau merged 1 commit into
eclipse-openj9:masterfrom
keithc-ca:newline-at-eof

Conversation

@keithc-ca

Copy link
Copy Markdown
Contributor
  • use tail -c1 $file | wc -l to check for the expected final newline
  • use echo consistently (instead of println)
  • adjust formatting of lists and maps

* use "tail -c1 $file | wc -l" to check for the expected final newline
* use echo consistently (instead of println)
* adjust formatting of lists and maps

Signed-off-by: Keith W. Campbell <keithc@ca.ibm.com>

@AdamBrousseau AdamBrousseau left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

@AdamBrousseau
AdamBrousseau merged commit 89316d7 into eclipse-openj9:master Oct 24, 2025
2 checks passed
@keithc-ca
keithc-ca deleted the newline-at-eof branch October 24, 2025 14:46
@dsouzai

dsouzai commented Oct 24, 2025

Copy link
Copy Markdown
Contributor

@keithc-ca line ending test isn't running after this change, I'm seeing this error

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
WorkflowScript: 47: unexpected token: false @ line 47, column 36.
                           changelog: false

See recent build of https://openj9-jenkins.osuosl.org/job/PullRequest-LineEndingsCheck-OpenJ9/

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