Style: Trim trailing whitespace and ensure newline at EOF

Found by apply the file_format checks again via #91597.
This commit is contained in:
Rémi Verschelde 2024-05-08 10:04:47 +02:00
parent 17a81260cb
commit 7d03b1de0b
No known key found for this signature in database
GPG Key ID: C3336907360768E1
54 changed files with 54 additions and 66 deletions

View File

@ -43,4 +43,3 @@ CheckOptions:
- key: readability-braces-around-statements.ShortStatementLines
value: '0'
...

View File

@ -21,4 +21,3 @@ runs:
with:
name: 'godot-api-dump'
path: './godot-api/*'

View File

@ -588,7 +588,7 @@ def build_gles3_header(
fd.write("\t}\n\n")
fd.write("};\n\n")
fd.write("#endif\n\n")
fd.write("#endif\n")
def build_gles3_headers(target, source, env):

View File

@ -1,2 +1 @@
/* Localized versions of Info.plist keys */

View File

@ -5,4 +5,3 @@ deadlock:tests/core/templates/test_command_queue.h
deadlock:modules/text_server_adv/text_server_adv.cpp
deadlock:modules/text_server_fb/text_server_fb.cpp
race:modules/navigation/nav_map.cpp

View File

@ -6,4 +6,3 @@ func test():
var a := Foo.A
var b := a as int + 1
print(b)

View File

@ -3,4 +3,3 @@ const Constants = preload("gdscript_to_preload.notest.gd")
func test():
var a := Constants.A
print(a)

View File

@ -23,4 +23,3 @@ func test():
bar([3])
bar([4])
bar([5])

View File

@ -4,4 +4,3 @@ func test():
# Validated native static call without return value.
Node.print_orphan_nodes()

View File

@ -42,4 +42,3 @@ class GodotProjectManager : GodotEditor() {
// Nothing to do here.. we have yet to select a project to load.
}
}

View File

@ -1955,4 +1955,3 @@ public class GLSurfaceView extends SurfaceView implements SurfaceHolder.Callback
private int mEGLContextClientVersion;
private boolean mPreserveEGLContextOnPause;
}

View File

@ -36,4 +36,3 @@ nexusPublishing {
}
}
}

View File

@ -382,7 +382,7 @@ TEST_CASE_TEMPLATE("[Math] remap", T, float, double) {
CHECK(Math::remap((T)-200.0, (T)-100.0, (T)-200.0, (T)0.0, (T)-1000.0) == doctest::Approx((T)-1000.0));
CHECK(Math::remap((T)-250.0, (T)-100.0, (T)-200.0, (T)0.0, (T)-1000.0) == doctest::Approx((T)-1500.0));
// Note: undefined behaviour can happen when `p_istart == p_istop`. We don't bother testing this as it will
// Note: undefined behavior can happen when `p_istart == p_istop`. We don't bother testing this as it will
// vary between hardware and compilers properly implementing IEEE 754.
}

View File

@ -48,4 +48,3 @@ protected:
};
#endif