The GitHub Actions job "Java CI" on iceberg.git/checkstyle-newline-after-block 
has failed.
Run started by GitHub user RussellSpitzer (triggered by RussellSpitzer).

Head commit for run:
5b560ba426d3bcaca0c4d0f7eeb16bd5f7542106 / Russell Spitzer 
<[email protected]>
Checkstyle, Spotless: Force newline after closing brace

Uses the following Regex to find violations

(?m)(^[ \t]*\}[ \t]*\n)(?![ \t]*\n)(?![ \t]*\})(?![ \t]*\z)
-----------------------====================================

------------- Match Section ----------------
(?m) — Multiline mode. Makes ^ match the start of every line, not just the 
start of the file.

( — Opens capture group $1 (used by the spotless replacement).

^[ \t]*\} — Match any amount of white space ending in a brace character.

Excludes Javadoc (* {@link Foo}), comments (// something}), and inline 
expressions (new String[] {...}).

[ \t]*\n — Match optional trailing whitespace after }, then the newline ending 
that line.

) — Closes capture group $1. Everything above is "the closing brace line".

============= Look Ahead Section ====================

The three negative lookaheads check what comes next:

(?![ \t]*\n) — The next line is NOT all white-space.  If there's already a 
blank line, the rule is already satisfied — don't flag it or add another.
(?![ \t]*\}) — The next line must NOT start with another }. Consecutive closing 
braces (like the end of nested blocks) don't need blank lines between them.
(?![ \t]*\z) — The next line is NOT EOF. Don't flag or insert a trailing blank 
line at the end of a file.

Report URL: https://github.com/apache/iceberg/actions/runs/22325564615

With regards,
GitHub Actions via GitBox

Reply via email to