diff --git a/CreativeCommons.txt b/CreativeCommons.txt index 60efd96a51d..1b3c7c92156 100644 --- a/CreativeCommons.txt +++ b/CreativeCommons.txt @@ -189,4 +189,4 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. licensed here. There are no understandings, agreements or representations with respect to the Work not specified here. Licensor shall not be bound by any additional provisions that may appear in any communication from You. This License may not be modified without the mutual - written agreement of the Licensor and You. \ No newline at end of file + written agreement of the Licensor and You. diff --git a/buildscripts/idl/tests/compatibility_test_fail/new_generic_argument/generic_argument.idl b/buildscripts/idl/tests/compatibility_test_fail/new_generic_argument/generic_argument.idl index 157ba6cb002..2fcf3667515 100644 --- a/buildscripts/idl/tests/compatibility_test_fail/new_generic_argument/generic_argument.idl +++ b/buildscripts/idl/tests/compatibility_test_fail/new_generic_argument/generic_argument.idl @@ -52,4 +52,4 @@ generic_reply_field_lists: description: "IDL checker provides no guarantees about unstable generic reply fields" fields: unstableGenericReplyField: - forward_from_shards: false \ No newline at end of file + forward_from_shards: false diff --git a/buildscripts/idl/tests/compatibility_test_fail/old_generic_argument/generic_argument.idl b/buildscripts/idl/tests/compatibility_test_fail/old_generic_argument/generic_argument.idl index 8220162ccfa..4f21a7423c6 100644 --- a/buildscripts/idl/tests/compatibility_test_fail/old_generic_argument/generic_argument.idl +++ b/buildscripts/idl/tests/compatibility_test_fail/old_generic_argument/generic_argument.idl @@ -56,4 +56,4 @@ generic_reply_field_lists: description: "IDL checker provides no guarantees about unstable generic reply fields" fields: unstableGenericReplyField: - forward_from_shards: false \ No newline at end of file + forward_from_shards: false diff --git a/buildscripts/idl/tests/compatibility_test_pass/new_generic_argument/generic_argument.idl b/buildscripts/idl/tests/compatibility_test_pass/new_generic_argument/generic_argument.idl index 8aceb008004..150257b05c9 100644 --- a/buildscripts/idl/tests/compatibility_test_pass/new_generic_argument/generic_argument.idl +++ b/buildscripts/idl/tests/compatibility_test_pass/new_generic_argument/generic_argument.idl @@ -58,4 +58,4 @@ generic_reply_field_lists: Removing an unstable reply field should still pass" fields: unstableGenericReplyField: - forward_from_shards: false \ No newline at end of file + forward_from_shards: false diff --git a/buildscripts/idl/tests/compatibility_test_pass/old_generic_argument/generic_argument.idl b/buildscripts/idl/tests/compatibility_test_pass/old_generic_argument/generic_argument.idl index 6f4b37df168..bd3d5a67031 100644 --- a/buildscripts/idl/tests/compatibility_test_pass/old_generic_argument/generic_argument.idl +++ b/buildscripts/idl/tests/compatibility_test_pass/old_generic_argument/generic_argument.idl @@ -59,4 +59,4 @@ generic_reply_field_lists: unstableGenericReplyField: forward_from_shards: false removedUnstableGenericReplyField: - forward_from_shards: false \ No newline at end of file + forward_from_shards: false diff --git a/buildscripts/libdeps/SCHEMA_CHANGE_LOG.txt b/buildscripts/libdeps/SCHEMA_CHANGE_LOG.txt index 4e170dfd6e1..5e61a0b26fa 100644 --- a/buildscripts/libdeps/SCHEMA_CHANGE_LOG.txt +++ b/buildscripts/libdeps/SCHEMA_CHANGE_LOG.txt @@ -1,3 +1,3 @@ 3 removed shim node property 2 flipped edge direction in graph file data -1 initial schema \ No newline at end of file +1 initial schema diff --git a/buildscripts/libdeps/find_symbols.c b/buildscripts/libdeps/find_symbols.c index e6eabea1598..f28d165a1d8 100644 --- a/buildscripts/libdeps/find_symbols.c +++ b/buildscripts/libdeps/find_symbols.c @@ -366,4 +366,4 @@ int main(int argc, char** argv) { clean_up(); exit(0); -} \ No newline at end of file +} diff --git a/buildscripts/libdeps/graph_visualizer_web_stack/setup_node_env.sh b/buildscripts/libdeps/graph_visualizer_web_stack/setup_node_env.sh index 22c2d2295cf..832af8b60d2 100755 --- a/buildscripts/libdeps/graph_visualizer_web_stack/setup_node_env.sh +++ b/buildscripts/libdeps/graph_visualizer_web_stack/setup_node_env.sh @@ -46,4 +46,4 @@ then . "$NVM_DIR/nvm.sh" fi -popd > /dev/null \ No newline at end of file +popd > /dev/null diff --git a/buildscripts/libdeps/graph_visualizer_web_stack/src/EdgeList.js b/buildscripts/libdeps/graph_visualizer_web_stack/src/EdgeList.js index 28226bc6206..69830ce83b1 100644 --- a/buildscripts/libdeps/graph_visualizer_web_stack/src/EdgeList.js +++ b/buildscripts/libdeps/graph_visualizer_web_stack/src/EdgeList.js @@ -258,4 +258,4 @@ const EdgeList = ({ selectedGraph, links, setLinks, linksTrans, loading, setFind ); }; -export default connect(getEdges, { setGraphData, setFindNode, setLinks, setSelectedPath })(withStyles(styles)(EdgeList)); \ No newline at end of file +export default connect(getEdges, { setGraphData, setFindNode, setLinks, setSelectedPath })(withStyles(styles)(EdgeList)); diff --git a/buildscripts/libdeps/graph_visualizer_web_stack/src/NodeList.js b/buildscripts/libdeps/graph_visualizer_web_stack/src/NodeList.js index bdcc5755f43..b3fe5a848c6 100644 --- a/buildscripts/libdeps/graph_visualizer_web_stack/src/NodeList.js +++ b/buildscripts/libdeps/graph_visualizer_web_stack/src/NodeList.js @@ -174,4 +174,4 @@ const NodeList = ({ selectedGraph, nodes, searchedNodes, loading, setFindNode, s ); }; -export default connect(getNodes, { setFindNode, setNodes, setNodeInfos, setLinks, setLinksTrans, setLoading, setListSearchTerm, updateCheckbox, updateSelected, setGraphData })(NodeList); \ No newline at end of file +export default connect(getNodes, { setFindNode, setNodes, setNodeInfos, setLinks, setLinksTrans, setLoading, setListSearchTerm, updateCheckbox, updateSelected, setGraphData })(NodeList); diff --git a/buildscripts/libdeps/graph_visualizer_web_stack/src/redux/listSearchTerm.js b/buildscripts/libdeps/graph_visualizer_web_stack/src/redux/listSearchTerm.js index df288f4af47..2d959451125 100644 --- a/buildscripts/libdeps/graph_visualizer_web_stack/src/redux/listSearchTerm.js +++ b/buildscripts/libdeps/graph_visualizer_web_stack/src/redux/listSearchTerm.js @@ -13,4 +13,4 @@ export const listSearchTerm = (state = initialState, action) => { export const setListSearchTerm = (listSearchTerm) => ({ type: "setListSearchTerm", payload: listSearchTerm, -}); \ No newline at end of file +}); diff --git a/buildscripts/libdeps/graph_visualizer_web_stack/src/setupProxy.js b/buildscripts/libdeps/graph_visualizer_web_stack/src/setupProxy.js index f9c1a14588f..31f23ca4341 100644 --- a/buildscripts/libdeps/graph_visualizer_web_stack/src/setupProxy.js +++ b/buildscripts/libdeps/graph_visualizer_web_stack/src/setupProxy.js @@ -13,4 +13,4 @@ module.exports = function(app) { secure: false, }) ); -}; \ No newline at end of file +}; diff --git a/distsrc/LICENSE.OpenSSL b/distsrc/LICENSE.OpenSSL index 84300a42576..b1ac5b7c7cf 100644 --- a/distsrc/LICENSE.OpenSSL +++ b/distsrc/LICENSE.OpenSSL @@ -113,4 +113,4 @@ Original SSLeay License * derivative of this code cannot be changed. i.e. this code cannot simply be * copied and put under another distribution licence * [including the GNU Public Licence.] - */ \ No newline at end of file + */ diff --git a/distsrc/THIRD-PARTY-NOTICES b/distsrc/THIRD-PARTY-NOTICES index 5f47c9cb329..4ce798aa6e8 100644 --- a/distsrc/THIRD-PARTY-NOTICES +++ b/distsrc/THIRD-PARTY-NOTICES @@ -2441,4 +2441,4 @@ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -END \ No newline at end of file +END diff --git a/docs/command_dispatch.md b/docs/command_dispatch.md index eb8ff324f6b..4b2391afbd2 100644 --- a/docs/command_dispatch.md +++ b/docs/command_dispatch.md @@ -82,4 +82,4 @@ For details on transport internals, including ingress networking, see [this docu [transaction_router_h]: ../src/mongo/s/transaction_router.h [commands_h]: ../src/mongo/db/commands.h [template_method_pattern]: https://en.wikipedia.org/wiki/Template_method_pattern -[transport_internals]: ../src/mongo/transport/README.md \ No newline at end of file +[transport_internals]: ../src/mongo/transport/README.md diff --git a/docs/egress_networking.md b/docs/egress_networking.md index cd5d4c098f4..65108b479f7 100644 --- a/docs/egress_networking.md +++ b/docs/egress_networking.md @@ -38,4 +38,4 @@ document][transport_internals]. [network_interface_h]: ../src/mongo/executor/network_interface.h [dbclient_rs_h]: ../src/mongo/client/dbclient_rs.h [automatic_failover]: https://docs.mongodb.com/manual/replication/#automatic-failover -[transport_internals]: ../src/mongo/transport/README.md \ No newline at end of file +[transport_internals]: ../src/mongo/transport/README.md diff --git a/docs/primary_only_service.md b/docs/primary_only_service.md index 415d9da5100..269af5671c0 100644 --- a/docs/primary_only_service.md +++ b/docs/primary_only_service.md @@ -103,4 +103,4 @@ responsible for deleting its state document, such logic needs to be careful as t document is deleted, the corresponding PrimaryOnlyService is no longer keeping that Instance alive. If an Instance has any additional logic or internal state to update after deleting its state document, it must extend its own lifetime by capturing a shared_ptr to itself by calling -shared_from_this() before deleting its state document. \ No newline at end of file +shared_from_this() before deleting its state document. diff --git a/docs/testing/fsm_concurrency_testing_framework.md b/docs/testing/fsm_concurrency_testing_framework.md index c8dd4b0d290..88b94c70abe 100644 --- a/docs/testing/fsm_concurrency_testing_framework.md +++ b/docs/testing/fsm_concurrency_testing_framework.md @@ -533,4 +533,4 @@ and OwnColl assertions. fewer than 20% of the threads fail while spawning we allow the non-failed threads to continue with the test. The 20% threshold is somewhat arbitrary; the goal is to abort if "mostly all" of the threads failed but to tolerate "a - few" threads failing. \ No newline at end of file + few" threads failing. diff --git a/etc/pip/components/build_metrics.req b/etc/pip/components/build_metrics.req index 05066289e18..288240c805b 100644 --- a/etc/pip/components/build_metrics.req +++ b/etc/pip/components/build_metrics.req @@ -2,4 +2,4 @@ psutil jsonschema memory_profiler puremagic -tabulate \ No newline at end of file +tabulate diff --git a/jstests/aggregation/accumulators/first_n_last_n.js b/jstests/aggregation/accumulators/first_n_last_n.js index ee1639d0540..f133180125f 100644 --- a/jstests/aggregation/accumulators/first_n_last_n.js +++ b/jstests/aggregation/accumulators/first_n_last_n.js @@ -269,4 +269,4 @@ assert.commandFailedWithCode( "aggregate", {pipeline: [{$group: {_id: {'st': '$state'}, sales: {$firstN: {n: 2}}}}], cursor: {}}), 5787907); -})(); \ No newline at end of file +})(); diff --git a/jstests/aggregation/bugs/server72651.js b/jstests/aggregation/bugs/server72651.js index b4100bdc32c..e1f0b57ffcd 100644 --- a/jstests/aggregation/bugs/server72651.js +++ b/jstests/aggregation/bugs/server72651.js @@ -9,4 +9,4 @@ assert.commandWorked(c.insert({_id: 0, a: 1})); assert.eq( [], c.aggregate([{$project: {"b": 1}}, {$match: {$expr: {$getField: {$literal: "a"}}}}]).toArray()); -})(); \ No newline at end of file +})(); diff --git a/jstests/aggregation/bugs/server75670.js b/jstests/aggregation/bugs/server75670.js index 932c04d7b4d..60bdcbb48d2 100644 --- a/jstests/aggregation/bugs/server75670.js +++ b/jstests/aggregation/bugs/server75670.js @@ -27,4 +27,4 @@ assert(resultsEq( ]) .toArray(), )); -})(); \ No newline at end of file +})(); diff --git a/jstests/aggregation/bugs/server7768.js b/jstests/aggregation/bugs/server7768.js index b7ce2669e3a..e33739ea241 100644 --- a/jstests/aggregation/bugs/server7768.js +++ b/jstests/aggregation/bugs/server7768.js @@ -20,4 +20,4 @@ let res = db.runCommand({ assert.commandWorked(res); assert.eq(res.cursor.firstBatch, [{foo: 1}]); -}()); \ No newline at end of file +}()); diff --git a/jstests/aggregation/expressions/n_expressions.js b/jstests/aggregation/expressions/n_expressions.js index 9798488900e..10213dc9683 100644 --- a/jstests/aggregation/expressions/n_expressions.js +++ b/jstests/aggregation/expressions/n_expressions.js @@ -56,4 +56,4 @@ testExpr({$minN: args}, [3, 4]); testExpr({$maxN: args}, [5, 4]); testExpr({$firstN: args}, [3, 4]); testExpr({$lastN: args}, [4, 5]); -})(); \ No newline at end of file +})(); diff --git a/jstests/aggregation/expressions/unary_numeric.js b/jstests/aggregation/expressions/unary_numeric.js index 4c01bbdc750..90527cc4a54 100644 --- a/jstests/aggregation/expressions/unary_numeric.js +++ b/jstests/aggregation/expressions/unary_numeric.js @@ -315,4 +315,4 @@ assertErrorCode(coll, [{$project: {a: {$exp: "$x"}}}], 28765); assertErrorCode(coll, [{$project: {a: {$log10: "$x"}}}], 28765); assertErrorCode(coll, [{$project: {a: {$ln: "$x"}}}], 28765); assertErrorCode(coll, [{$project: {a: {$sqrt: "$x"}}}], 28765); -}()); \ No newline at end of file +}()); diff --git a/jstests/aggregation/extras/merge_helpers.js b/jstests/aggregation/extras/merge_helpers.js index 0475f3d3d1b..4ef88541ab6 100644 --- a/jstests/aggregation/extras/merge_helpers.js +++ b/jstests/aggregation/extras/merge_helpers.js @@ -86,4 +86,4 @@ function assertMergeSucceedsWithExpectedUniqueIndex( // recreation in the sharded collections passthrough suites. function dropWithoutImplicitRecreate(collName) { db.runCommand({drop: collName}); -} \ No newline at end of file +} diff --git a/jstests/aggregation/no_output_to_system.js b/jstests/aggregation/no_output_to_system.js index 2f966e0bea4..594db28232c 100644 --- a/jstests/aggregation/no_output_to_system.js +++ b/jstests/aggregation/no_output_to_system.js @@ -50,4 +50,4 @@ if (!FixtureHelpers.isMongos(db)) { // $out allows for the source collection to be the same as the destination collection. assertErrorCode(outputToLocal, {$out: outputToLocal.getName()}, 31321); } -})(); \ No newline at end of file +})(); diff --git a/jstests/aggregation/sources/group/group_large_documents.js b/jstests/aggregation/sources/group/group_large_documents.js index 324da85e5d6..d15ffccedd2 100644 --- a/jstests/aggregation/sources/group/group_large_documents.js +++ b/jstests/aggregation/sources/group/group_large_documents.js @@ -34,4 +34,4 @@ for (let preventProjectPushdown of [false, true]) { assert(arrayEq(results, [{a: 2}]), "Pipeline:\n" + tojson(pipeline) + "Actual results:\n" + tojson(results)); } -}()); \ No newline at end of file +}()); diff --git a/jstests/aggregation/sources/indexStats/verify_index_stats_output.js b/jstests/aggregation/sources/indexStats/verify_index_stats_output.js index f19ee681b60..c8d7300bef6 100644 --- a/jstests/aggregation/sources/indexStats/verify_index_stats_output.js +++ b/jstests/aggregation/sources/indexStats/verify_index_stats_output.js @@ -110,4 +110,4 @@ let finishedOutput = coll.aggregate([{$indexStats: {}}, {$match: {name: indexNam for (const indexStats of finishedOutput) { assert(!indexStats.hasOwnProperty("building"), tojson(indexStats)); } -})(); \ No newline at end of file +})(); diff --git a/jstests/aggregation/sources/lookup/lookup_large_documents.js b/jstests/aggregation/sources/lookup/lookup_large_documents.js index f645fbbdc26..9778b04dc79 100644 --- a/jstests/aggregation/sources/lookup/lookup_large_documents.js +++ b/jstests/aggregation/sources/lookup/lookup_large_documents.js @@ -35,4 +35,4 @@ for (let preventProjectPushdown of [false, true]) { assert(arrayEq(results, [{foo: 3}]), "Pipeline:\n" + tojson(pipeline) + "Actual results:\n" + tojson(results)); } -}()); \ No newline at end of file +}()); diff --git a/jstests/aggregation/sources/merge/merge_to_same_collection.js b/jstests/aggregation/sources/merge/merge_to_same_collection.js index 4e90036f646..cc2fd7940a2 100644 --- a/jstests/aggregation/sources/merge/merge_to_same_collection.js +++ b/jstests/aggregation/sources/merge/merge_to_same_collection.js @@ -30,4 +30,4 @@ assert.doesNotThrow(() => coll.aggregate(pipeline)); assertArrayEq( {actual: coll.find().toArray(), expected: [{_id: 0, a: 3}, {_id: 1, a: 1}, {_id: 2, a: 2}]}); -}()); \ No newline at end of file +}()); diff --git a/jstests/aggregation/sources/setWindowFields/count.js b/jstests/aggregation/sources/setWindowFields/count.js index 13fbe83c537..89e2245704f 100644 --- a/jstests/aggregation/sources/setWindowFields/count.js +++ b/jstests/aggregation/sources/setWindowFields/count.js @@ -124,4 +124,4 @@ verifyResults(result, function(num, baseObj) { } return baseObj; }); -})(); \ No newline at end of file +})(); diff --git a/jstests/aggregation/sources/setWindowFields/partition.js b/jstests/aggregation/sources/setWindowFields/partition.js index db0b5bd39dc..dd5e08c168a 100644 --- a/jstests/aggregation/sources/setWindowFields/partition.js +++ b/jstests/aggregation/sources/setWindowFields/partition.js @@ -88,4 +88,4 @@ assert(resultsEq(res.toArray(), [ {int_field: 0, count: 1}, {other_field: 0, count: 1} ])); -})(); \ No newline at end of file +})(); diff --git a/jstests/aggregation/sources/setWindowFields/rank.js b/jstests/aggregation/sources/setWindowFields/rank.js index 75662829d60..34fb5b6fd0e 100644 --- a/jstests/aggregation/sources/setWindowFields/rank.js +++ b/jstests/aggregation/sources/setWindowFields/rank.js @@ -110,4 +110,4 @@ verifyResults(result, function(num, baseObj) { }); result = runRankBasedAccumulator({double: 1}, {$documentNumber: {}}); verifyResults(result, noTieFunc); -})(); \ No newline at end of file +})(); diff --git a/jstests/aggregation/sources/setWindowFields/shift.js b/jstests/aggregation/sources/setWindowFields/shift.js index 6c3f38a8226..27aeaf9a6a1 100644 --- a/jstests/aggregation/sources/setWindowFields/shift.js +++ b/jstests/aggregation/sources/setWindowFields/shift.js @@ -334,4 +334,4 @@ assert.commandFailedWithCode(coll.runCommand({ cursor: {} }), ErrorCodes.FailedToParse); -})(); \ No newline at end of file +})(); diff --git a/jstests/aggregation/split_match_and_swap_with_sort.js b/jstests/aggregation/split_match_and_swap_with_sort.js index 53b5bcf97d4..d2b1a205fc9 100644 --- a/jstests/aggregation/split_match_and_swap_with_sort.js +++ b/jstests/aggregation/split_match_and_swap_with_sort.js @@ -66,4 +66,4 @@ assert.commandWorked( collScanStage.filter, collScanStage); } -}()); \ No newline at end of file +}()); diff --git a/jstests/auth/change_stream_pre_image_coll_role_auth.js b/jstests/auth/change_stream_pre_image_coll_role_auth.js index fcbeec157b6..a32eb716614 100644 --- a/jstests/auth/change_stream_pre_image_coll_role_auth.js +++ b/jstests/auth/change_stream_pre_image_coll_role_auth.js @@ -199,4 +199,4 @@ assertActionAuthorized(removePreImage.bind(null, rootPrimary), true); rootPrimary.logout(); replSetTest.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/auth/listcommands_preauth_mongod.js b/jstests/auth/listcommands_preauth_mongod.js index f049e75de7a..bf7ca437c6f 100644 --- a/jstests/auth/listcommands_preauth_mongod.js +++ b/jstests/auth/listcommands_preauth_mongod.js @@ -9,4 +9,4 @@ load("jstests/auth/listcommands_preauth_base.js"); const mongod = MongoRunner.runMongod({auth: ""}); runTest(mongod); MongoRunner.stopMongod(mongod); -})(); \ No newline at end of file +})(); diff --git a/jstests/auth/listcommands_preauth_sharded_cluster.js b/jstests/auth/listcommands_preauth_sharded_cluster.js index 76115d26f5e..325f27cf479 100644 --- a/jstests/auth/listcommands_preauth_sharded_cluster.js +++ b/jstests/auth/listcommands_preauth_sharded_cluster.js @@ -11,4 +11,4 @@ const st = new ShardingTest({shards: 1, mongos: 1, config: 1, other: {keyFile: 'jstests/libs/key1'}}); runTest(st.s0); st.stop(); -})(); \ No newline at end of file +})(); diff --git a/jstests/auth/readIndex.js b/jstests/auth/readIndex.js index 53c5d63ecba..517415d865d 100644 --- a/jstests/auth/readIndex.js +++ b/jstests/auth/readIndex.js @@ -19,4 +19,4 @@ var indexList = testDB.foo.getIndexes().filter(function(idx) { }); assert.eq(1, indexList.length, tojson(indexList)); assert.docEq(indexList[0].key, {a: 1}, tojson(indexList)); -MongoRunner.stopMongod(conn, null, {user: 'root', pwd: 'password'}); \ No newline at end of file +MongoRunner.stopMongod(conn, null, {user: 'root', pwd: 'password'}); diff --git a/jstests/auth/repl_require_keyfile.js b/jstests/auth/repl_require_keyfile.js index fc5977a2d1d..6753c8282d3 100644 --- a/jstests/auth/repl_require_keyfile.js +++ b/jstests/auth/repl_require_keyfile.js @@ -14,4 +14,4 @@ const mongoOutput = rawMongoProgramOutput(); assert(mongoOutput.indexOf( "security.keyFile is required when authorization is enabled with replica sets") >= 0, "Expected error message about missing keyFile on startup"); -})(); \ No newline at end of file +})(); diff --git a/jstests/auth/restore_role_create_collection_via_apply_ops.js b/jstests/auth/restore_role_create_collection_via_apply_ops.js index be30be7db47..bcfc57b03b5 100644 --- a/jstests/auth/restore_role_create_collection_via_apply_ops.js +++ b/jstests/auth/restore_role_create_collection_via_apply_ops.js @@ -58,4 +58,4 @@ function runTest(conn) { const standalone = MongoRunner.runMongod({auth: ''}); runTest(standalone); MongoRunner.stopMongod(standalone); -})(); \ No newline at end of file +})(); diff --git a/jstests/auth/user_cache_acquisition_stats.js b/jstests/auth/user_cache_acquisition_stats.js index a2f9996d127..2a2e36d73b7 100644 --- a/jstests/auth/user_cache_acquisition_stats.js +++ b/jstests/auth/user_cache_acquisition_stats.js @@ -150,4 +150,4 @@ function runTest(conn, mode) { jsTest.log('SUCCESS user_cache_acquisition_stats.js Sharding'); st.stop(); } -})(); \ No newline at end of file +})(); diff --git a/jstests/change_streams/error_label.js b/jstests/change_streams/error_label.js index 31b38f2f7cb..f117e9d2184 100644 --- a/jstests/change_streams/error_label.js +++ b/jstests/change_streams/error_label.js @@ -30,4 +30,4 @@ const err = assert.throws(function() { assert.commandFailedWithCode(err, ErrorCodes.ChangeStreamFatalError); assert("errorLabels" in err, err); assert.contains("NonResumableChangeStreamError", err.errorLabels, err); -}()); \ No newline at end of file +}()); diff --git a/jstests/change_streams/generate_v1_resume_token.js b/jstests/change_streams/generate_v1_resume_token.js index 05ebc2f6d92..d3600ac1f80 100644 --- a/jstests/change_streams/generate_v1_resume_token.js +++ b/jstests/change_streams/generate_v1_resume_token.js @@ -35,4 +35,4 @@ delete v2Event._id; assert.docEq(v1Event, v2Event); assert.neq(v1ResumeToken, v2ResumeToken, {v1ResumeToken, v2ResumeToken}); -})(); \ No newline at end of file +})(); diff --git a/jstests/change_streams/lookup_pit_pre_and_post_image_in_transaction.js b/jstests/change_streams/lookup_pit_pre_and_post_image_in_transaction.js index 7c5b274cd41..0f3be92b5c8 100644 --- a/jstests/change_streams/lookup_pit_pre_and_post_image_in_transaction.js +++ b/jstests/change_streams/lookup_pit_pre_and_post_image_in_transaction.js @@ -145,4 +145,4 @@ if (!FixtureHelpers.isMongos(testDB)) { {_id: 6, operationType: "delete", preImage: {_id: 6, a: 1}}, ]); } -})(); \ No newline at end of file +})(); diff --git a/jstests/change_streams/oplog_rewrite/projection_changes_type.js b/jstests/change_streams/oplog_rewrite/projection_changes_type.js index b463444cea9..c6a07c00078 100644 --- a/jstests/change_streams/oplog_rewrite/projection_changes_type.js +++ b/jstests/change_streams/oplog_rewrite/projection_changes_type.js @@ -84,4 +84,4 @@ for (let fieldName of fieldsToInclude) { // Test projection of all accumulated fields. assertProjection(Object.assign(accumulatedProjection, currentFieldProjection)); } -})(); \ No newline at end of file +})(); diff --git a/jstests/change_streams/pipeline_style_updates.js b/jstests/change_streams/pipeline_style_updates.js index 4b9f56842df..75c0e5fb1cf 100644 --- a/jstests/change_streams/pipeline_style_updates.js +++ b/jstests/change_streams/pipeline_style_updates.js @@ -72,4 +72,4 @@ expected = { testPipelineStyleUpdate(updatePipeline, expected, "update"); cst.cleanUp(); -}()); \ No newline at end of file +}()); diff --git a/jstests/change_streams/resume_from_high_water_mark_token.js b/jstests/change_streams/resume_from_high_water_mark_token.js index e0004c2dd25..4d5c59eced0 100644 --- a/jstests/change_streams/resume_from_high_water_mark_token.js +++ b/jstests/change_streams/resume_from_high_water_mark_token.js @@ -263,4 +263,4 @@ assert.soon(() => { return csCursor.hasNext() && csCursor.next().operationType === "invalidate"; }); csCursor.close(); -})(); \ No newline at end of file +})(); diff --git a/jstests/client_encrypt/fle_auto_decrypt.js b/jstests/client_encrypt/fle_auto_decrypt.js index 650125e0fb7..60c20b899d2 100644 --- a/jstests/client_encrypt/fle_auto_decrypt.js +++ b/jstests/client_encrypt/fle_auto_decrypt.js @@ -71,4 +71,4 @@ const clientSideFLEOptionsBypassAutoEncrypt = { test(conn, clientSideFLEOptionsBypassAutoEncrypt, keyId); MongoRunner.stopMongod(conn); -}()); \ No newline at end of file +}()); diff --git a/jstests/client_encrypt/fle_key_faults.js b/jstests/client_encrypt/fle_key_faults.js index 204ee277ec5..c57f5ff372b 100644 --- a/jstests/client_encrypt/fle_key_faults.js +++ b/jstests/client_encrypt/fle_key_faults.js @@ -82,4 +82,4 @@ testFaults((keyId, shell) => { }); MongoRunner.stopMongod(conn); -}()); \ No newline at end of file +}()); diff --git a/jstests/client_encrypt/fle_keys.js b/jstests/client_encrypt/fle_keys.js index 93fb0000478..75eaa0889b8 100644 --- a/jstests/client_encrypt/fle_keys.js +++ b/jstests/client_encrypt/fle_keys.js @@ -75,4 +75,4 @@ keyVault.createKey("local", ['mongoKey3']); assert.eq(3, keyVault.getKeys().itcount()); MongoRunner.stopMongod(conn); -}()); \ No newline at end of file +}()); diff --git a/jstests/core/api/api_version_create.js b/jstests/core/api/api_version_create.js index e3a4ed00f66..f42dfd2c1b5 100644 --- a/jstests/core/api/api_version_create.js +++ b/jstests/core/api/api_version_create.js @@ -36,4 +36,4 @@ assert.commandFailedWithCode(testDB.runCommand({ apiStrict: true, }), ErrorCodes.InvalidOptions); -})(); \ No newline at end of file +})(); diff --git a/jstests/core/covered_query_with_sort.js b/jstests/core/covered_query_with_sort.js index 2f299c55d13..38cec69bf2d 100644 --- a/jstests/core/covered_query_with_sort.js +++ b/jstests/core/covered_query_with_sort.js @@ -40,4 +40,4 @@ assert.neq(ixScanStage, null, plan); const results = buildQuery().toArray(); assert.eq(results, [{y: 0, x: 1}, {y: 0, x: 0}], results); -}()); \ No newline at end of file +}()); diff --git a/jstests/core/ddl/collection_uuid_index_commands.js b/jstests/core/ddl/collection_uuid_index_commands.js index 85c9f0a9124..f677a82aa81 100644 --- a/jstests/core/ddl/collection_uuid_index_commands.js +++ b/jstests/core/ddl/collection_uuid_index_commands.js @@ -104,4 +104,4 @@ const testCommand = function(cmd, cmdObj) { testCommand("createIndexes", {createIndexes: "", indexes: [{name: "x_1", key: {x: 1}}]}); testCommand("dropIndexes", {dropIndexes: "", index: {y: 1}}); -})(); \ No newline at end of file +})(); diff --git a/jstests/core/ddl/create_index_helper_validation.js b/jstests/core/ddl/create_index_helper_validation.js index 1b11a50c6ca..434f2d29dbb 100644 --- a/jstests/core/ddl/create_index_helper_validation.js +++ b/jstests/core/ddl/create_index_helper_validation.js @@ -26,4 +26,4 @@ assert.throws(() => coll.createIndex( /* commitQuorum */ "majority", {background: true}, {unique: true})); -}()); \ No newline at end of file +}()); diff --git a/jstests/core/geo_parse_err.js b/jstests/core/geo_parse_err.js index 73bc451bd7c..a03d194932a 100644 --- a/jstests/core/geo_parse_err.js +++ b/jstests/core/geo_parse_err.js @@ -121,4 +121,4 @@ err = t.insert({ }); assert.includes(err.getWriteError().errmsg, "Element 1 of \"geometries\" must be an object, instead got type double:"); -})(); \ No newline at end of file +})(); diff --git a/jstests/core/index/hashed/hashed_index_queries.js b/jstests/core/index/hashed/hashed_index_queries.js index 54044855cc0..9212b0bb3ec 100644 --- a/jstests/core/index/hashed/hashed_index_queries.js +++ b/jstests/core/index/hashed/hashed_index_queries.js @@ -133,4 +133,4 @@ validateCountCmdOutputAndPlan({ expectedOutput: 1, expectedStages: ["IXSCAN", "FETCH"] }); -})(); \ No newline at end of file +})(); diff --git a/jstests/core/index/hashed/hashed_index_with_arrays.js b/jstests/core/index/hashed/hashed_index_with_arrays.js index 8d6cc157eb6..b332d7d10ab 100644 --- a/jstests/core/index/hashed/hashed_index_with_arrays.js +++ b/jstests/core/index/hashed/hashed_index_with_arrays.js @@ -73,4 +73,4 @@ assert.commandFailedWithCode(coll.insert({a: [1], b: 6}), 16766); // Array insertion allowed when the document doesn't match the partial filter predication. assert.commandWorked(coll.insert({a: [1], b: 1})); -})(); \ No newline at end of file +})(); diff --git a/jstests/core/index/indexg.js b/jstests/core/index/indexg.js index 486f4be0ebe..f8f466d6495 100644 --- a/jstests/core/index/indexg.js +++ b/jstests/core/index/indexg.js @@ -10,4 +10,4 @@ doit = function() { }; doit(); f.createIndex({list: 1}); -doit(); \ No newline at end of file +doit(); diff --git a/jstests/core/index/indexl.js b/jstests/core/index/indexl.js index cde169eda71..d372c770574 100644 --- a/jstests/core/index/indexl.js +++ b/jstests/core/index/indexl.js @@ -24,4 +24,4 @@ t.drop(); test(t); t.drop(); t.createIndex({a: 1}); -test(t); \ No newline at end of file +test(t); diff --git a/jstests/core/index/useindexonobjgtlt.js b/jstests/core/index/useindexonobjgtlt.js index 7b393de7c2f..506618e16c6 100644 --- a/jstests/core/index/useindexonobjgtlt.js +++ b/jstests/core/index/useindexonobjgtlt.js @@ -9,4 +9,4 @@ assert(db.factories.find().count()); assert.eq(1, db.factories.find({metro: {city: "New York", state: "NY"}}).hint({metro: 1}).count()); -assert.eq(1, db.factories.find({metro: {$gte: {city: "New York"}}}).hint({metro: 1}).count()); \ No newline at end of file +assert.eq(1, db.factories.find({metro: {$gte: {city: "New York"}}}).hint({metro: 1}).count()); diff --git a/jstests/core/json1.js b/jstests/core/json1.js index 731bef9fcdc..31b2794c9a9 100644 --- a/jstests/core/json1.js +++ b/jstests/core/json1.js @@ -79,4 +79,4 @@ x = { assert.eq( JSON.stringify(x), - '{"data_binary":{"$binary":"VG8gYmUgb3Igbm90IHRvIGJlLi4uIFRoYXQgaXMgdGhlIHF1ZXN0aW9uLg==","$type":"00"},"data_timestamp":{"$timestamp":{"t":987654321,"i":0}},"data_regex":{"$regex":"^acme","$options":"i"},"data_oid":{"$oid":"579a70d9e249393f153b5bc1"},"data_ref":{"$ref":"test","$id":"579a70d9e249393f153b5bc1"},"data_minkey":{"$minKey":1},"data_maxkey":{"$maxKey":1},"data_numberlong":{"$numberLong":"12345"},"data_numberint":5,"data_numberdecimal":{"$numberDecimal":"3.14000000000000"}}'); \ No newline at end of file + '{"data_binary":{"$binary":"VG8gYmUgb3Igbm90IHRvIGJlLi4uIFRoYXQgaXMgdGhlIHF1ZXN0aW9uLg==","$type":"00"},"data_timestamp":{"$timestamp":{"t":987654321,"i":0}},"data_regex":{"$regex":"^acme","$options":"i"},"data_oid":{"$oid":"579a70d9e249393f153b5bc1"},"data_ref":{"$ref":"test","$id":"579a70d9e249393f153b5bc1"},"data_minkey":{"$minKey":1},"data_maxkey":{"$maxKey":1},"data_numberlong":{"$numberLong":"12345"},"data_numberint":5,"data_numberdecimal":{"$numberDecimal":"3.14000000000000"}}'); diff --git a/jstests/core/mod_overflow.js b/jstests/core/mod_overflow.js index 77f0a68ef3b..8481988b403 100644 --- a/jstests/core/mod_overflow.js +++ b/jstests/core/mod_overflow.js @@ -42,4 +42,4 @@ for (let divisor of [-1.0, NumberInt("-1"), NumberLong("-1"), NumberDecimal("-1" .aggregate([{$project: {val: 1, modVal: {$mod: ["$val", divisor]}}}, {$sort: {_id: 1}}]) .toArray()); } -})(); \ No newline at end of file +})(); diff --git a/jstests/core/query/expr/expr_valid_positions.js b/jstests/core/query/expr/expr_valid_positions.js index cd3ae2bf917..83529eb5572 100644 --- a/jstests/core/query/expr/expr_valid_positions.js +++ b/jstests/core/query/expr/expr_valid_positions.js @@ -20,4 +20,4 @@ assert.throws(function() { assert.throws(function() { coll.find({a: {$_internalSchemaObjectMatch: {$expr: {$eq: ["$foo", "$bar"]}}}}).itcount(); }); -}()); \ No newline at end of file +}()); diff --git a/jstests/core/query/in/in7.js b/jstests/core/query/in/in7.js index 2f6c9e3ff1a..78caf6a85f1 100644 --- a/jstests/core/query/in/in7.js +++ b/jstests/core/query/in/in7.js @@ -20,4 +20,4 @@ assert.throws(function() { // NOTE Above we don't check cases like {b:2,$elemMatch:{b:3,4}} - generally // we assume that the first key is $elemMatch if any key is, and validating -// every key is expensive in some cases. \ No newline at end of file +// every key is expensive in some cases. diff --git a/jstests/core/query/internal_hash_eq/expr_rewrites.js b/jstests/core/query/internal_hash_eq/expr_rewrites.js index f13bbb55b96..af3bc7ba89c 100644 --- a/jstests/core/query/internal_hash_eq/expr_rewrites.js +++ b/jstests/core/query/internal_hash_eq/expr_rewrites.js @@ -170,4 +170,4 @@ function assertExplainIxscan(explainPlan, expectedIndexSpec, expectedKeysExamine // We couldn't create a tight bound for the index scan as the index is not hashed. assertExplainIxscan(explainPlan, indexSpec, 3 /* keyExamined */); })(); -})(); \ No newline at end of file +})(); diff --git a/jstests/core/query/js/js_jit.js b/jstests/core/query/js/js_jit.js index 72290d45758..110d07c0312 100644 --- a/jstests/core/query/js/js_jit.js +++ b/jstests/core/query/js/js_jit.js @@ -37,4 +37,4 @@ function testDBQuery() { testDBCollection(); testDB(); testDBQuery(); -})(); \ No newline at end of file +})(); diff --git a/jstests/core/query/null_field_name.js b/jstests/core/query/null_field_name.js index f90ce65cc87..58d6441ce1c 100644 --- a/jstests/core/query/null_field_name.js +++ b/jstests/core/query/null_field_name.js @@ -5,4 +5,4 @@ assert.throws(function() { assert.throws(function() { Object.bsonsize({"\0asdf": 1}); -}, [], "null char in field name"); \ No newline at end of file +}, [], "null char in field name"); diff --git a/jstests/core/query/or/orb.js b/jstests/core/query/or/orb.js index aa75bb97e0b..1c4a65ad912 100644 --- a/jstests/core/query/or/orb.js +++ b/jstests/core/query/or/orb.js @@ -15,4 +15,4 @@ t.createIndex({a: 1, b: -1}); assert.eq.automsg("1", "t.count( {$or: [ { a: { $gt:0,$lt:2 } }, { a: { $gt:-1,$lt:3 } } ] } )"); assert.eq.automsg( - "1", "t.count( {$or: [ { a:1, b: { $gt:0,$lt:2 } }, { a:1, b: { $gt:-1,$lt:3 } } ] } )"); \ No newline at end of file + "1", "t.count( {$or: [ { a:1, b: { $gt:0,$lt:2 } }, { a:1, b: { $gt:-1,$lt:3 } } ] } )"); diff --git a/jstests/core/query/regex/regex7.js b/jstests/core/query/regex/regex7.js index c9c5454dbc5..d89f914af4a 100644 --- a/jstests/core/query/regex/regex7.js +++ b/jstests/core/query/regex/regex7.js @@ -23,4 +23,4 @@ assert.eq(/^b/, t.findOne({r: /^b/}).r, '3 1 b'); assert.eq(1, t.count({r: /^b/}), '3 2 b'); t.insert({r: "a"}); -assert.eq(2, t.count({r: /^a/}), 'c'); \ No newline at end of file +assert.eq(2, t.count({r: /^a/}), 'c'); diff --git a/jstests/core/query/sort/sortf.js b/jstests/core/query/sort/sortf.js index 47c6a27ed9f..b2506eff663 100644 --- a/jstests/core/query/sort/sortf.js +++ b/jstests/core/query/sort/sortf.js @@ -21,4 +21,4 @@ for (i = 0; i < 5; ++i) { } assert.eq(5, t.find({a: 1}).sort({b: 1}).itcount()); -t.drop(); \ No newline at end of file +t.drop(); diff --git a/jstests/core/query/type/type2.js b/jstests/core/query/type/type2.js index d93d313d60f..b2b094d0652 100644 --- a/jstests/core/query/type/type2.js +++ b/jstests/core/query/type/type2.js @@ -16,4 +16,4 @@ function test() { test(); t.createIndex({a: 1}); -test(); \ No newline at end of file +test(); diff --git a/jstests/core/query/type/type_operator_on_missing_values.js b/jstests/core/query/type/type_operator_on_missing_values.js index 9a67b23b882..10130a930fb 100644 --- a/jstests/core/query/type/type_operator_on_missing_values.js +++ b/jstests/core/query/type/type_operator_on_missing_values.js @@ -27,4 +27,4 @@ for (const type of bsonTypes) { results = coll.find({a: {$not: {$type: type}}}).sort({_id: 1}).toArray(); assert.eq(results, documentList); } -}()); \ No newline at end of file +}()); diff --git a/jstests/core/server22053.js b/jstests/core/server22053.js index d803c732b86..5c93f60faae 100644 --- a/jstests/core/server22053.js +++ b/jstests/core/server22053.js @@ -16,4 +16,4 @@ assert.eq(3, doc['mys'][2]); assert.eq(undefined, doc['mys'][3]); assert.eq(undefined, doc['mys'][4]); assert.eq(6, doc['mys'][5]); -}()); \ No newline at end of file +}()); diff --git a/jstests/core/shell/collection_save.js b/jstests/core/shell/collection_save.js index d375aa9f31e..fb3e53b756d 100644 --- a/jstests/core/shell/collection_save.js +++ b/jstests/core/shell/collection_save.js @@ -32,4 +32,4 @@ assert.throws(() => coll.save("The answer to life, the universe and everything") assert.throws(() => coll.save([{"fruit": "mango"}, {"fruit": "orange"}]), [], "saving an array must throw an error"); -})(); \ No newline at end of file +})(); diff --git a/jstests/core/timeseries/libs/geo.js b/jstests/core/timeseries/libs/geo.js index 3c3e5b6db91..90d59f8aa50 100644 --- a/jstests/core/timeseries/libs/geo.js +++ b/jstests/core/timeseries/libs/geo.js @@ -22,4 +22,4 @@ function randomLongLat() { const lat = latRadians * 180 / Math.PI; return [long, lat]; } -} \ No newline at end of file +} diff --git a/jstests/core/timeseries/timeseries_insert.js b/jstests/core/timeseries/timeseries_insert.js index bbb876a3ade..8032afc9d92 100644 --- a/jstests/core/timeseries/timeseries_insert.js +++ b/jstests/core/timeseries/timeseries_insert.js @@ -32,4 +32,4 @@ for (let i = 0; i < 100; i++) { tags: host.tags, })); } -})(); \ No newline at end of file +})(); diff --git a/jstests/core/txns/non_transactional_operations_on_session_with_transaction.js b/jstests/core/txns/non_transactional_operations_on_session_with_transaction.js index d3c26b49de8..81f6c0c5790 100644 --- a/jstests/core/txns/non_transactional_operations_on_session_with_transaction.js +++ b/jstests/core/txns/non_transactional_operations_on_session_with_transaction.js @@ -112,4 +112,4 @@ assert.docEq(doc1, testColl.findOne(doc1)); assert.docEq(doc1, sessionColl.findOne(doc1)); assert.docEq(doc2, testColl.findOne(doc2)); assert.docEq(doc2, sessionColl.findOne(doc2)); -}()); \ No newline at end of file +}()); diff --git a/jstests/core/txns/read_concern.js b/jstests/core/txns/read_concern.js index fac40d9bcb5..460f705c767 100644 --- a/jstests/core/txns/read_concern.js +++ b/jstests/core/txns/read_concern.js @@ -113,4 +113,4 @@ assert.commandFailedWithCode( assert.commandWorked(session.commitTransaction_forTesting()); session.endSession(); -}()); \ No newline at end of file +}()); diff --git a/jstests/core/write/update/update3.js b/jstests/core/write/update/update3.js index 5a61b8bcfc9..7e6c233e27a 100644 --- a/jstests/core/write/update/update3.js +++ b/jstests/core/write/update/update3.js @@ -30,4 +30,4 @@ assert.eq(0, f.findOne()._id, "D"); f.drop(); f.save({_id: 1, a: 1}); f.update({}, {$unset: {"a": 1, "b.c": 1}}); -assert.docEq({_id: 1}, f.findOne(), "E"); \ No newline at end of file +assert.docEq({_id: 1}, f.findOne(), "E"); diff --git a/jstests/core/write/update/update_arraymatch6.js b/jstests/core/write/update/update_arraymatch6.js index 1241753b866..f8be918b826 100644 --- a/jstests/core/write/update/update_arraymatch6.js +++ b/jstests/core/write/update/update_arraymatch6.js @@ -17,4 +17,4 @@ function doTest() { doTest(); t.drop(); t.createIndex({'a.id': 1}); -doTest(); \ No newline at end of file +doTest(); diff --git a/jstests/core/write/update/update_with_large_hint.js b/jstests/core/write/update/update_with_large_hint.js index 0b2521337ce..d812954130d 100644 --- a/jstests/core/write/update/update_with_large_hint.js +++ b/jstests/core/write/update/update_with_large_hint.js @@ -33,4 +33,4 @@ assert.commandFailedWithCode(coll.runCommand("delete", { deletes: [{q: {_id: 0}, limit: 1, hint: {[longHint]: 1}}], }), ErrorCodes.BadValue); -}()); \ No newline at end of file +}()); diff --git a/jstests/cqf/index_intersect1.js b/jstests/cqf/index_intersect1.js index 7c602dcb695..15328b57083 100644 --- a/jstests/cqf/index_intersect1.js +++ b/jstests/cqf/index_intersect1.js @@ -32,4 +32,4 @@ res = t.explain("executionStats") .aggregate([{$project: {'_id': 0, 'a': 1}}, {$match: {'a': {$gt: 60, $lt: 100}}}]); assert.eq(2, res.executionStats.nReturned); assertValueOnPlanPath("IndexScan", res, "child.child.nodeType"); -}()); \ No newline at end of file +}()); diff --git a/jstests/cqf/no_collection.js b/jstests/cqf/no_collection.js index 3c7ecae4c32..49859a3ced1 100644 --- a/jstests/cqf/no_collection.js +++ b/jstests/cqf/no_collection.js @@ -12,4 +12,4 @@ t.drop(); const res = t.explain("executionStats").aggregate([{$match: {'a': 2}}]); assert.eq(0, res.executionStats.nReturned); -}()); \ No newline at end of file +}()); diff --git a/jstests/cqf/nonselective_index.js b/jstests/cqf/nonselective_index.js index 56ba933c0ba..7b16136f849 100644 --- a/jstests/cqf/nonselective_index.js +++ b/jstests/cqf/nonselective_index.js @@ -27,4 +27,4 @@ const res = t.explain("executionStats").aggregate([{$match: {a: {$gte: 0}}}]); assert.eq(nDocs, res.executionStats.nReturned); assertValueOnPlanPath("PhysicalScan", res, "child.child.nodeType"); -}()); \ No newline at end of file +}()); diff --git a/jstests/cqf/partial_index.js b/jstests/cqf/partial_index.js index ba1993a318c..15b6f27b7ef 100644 --- a/jstests/cqf/partial_index.js +++ b/jstests/cqf/partial_index.js @@ -30,4 +30,4 @@ assert.eq(1, res.length); // TODO: verify with explain the plan should not use the index. res = t.aggregate([{$match: {'a': 3, 'b': 3}}]).toArray(); assert.eq(2, res.length); -}()); \ No newline at end of file +}()); diff --git a/jstests/cqf/selective_index.js b/jstests/cqf/selective_index.js index 42113655472..e7b20b35dcc 100644 --- a/jstests/cqf/selective_index.js +++ b/jstests/cqf/selective_index.js @@ -31,4 +31,4 @@ assert.eq(1, res.executionStats.nReturned); const indexNode = navigateToPlanPath(res, "child.leftChild"); assertValueOnPath("IndexScan", indexNode, "nodeType"); assertValueOnPath("b_1", indexNode, "indexDefName"); -}()); \ No newline at end of file +}()); diff --git a/jstests/cqf/sort.js b/jstests/cqf/sort.js index 6d03b95c850..a8b4e6f1ac7 100644 --- a/jstests/cqf/sort.js +++ b/jstests/cqf/sort.js @@ -19,4 +19,4 @@ assert.commandWorked(t.insert({_id: 6, x: 4})); const res = t.aggregate([{$unwind: '$x'}, {$sort: {'x': 1}}]).toArray(); assert.eq(4, res.length); -}()); \ No newline at end of file +}()); diff --git a/jstests/cqf/sort1.js b/jstests/cqf/sort1.js index fce60b2f4ae..5b7e7f8cbc3 100644 --- a/jstests/cqf/sort1.js +++ b/jstests/cqf/sort1.js @@ -34,4 +34,4 @@ t.createIndex(index); const resIndexScan = t.find(query).hint(index).sort({_id: 1}).toArray(); assert.eq(resCollScan, resIndexScan); } -}()); \ No newline at end of file +}()); diff --git a/jstests/cqf/sort2.js b/jstests/cqf/sort2.js index 7961d82320d..9ee26f6597f 100644 --- a/jstests/cqf/sort2.js +++ b/jstests/cqf/sort2.js @@ -22,4 +22,4 @@ t.createIndex({a: 1}); const resIndexScan = t.find({a: {$gte: 1}}).sort({a: -1}).hint({a: 1}).toArray(); assert.eq(resCollScan, resIndexScan); } -}()); \ No newline at end of file +}()); diff --git a/jstests/cqf/sort3.js b/jstests/cqf/sort3.js index 66a23b6beba..8bd7893ec8f 100644 --- a/jstests/cqf/sort3.js +++ b/jstests/cqf/sort3.js @@ -23,4 +23,4 @@ t.createIndex({a: 1, b: -1}); const resIndexScan = t.find({a: {$gte: 2}}).sort({a: 1, b: -1}).hint({a: 1, b: -1}).toArray(); assert.eq(resCollScan, resIndexScan); } -}()); \ No newline at end of file +}()); diff --git a/jstests/cqf/sort_match.js b/jstests/cqf/sort_match.js index 4d53ec5f669..cc7612f61ed 100644 --- a/jstests/cqf/sort_match.js +++ b/jstests/cqf/sort_match.js @@ -50,4 +50,4 @@ assert.commandWorked(t.createIndex({b: 1})); prev = current; } } -}()); \ No newline at end of file +}()); diff --git a/jstests/cqf/sorted_merge.js b/jstests/cqf/sorted_merge.js index 6c001e99b78..4fb059575b1 100644 --- a/jstests/cqf/sorted_merge.js +++ b/jstests/cqf/sorted_merge.js @@ -75,4 +75,4 @@ IndexScan [{'': rid_1}, scanDefName: cqf_sorted_merge_, indexDefName: a_1, `; assert.eq(removeUUIDsFromExplain(db, getExplain()), multikeyExplain); testCorrectness(); -}()); \ No newline at end of file +}()); diff --git a/jstests/cqf/type_bracket.js b/jstests/cqf/type_bracket.js index 13abbc2a856..0dd7534b72c 100644 --- a/jstests/cqf/type_bracket.js +++ b/jstests/cqf/type_bracket.js @@ -55,4 +55,4 @@ assert.commandWorked(t.createIndex({a: 1})); assert.eq(4, res.executionStats.nReturned); assertValueOnPlanPath("IndexScan", res, "child.leftChild.nodeType"); } -}()); \ No newline at end of file +}()); diff --git a/jstests/cqf/type_predicate.js b/jstests/cqf/type_predicate.js index eb8de44b3f6..92833dc6e05 100644 --- a/jstests/cqf/type_predicate.js +++ b/jstests/cqf/type_predicate.js @@ -23,4 +23,4 @@ for (let i = 0; i < 10; i++) { const res = t.explain("executionStats").aggregate([{$match: {a: {$type: "double"}}}]); assert.eq(10, res.executionStats.nReturned); } -}()); \ No newline at end of file +}()); diff --git a/jstests/decimal/decimal128_test1.js b/jstests/decimal/decimal128_test1.js index 6cf083341e4..b38e6ec7c0b 100644 --- a/jstests/decimal/decimal128_test1.js +++ b/jstests/decimal/decimal128_test1.js @@ -160,4 +160,4 @@ testData.forEach(function(testCase) { assert.eq(output, `NumberDecimal("${testCase.input}")`); } }); -}()); \ No newline at end of file +}()); diff --git a/jstests/decimal/decimal128_test2.js b/jstests/decimal/decimal128_test2.js index ffbc3704225..853af548765 100644 --- a/jstests/decimal/decimal128_test2.js +++ b/jstests/decimal/decimal128_test2.js @@ -301,4 +301,4 @@ data.forEach(function(testCase) { assert.eq(output, `NumberDecimal("${testCase.input}")`); } }); -}()); \ No newline at end of file +}()); diff --git a/jstests/decimal/decimal128_test3.js b/jstests/decimal/decimal128_test3.js index b50f3e45bd1..4ba0c276e14 100644 --- a/jstests/decimal/decimal128_test3.js +++ b/jstests/decimal/decimal128_test3.js @@ -578,4 +578,4 @@ data.forEach(function(testCase) { assert.eq(output, `NumberDecimal("${testCase.input}")`); } }); -}()); \ No newline at end of file +}()); diff --git a/jstests/decimal/decimal128_test4.js b/jstests/decimal/decimal128_test4.js index 7ec4f14c303..8a945db386b 100644 --- a/jstests/decimal/decimal128_test4.js +++ b/jstests/decimal/decimal128_test4.js @@ -136,4 +136,4 @@ parseErrors.forEach(function(testCase) { } assert.throws(test, [], `[Test - ${testCase.description}] should have failed with error.`); }); -}()); \ No newline at end of file +}()); diff --git a/jstests/decimal/decimal128_test6.js b/jstests/decimal/decimal128_test6.js index 07a52669e33..a66486b69df 100644 --- a/jstests/decimal/decimal128_test6.js +++ b/jstests/decimal/decimal128_test6.js @@ -46,4 +46,4 @@ parseErrors.forEach(function(testCase) { } assert.throws(test, [], `[Test - ${testCase.description}] should have failed with error.`); }); -}()); \ No newline at end of file +}()); diff --git a/jstests/decimal/decimal128_test7.js b/jstests/decimal/decimal128_test7.js index d9ff5774ade..0bf6c558ae5 100644 --- a/jstests/decimal/decimal128_test7.js +++ b/jstests/decimal/decimal128_test7.js @@ -415,4 +415,4 @@ parseErrors.forEach(function(testCase) { } assert.throws(test, [], `[Test - ${testCase.description}] should have failed with error.`); }); -}()); \ No newline at end of file +}()); diff --git a/jstests/disk/dbNoCreate.js b/jstests/disk/dbNoCreate.js index 785d7473f26..2d48afad92e 100644 --- a/jstests/disk/dbNoCreate.js +++ b/jstests/disk/dbNoCreate.js @@ -14,4 +14,4 @@ MongoRunner.stopMongod(m); m = MongoRunner.runMongod({restart: true, cleanData: false, dbpath: m.dbpath}); assert.eq( -1, m.getDBNames().indexOf(baseName), "found " + baseName + " in " + tojson(m.getDBNames())); -MongoRunner.stopMongod(m); \ No newline at end of file +MongoRunner.stopMongod(m); diff --git a/jstests/disk/libs/wt_file_helper.js b/jstests/disk/libs/wt_file_helper.js index 6e819f889e7..7d004d7d454 100644 --- a/jstests/disk/libs/wt_file_helper.js +++ b/jstests/disk/libs/wt_file_helper.js @@ -392,4 +392,4 @@ let insertInvalidUTF8 = function(coll, uri, conn, numDocs) { } }; rewriteTable(uri, conn, makeInvalidUTF8); -}; \ No newline at end of file +}; diff --git a/jstests/libs/auto_retry_transaction_in_sharding.js b/jstests/libs/auto_retry_transaction_in_sharding.js index f81a366970a..7ccac0b7d5a 100644 --- a/jstests/libs/auto_retry_transaction_in_sharding.js +++ b/jstests/libs/auto_retry_transaction_in_sharding.js @@ -94,4 +94,4 @@ var { retryOnceOnTransientOnMongos, retryOnceOnTransientAndRestartTxnOnMongos }; -})(); \ No newline at end of file +})(); diff --git a/jstests/libs/config_files/set_shardingrole_configsvr.json b/jstests/libs/config_files/set_shardingrole_configsvr.json index f09d10d3f18..be6c3853e0b 100644 --- a/jstests/libs/config_files/set_shardingrole_configsvr.json +++ b/jstests/libs/config_files/set_shardingrole_configsvr.json @@ -5,4 +5,4 @@ "replication" : { "replSetName" : "dummy" } -} \ No newline at end of file +} diff --git a/jstests/libs/config_files/set_shardingrole_shardsvr.json b/jstests/libs/config_files/set_shardingrole_shardsvr.json index c605dce50cc..333a33528b9 100644 --- a/jstests/libs/config_files/set_shardingrole_shardsvr.json +++ b/jstests/libs/config_files/set_shardingrole_shardsvr.json @@ -5,4 +5,4 @@ "replication" : { "replSetName" : "dummy" } -} \ No newline at end of file +} diff --git a/jstests/libs/mongodbauthorizationgrant.cnf b/jstests/libs/mongodbauthorizationgrant.cnf index 3c2a82b36cc..08f6c4b7ff2 100644 --- a/jstests/libs/mongodbauthorizationgrant.cnf +++ b/jstests/libs/mongodbauthorizationgrant.cnf @@ -11,4 +11,4 @@ database = UTF8:admin [MongoDBRole2] role = UTF8:readAnyDatabase -database = UTF8:admin \ No newline at end of file +database = UTF8:admin diff --git a/jstests/libs/override_methods/implicit_v1_resume_token_changestreams.js b/jstests/libs/override_methods/implicit_v1_resume_token_changestreams.js index b0fc5dc0de8..f1e42abc0ba 100644 --- a/jstests/libs/override_methods/implicit_v1_resume_token_changestreams.js +++ b/jstests/libs/override_methods/implicit_v1_resume_token_changestreams.js @@ -22,4 +22,4 @@ OverrideHelpers.prependOverrideInParallelShell( // Override the default runCommand with our custom version. OverrideHelpers.overrideRunCommand(runCommandV1Tokens); -})(); \ No newline at end of file +})(); diff --git a/jstests/libs/override_methods/implicit_whole_cluster_changestreams.js b/jstests/libs/override_methods/implicit_whole_cluster_changestreams.js index 15d86e21abb..c9c67b25ab4 100644 --- a/jstests/libs/override_methods/implicit_whole_cluster_changestreams.js +++ b/jstests/libs/override_methods/implicit_whole_cluster_changestreams.js @@ -65,4 +65,4 @@ DB.prototype.watch = function(pipeline, options) { pipeline = Object.assign([], pipeline); pipeline.unshift(ChangeStreamPassthroughHelpers.nsMatchFilter(this, 1)); return this.getMongo().watch(pipeline, options); -}; \ No newline at end of file +}; diff --git a/jstests/libs/override_methods/implicit_whole_db_changestreams.js b/jstests/libs/override_methods/implicit_whole_db_changestreams.js index a9cfd815054..3b6204ef555 100644 --- a/jstests/libs/override_methods/implicit_whole_db_changestreams.js +++ b/jstests/libs/override_methods/implicit_whole_db_changestreams.js @@ -166,4 +166,4 @@ DB.prototype.runCommand = function(cmdObj, extra, queryOptions, noPassthrough) { this._runCommandImpl = (noPassthrough ? originalRunCommandImpl : passthroughRunCommandImpl); return originalRunCommand.apply(this, [cmdObj, extra, queryOptions]); }; -}()); \ No newline at end of file +}()); diff --git a/jstests/libs/override_methods/override_fixtures_changestream_multitenancy.js b/jstests/libs/override_methods/override_fixtures_changestream_multitenancy.js index c51aa809378..34721dd9545 100644 --- a/jstests/libs/override_methods/override_fixtures_changestream_multitenancy.js +++ b/jstests/libs/override_methods/override_fixtures_changestream_multitenancy.js @@ -94,4 +94,4 @@ ShardingTest = function(params) { // Extend the new 'ShardingTest' fixture with the properties of the original one. Object.extend(ShardingTest, originalShardingTest); -})(); \ No newline at end of file +})(); diff --git a/jstests/libs/storage_engine_utils.js b/jstests/libs/storage_engine_utils.js index 7c6f2d1309e..082951572e6 100644 --- a/jstests/libs/storage_engine_utils.js +++ b/jstests/libs/storage_engine_utils.js @@ -9,4 +9,4 @@ function storageEngineIsWiredTiger() { // We assume that WiredTiger is the default storage engine, if the storage engine is // unspecified in the test options. return !jsTest.options().storageEngine || jsTest.options().storageEngine === "wiredTiger"; -} \ No newline at end of file +} diff --git a/jstests/libs/trace_missing_docs.js b/jstests/libs/trace_missing_docs.js index a23cd859509..0ea5f07b867 100644 --- a/jstests/libs/trace_missing_docs.js +++ b/jstests/libs/trace_missing_docs.js @@ -80,4 +80,4 @@ function traceMissingDoc(coll, doc, mongos) { } return allOps; -} \ No newline at end of file +} diff --git a/jstests/libs/uuid_util.js b/jstests/libs/uuid_util.js index 796d2949428..a9df57db566 100644 --- a/jstests/libs/uuid_util.js +++ b/jstests/libs/uuid_util.js @@ -32,4 +32,4 @@ function getUUIDFromListCollections(db, collName) { function extractUUIDFromObject(uuid) { const uuidString = uuid.toString(); return uuidString.substring(6, uuidString.length - 2); -} \ No newline at end of file +} diff --git a/jstests/libs/write_concern_util.js b/jstests/libs/write_concern_util.js index fff2517c754..f02f7a65d8b 100644 --- a/jstests/libs/write_concern_util.js +++ b/jstests/libs/write_concern_util.js @@ -154,4 +154,4 @@ function runWriteConcernRetryabilityTest(priConn, secConn, cmd, kNodes, dbName, checkWriteConcernTimedOut(testDB2.runCommand(cmd)); restartServerReplication(secConn); -} \ No newline at end of file +} diff --git a/jstests/multiVersion/genericBinVersion/load_keys_on_upgrade.js b/jstests/multiVersion/genericBinVersion/load_keys_on_upgrade.js index cbcc5261274..3788c302f36 100644 --- a/jstests/multiVersion/genericBinVersion/load_keys_on_upgrade.js +++ b/jstests/multiVersion/genericBinVersion/load_keys_on_upgrade.js @@ -53,4 +53,4 @@ assert.eq(1, rsConn.getDB("admin").auth("root", "root")); assert.commandWorked(rsConn.adminCommand({hello: 1})); print("clusterTime2: " + tojson(rsConn.getDB("admin").getSession().getClusterTime())); -rst.stopSet(); \ No newline at end of file +rst.stopSet(); diff --git a/jstests/multiVersion/genericBinVersion/rollback_capped_deletions.js b/jstests/multiVersion/genericBinVersion/rollback_capped_deletions.js index a01eef7abd3..a477ba3fe1d 100644 --- a/jstests/multiVersion/genericBinVersion/rollback_capped_deletions.js +++ b/jstests/multiVersion/genericBinVersion/rollback_capped_deletions.js @@ -47,4 +47,4 @@ try { // The fast count checks occur when tearing down the fixture as part of the consistency checks. rollbackTest.stop(); -})(); \ No newline at end of file +})(); diff --git a/jstests/multiVersion/genericSetFCVUsage/rollback_downgraded_to_latest.js b/jstests/multiVersion/genericSetFCVUsage/rollback_downgraded_to_latest.js index 1978172b68f..3b18543ea7a 100644 --- a/jstests/multiVersion/genericSetFCVUsage/rollback_downgraded_to_latest.js +++ b/jstests/multiVersion/genericSetFCVUsage/rollback_downgraded_to_latest.js @@ -14,4 +14,4 @@ testMultiversionRollback(testName, "last-lts", "latest"); testName = "multiversion_rollback_last_continuous_to_latest"; jsTestLog("Testing multiversion rollback from last-continuous to latest"); testMultiversionRollback(testName, "last-continuous", "latest"); -})(); \ No newline at end of file +})(); diff --git a/jstests/multiVersion/genericSetFCVUsage/rollback_latest_to_downgraded.js b/jstests/multiVersion/genericSetFCVUsage/rollback_latest_to_downgraded.js index d8328df3396..84b818421e3 100644 --- a/jstests/multiVersion/genericSetFCVUsage/rollback_latest_to_downgraded.js +++ b/jstests/multiVersion/genericSetFCVUsage/rollback_latest_to_downgraded.js @@ -14,4 +14,4 @@ testMultiversionRollback(testName, "latest", "last-lts"); var testName = "multiversion_rollback_latest_to_last_continuous"; jsTestLog("Testing multiversion rollback from latest to last-continuous"); testMultiversionRollback(testName, "latest", "last-continuous"); -})(); \ No newline at end of file +})(); diff --git a/jstests/multiVersion/genericSetFCVUsage/upgrade_downgrade_idempotency.js b/jstests/multiVersion/genericSetFCVUsage/upgrade_downgrade_idempotency.js index ff24256908a..d847a980d40 100644 --- a/jstests/multiVersion/genericSetFCVUsage/upgrade_downgrade_idempotency.js +++ b/jstests/multiVersion/genericSetFCVUsage/upgrade_downgrade_idempotency.js @@ -57,4 +57,4 @@ function runTest(downgradeVersion) { runTest('last-lts'); runTest('last-continuous'); -}()); \ No newline at end of file +}()); diff --git a/jstests/multiVersion/libs/initial_sync.js b/jstests/multiVersion/libs/initial_sync.js index 329602f0c4b..0d3ee54215b 100644 --- a/jstests/multiVersion/libs/initial_sync.js +++ b/jstests/multiVersion/libs/initial_sync.js @@ -47,4 +47,4 @@ var multversionInitialSyncTest = function( rst.awaitSecondaryNodes(); rst.stopSet(); -}; \ No newline at end of file +}; diff --git a/jstests/noPassthrough/aggregation_out_on_secondary.js b/jstests/noPassthrough/aggregation_out_on_secondary.js index 2279b9f9f10..68862925078 100644 --- a/jstests/noPassthrough/aggregation_out_on_secondary.js +++ b/jstests/noPassthrough/aggregation_out_on_secondary.js @@ -68,4 +68,4 @@ const primaryProfile = assert.eq(1, primaryProfile); rs.stopSet(); -}()); \ No newline at end of file +}()); diff --git a/jstests/noPassthrough/background_validation_checkpoint_existence.js b/jstests/noPassthrough/background_validation_checkpoint_existence.js index 438278b9aea..f3cf1afc450 100644 --- a/jstests/noPassthrough/background_validation_checkpoint_existence.js +++ b/jstests/noPassthrough/background_validation_checkpoint_existence.js @@ -58,4 +58,4 @@ assert.eq(true, res.valid, res); assert.eq(2, res.nIndexes, res); MongoRunner.stopMongod(conn); -}()); \ No newline at end of file +}()); diff --git a/jstests/noPassthrough/can_load_ttl_index_capped_collection.js b/jstests/noPassthrough/can_load_ttl_index_capped_collection.js index 0e0c47c6ed8..266746c5f17 100644 --- a/jstests/noPassthrough/can_load_ttl_index_capped_collection.js +++ b/jstests/noPassthrough/can_load_ttl_index_capped_collection.js @@ -47,4 +47,4 @@ assert.eq( assert.eq(indexes[2].expireAfterSeconds, 10, "Index is not TTL as expected: " + tojson(indexes)); MongoRunner.stopMongod(conn); -})(); \ No newline at end of file +})(); diff --git a/jstests/noPassthrough/change_stream_generate_v2_tokens_flag_with_test_commands_disabled.js b/jstests/noPassthrough/change_stream_generate_v2_tokens_flag_with_test_commands_disabled.js index f23507031de..8e71eb0a14e 100644 --- a/jstests/noPassthrough/change_stream_generate_v2_tokens_flag_with_test_commands_disabled.js +++ b/jstests/noPassthrough/change_stream_generate_v2_tokens_flag_with_test_commands_disabled.js @@ -31,4 +31,4 @@ assert.commandWorked(st.s.getDB("test")["coll"].insert({x: 1})); assert.soon(() => stream.hasNext()); st.stop(); -})(); \ No newline at end of file +})(); diff --git a/jstests/noPassthrough/change_stream_mongos_with_generate_v2_resume_tokens_flag.js b/jstests/noPassthrough/change_stream_mongos_with_generate_v2_resume_tokens_flag.js index 2bdbb907397..04dff09c8ed 100644 --- a/jstests/noPassthrough/change_stream_mongos_with_generate_v2_resume_tokens_flag.js +++ b/jstests/noPassthrough/change_stream_mongos_with_generate_v2_resume_tokens_flag.js @@ -105,4 +105,4 @@ profilerHasAtLeastOneMatchingEntryOrThrow({ }); st.stop(); -})(); \ No newline at end of file +})(); diff --git a/jstests/noPassthrough/classic_cqf_simple_comparisons.js b/jstests/noPassthrough/classic_cqf_simple_comparisons.js index 1ba7f852243..93f375cd121 100644 --- a/jstests/noPassthrough/classic_cqf_simple_comparisons.js +++ b/jstests/noPassthrough/classic_cqf_simple_comparisons.js @@ -51,4 +51,4 @@ for (const op of ['$eq', '$lt', '$lte', '$gt', '$gte']) { MongoRunner.stopMongod(cqfConn); MongoRunner.stopMongod(classicConn); -}()); \ No newline at end of file +}()); diff --git a/jstests/noPassthrough/client_disconnect_during_sign_logical_time.js b/jstests/noPassthrough/client_disconnect_during_sign_logical_time.js index f205f24b5c8..d596517c7ad 100644 --- a/jstests/noPassthrough/client_disconnect_during_sign_logical_time.js +++ b/jstests/noPassthrough/client_disconnect_during_sign_logical_time.js @@ -18,4 +18,4 @@ assert.commandFailedWithCode(st.s.adminCommand({ ErrorCodes.ClientDisconnect); st.stop(); -})(); \ No newline at end of file +})(); diff --git a/jstests/noPassthrough/dbhash_before_ddl_op.js b/jstests/noPassthrough/dbhash_before_ddl_op.js index d2855e2090f..8ba3739a2a3 100644 --- a/jstests/noPassthrough/dbhash_before_ddl_op.js +++ b/jstests/noPassthrough/dbhash_before_ddl_op.js @@ -53,4 +53,4 @@ res = assert.commandWorked(db.runCommand({ assert(res.collections.hasOwnProperty("renamed")); replTest.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/noPassthrough/dbstats_sharded_collection.js b/jstests/noPassthrough/dbstats_sharded_collection.js index a2ab3dde627..5db88d308fe 100644 --- a/jstests/noPassthrough/dbstats_sharded_collection.js +++ b/jstests/noPassthrough/dbstats_sharded_collection.js @@ -102,4 +102,4 @@ assert.eq(dbStats.totalSize, " totalSize total"); st.stop(); -})(); \ No newline at end of file +})(); diff --git a/jstests/noPassthrough/drop_oplog_should_fail_if_storage_engine_supports_replSetResizeOplog_command.js b/jstests/noPassthrough/drop_oplog_should_fail_if_storage_engine_supports_replSetResizeOplog_command.js index 20d4b93049b..962ebd55da0 100644 --- a/jstests/noPassthrough/drop_oplog_should_fail_if_storage_engine_supports_replSetResizeOplog_command.js +++ b/jstests/noPassthrough/drop_oplog_should_fail_if_storage_engine_supports_replSetResizeOplog_command.js @@ -37,4 +37,4 @@ if (storageEngineIsWiredTiger()) { } MongoRunner.stopMongod(primary); -}()); \ No newline at end of file +}()); diff --git a/jstests/noPassthrough/ensure_size_storer_flushes_periodically.js b/jstests/noPassthrough/ensure_size_storer_flushes_periodically.js index 65826603346..ca3c2eb7b35 100644 --- a/jstests/noPassthrough/ensure_size_storer_flushes_periodically.js +++ b/jstests/noPassthrough/ensure_size_storer_flushes_periodically.js @@ -71,4 +71,4 @@ assert.gte(testColl.count(), "Fast count should still be 100 + 1 after crash. Fast count: " + testColl.count()); MongoRunner.stopMongod(conn); -}()); \ No newline at end of file +}()); diff --git a/jstests/noPassthrough/index_build_operation_metrics.js b/jstests/noPassthrough/index_build_operation_metrics.js index 75ee9e331fb..f46bfb9fe6a 100644 --- a/jstests/noPassthrough/index_build_operation_metrics.js +++ b/jstests/noPassthrough/index_build_operation_metrics.js @@ -385,4 +385,4 @@ assert.commandWorked(primaryDB[collName].dropIndex({a: 1})); IndexBuildTest.assertIndexes(secondaryDB[collName], 2, ['_id_', 'a_1']); })(); rst.stopSet(); -}()); \ No newline at end of file +}()); diff --git a/jstests/noPassthrough/index_build_yield_bulk_load.js b/jstests/noPassthrough/index_build_yield_bulk_load.js index 4d2e1bd4150..12fc4997162 100644 --- a/jstests/noPassthrough/index_build_yield_bulk_load.js +++ b/jstests/noPassthrough/index_build_yield_bulk_load.js @@ -58,4 +58,4 @@ awaitIndex(); awaitDrop(); MongoRunner.stopMongod(conn); -})(); \ No newline at end of file +})(); diff --git a/jstests/noPassthrough/index_build_yield_prepare_conflicts.js b/jstests/noPassthrough/index_build_yield_prepare_conflicts.js index e28fae3d36a..2881ae14531 100644 --- a/jstests/noPassthrough/index_build_yield_prepare_conflicts.js +++ b/jstests/noPassthrough/index_build_yield_prepare_conflicts.js @@ -74,4 +74,4 @@ session.abortTransaction_forTesting(); awaitIndex(); rst.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/noPassthrough/index_stepdown_commit_prepare_conflict.js b/jstests/noPassthrough/index_stepdown_commit_prepare_conflict.js index 12fabee9ae3..e7e026644d5 100644 --- a/jstests/noPassthrough/index_stepdown_commit_prepare_conflict.js +++ b/jstests/noPassthrough/index_stepdown_commit_prepare_conflict.js @@ -103,4 +103,4 @@ IndexBuildTest.assertIndexes(newPrimary.getDB(dbName).getCollection(collName), 2 IndexBuildTest.assertIndexes(primaryColl, 2, ["_id_", "x_1"]); rst.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/noPassthrough/list_collections_large_number.js b/jstests/noPassthrough/list_collections_large_number.js index 379d4ea5dd7..2b0b5d53926 100644 --- a/jstests/noPassthrough/list_collections_large_number.js +++ b/jstests/noPassthrough/list_collections_large_number.js @@ -31,4 +31,4 @@ assert.commandWorked(db.runCommand({"listCollections": 1})); // Do not validate collections since that is an expensive action. MongoRunner.stopMongod(conn, undefined, {skipValidation: true}); -})(); \ No newline at end of file +})(); diff --git a/jstests/noPassthrough/loglong.js b/jstests/noPassthrough/loglong.js index 7e53701d199..a807d939938 100644 --- a/jstests/noPassthrough/loglong.js +++ b/jstests/noPassthrough/loglong.js @@ -53,4 +53,4 @@ function assertLogTruncated(db, t) { assert(found, tojson(log)); } MongoRunner.stopMongod(conn); -})(); \ No newline at end of file +})(); diff --git a/jstests/noPassthrough/merge_on_secondary.js b/jstests/noPassthrough/merge_on_secondary.js index 14f3454a138..0cf46c4c1c2 100644 --- a/jstests/noPassthrough/merge_on_secondary.js +++ b/jstests/noPassthrough/merge_on_secondary.js @@ -74,4 +74,4 @@ assert(!res.hasOwnProperty("writeErrors")); assert(!res.hasOwnProperty("writeConcernError")); replTest.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/noPassthrough/merge_out_on_secondary_fail_on_stepdown.js b/jstests/noPassthrough/merge_out_on_secondary_fail_on_stepdown.js index f275244f78f..ad2010bcf0f 100644 --- a/jstests/noPassthrough/merge_out_on_secondary_fail_on_stepdown.js +++ b/jstests/noPassthrough/merge_out_on_secondary_fail_on_stepdown.js @@ -91,4 +91,4 @@ const outStage = `{$out: "${outputCollName}"}`; runTest(outStage, outFailPoint); replTest.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/noPassthrough/mr_disk_use.js b/jstests/noPassthrough/mr_disk_use.js index f2d178aa9c2..22a867b506b 100644 --- a/jstests/noPassthrough/mr_disk_use.js +++ b/jstests/noPassthrough/mr_disk_use.js @@ -40,4 +40,4 @@ const res = assert.commandWorked(db.runCommand(mapReduceCmd)); assert.eq(res.results[0], {_id: "a", value: 42}, res); MongoRunner.stopMongod(conn); -})(); \ No newline at end of file +})(); diff --git a/jstests/noPassthrough/nested_sort_merge.js b/jstests/noPassthrough/nested_sort_merge.js index 5d2568e6906..0cf6ab6bafb 100644 --- a/jstests/noPassthrough/nested_sort_merge.js +++ b/jstests/noPassthrough/nested_sort_merge.js @@ -98,4 +98,4 @@ for (const doc of queries) { } } MongoRunner.stopMongod(conn); -})(); \ No newline at end of file +})(); diff --git a/jstests/noPassthrough/out_merge_on_secondary_metadata.js b/jstests/noPassthrough/out_merge_on_secondary_metadata.js index 3d9727bef7b..9668c16fd41 100644 --- a/jstests/noPassthrough/out_merge_on_secondary_metadata.js +++ b/jstests/noPassthrough/out_merge_on_secondary_metadata.js @@ -115,4 +115,4 @@ const outPipeline = [{$group: {_id: "$_id", sum: {$sum: "$a"}}}, {$out: outCollN testMetadata(outPipeline, "out_on_secondary_metadata"); replTest.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/noPassthrough/out_merge_on_secondary_write_concern.js b/jstests/noPassthrough/out_merge_on_secondary_write_concern.js index 1229d898a7f..13baa6f3819 100644 --- a/jstests/noPassthrough/out_merge_on_secondary_write_concern.js +++ b/jstests/noPassthrough/out_merge_on_secondary_write_concern.js @@ -75,4 +75,4 @@ const outPipeline = [{$group: {_id: "$_id", sum: {$sum: "$a"}}}, {$out: outColl. testWriteConcern(outPipeline, "out_on_secondary_write_concern"); replTest.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/noPassthrough/quiet_shell.js b/jstests/noPassthrough/quiet_shell.js index 1f55d0e06f9..2ab7880587b 100644 --- a/jstests/noPassthrough/quiet_shell.js +++ b/jstests/noPassthrough/quiet_shell.js @@ -23,4 +23,4 @@ clearRawMongoProgramOutput(); } MongoRunner.stopMongod(mongo); -})(); \ No newline at end of file +})(); diff --git a/jstests/noPassthrough/read_only_allow_disk_use.js b/jstests/noPassthrough/read_only_allow_disk_use.js index a6fc5ea4013..7fb60a09540 100644 --- a/jstests/noPassthrough/read_only_allow_disk_use.js +++ b/jstests/noPassthrough/read_only_allow_disk_use.js @@ -159,4 +159,4 @@ runTest(connRecoverStandalone, true); runTest(connRecoverStandalone, false); MongoRunner.stopMongod(connRecoverStandalone); -})(); \ No newline at end of file +})(); diff --git a/jstests/noPassthrough/reconfig_restarts_collection_scan.js b/jstests/noPassthrough/reconfig_restarts_collection_scan.js index 4d38c2750cd..9e6c0c638c3 100644 --- a/jstests/noPassthrough/reconfig_restarts_collection_scan.js +++ b/jstests/noPassthrough/reconfig_restarts_collection_scan.js @@ -74,4 +74,4 @@ awaitCreateIndex(); IndexBuildTest.assertIndexes(coll, 2, ["_id_", "a_1"]); rst.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/noPassthrough/resumable_index_build_drain_writes_phase_primary.js b/jstests/noPassthrough/resumable_index_build_drain_writes_phase_primary.js index 52def8c8bde..210ae0a2c92 100644 --- a/jstests/noPassthrough/resumable_index_build_drain_writes_phase_primary.js +++ b/jstests/noPassthrough/resumable_index_build_drain_writes_phase_primary.js @@ -159,4 +159,4 @@ if (columnstoreEnabled) { } rst.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/noPassthrough/resumable_index_build_mixed_phases.js b/jstests/noPassthrough/resumable_index_build_mixed_phases.js index 463d481d5e2..6ced5d695d3 100644 --- a/jstests/noPassthrough/resumable_index_build_mixed_phases.js +++ b/jstests/noPassthrough/resumable_index_build_mixed_phases.js @@ -116,4 +116,4 @@ runTests( ["bulk load", "drain writes"], [{skippedPhaseLogID: 20391}, {skippedPhaseLogID: 20392}]); rst.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/noPassthrough/retry_network_error_test.js b/jstests/noPassthrough/retry_network_error_test.js index e8fe4a78047..25651027a83 100644 --- a/jstests/noPassthrough/retry_network_error_test.js +++ b/jstests/noPassthrough/retry_network_error_test.js @@ -43,4 +43,4 @@ try { jsTestLog("Caught exception after exhausting retries: " + e); } assert.eq(attempts, numRetries + 1); -}()); \ No newline at end of file +}()); diff --git a/jstests/noPassthrough/sharded_distinct.js b/jstests/noPassthrough/sharded_distinct.js index 4b50586e6fb..c57804cc209 100644 --- a/jstests/noPassthrough/sharded_distinct.js +++ b/jstests/noPassthrough/sharded_distinct.js @@ -20,4 +20,4 @@ assert.commandFailed(coll.runCommand("distinct", {help: helpFn, foo: 1})); assert.commandFailed(coll.runCommand( {explain: {distinct: coll.getName(), help: helpFn, foo: 1}, verbosity: 'queryPlanner'})); st.stop(); -})(); \ No newline at end of file +})(); diff --git a/jstests/noPassthrough/shell_bson_obj_to_array.js b/jstests/noPassthrough/shell_bson_obj_to_array.js index bc49396c27b..af3a7b1f77f 100644 --- a/jstests/noPassthrough/shell_bson_obj_to_array.js +++ b/jstests/noPassthrough/shell_bson_obj_to_array.js @@ -30,4 +30,4 @@ tests.forEach((test) => { }); MongoRunner.stopMongod(conn); -})(); \ No newline at end of file +})(); diff --git a/jstests/noPassthrough/shell_can_use_read_concern.js b/jstests/noPassthrough/shell_can_use_read_concern.js index 8f092efcf25..3d1ae1214f6 100644 --- a/jstests/noPassthrough/shell_can_use_read_concern.js +++ b/jstests/noPassthrough/shell_can_use_read_concern.js @@ -202,4 +202,4 @@ runTests({withSession: false}); runTests({withSession: true}); rst.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/noPassthrough/ssl_cipher_default.js b/jstests/noPassthrough/ssl_cipher_default.js index d1a6f6fd5a4..4b5f1a32e1e 100644 --- a/jstests/noPassthrough/ssl_cipher_default.js +++ b/jstests/noPassthrough/ssl_cipher_default.js @@ -46,4 +46,4 @@ assertCorrectConfig({ tlsCipherConfig: "HIGH" }, "HIGH"); -})(); \ No newline at end of file +})(); diff --git a/jstests/noPassthrough/supports_read_concern_majority.js b/jstests/noPassthrough/supports_read_concern_majority.js index 5bf5bba6fa8..dc8af14014d 100644 --- a/jstests/noPassthrough/supports_read_concern_majority.js +++ b/jstests/noPassthrough/supports_read_concern_majority.js @@ -8,4 +8,4 @@ const conn = MongoRunner.runMongod({enableMajorityReadConcern: false}); assert(!conn); const logContents = rawMongoProgramOutput(); assert(logContents.indexOf("enableMajorityReadConcern:false is no longer supported") > 0); -})(); \ No newline at end of file +})(); diff --git a/jstests/noPassthrough/telemetry/telemetry_upgrade.js b/jstests/noPassthrough/telemetry/telemetry_upgrade.js index 44af914102d..f396d23b948 100644 --- a/jstests/noPassthrough/telemetry/telemetry_upgrade.js +++ b/jstests/noPassthrough/telemetry/telemetry_upgrade.js @@ -40,4 +40,4 @@ function testLower(restart = false) { testLower(true); testLower(false); MongoRunner.stopMongod(conn); -})(); \ No newline at end of file +})(); diff --git a/jstests/noPassthrough/timeseries_extended_range_startup.js b/jstests/noPassthrough/timeseries_extended_range_startup.js index a77a02be71c..9d2885791cc 100644 --- a/jstests/noPassthrough/timeseries_extended_range_startup.js +++ b/jstests/noPassthrough/timeseries_extended_range_startup.js @@ -57,4 +57,4 @@ assert.eq(1, primaryDB.extended.count()); assert.eq(1, getExtendedRangeCount(primary)); rst.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/noPassthrough/validate_db_metadata_limits.js b/jstests/noPassthrough/validate_db_metadata_limits.js index dce8af08b6f..13cefab9c18 100644 --- a/jstests/noPassthrough/validate_db_metadata_limits.js +++ b/jstests/noPassthrough/validate_db_metadata_limits.js @@ -25,4 +25,4 @@ assert(res.apiVersionErrors, res); assert(res.apiVersionErrors.length < 100, res); MongoRunner.stopMongod(conn); -})(); \ No newline at end of file +})(); diff --git a/jstests/noPassthrough/validate_memory_limit.js b/jstests/noPassthrough/validate_memory_limit.js index 63f55a0ed43..365bd4bbcde 100644 --- a/jstests/noPassthrough/validate_memory_limit.js +++ b/jstests/noPassthrough/validate_memory_limit.js @@ -81,4 +81,4 @@ checkValidateLogs(); checkValidateRepair(); MongoRunner.stopMongod(conn, null, {skipValidation: true}); -})(); \ No newline at end of file +})(); diff --git a/jstests/noPassthrough/validate_multikey_failures.js b/jstests/noPassthrough/validate_multikey_failures.js index 6d21116c1d0..be3d3010b30 100644 --- a/jstests/noPassthrough/validate_multikey_failures.js +++ b/jstests/noPassthrough/validate_multikey_failures.js @@ -75,4 +75,4 @@ assert(checkLog.checkContainsWithAtLeastCountJson(conn, 7556101, {"indexKey": {" assert(checkLog.checkContainsWithAtLeastCountJson(conn, 5367500, {"index": "a.b_1"}, 1)); MongoRunner.stopMongod(conn, null, {skipValidation: true}); -})(); \ No newline at end of file +})(); diff --git a/jstests/noPassthrough/validate_with_long_index_name.js b/jstests/noPassthrough/validate_with_long_index_name.js index 5c97e371336..d6fb9ec9b8b 100644 --- a/jstests/noPassthrough/validate_with_long_index_name.js +++ b/jstests/noPassthrough/validate_with_long_index_name.js @@ -64,4 +64,4 @@ assert.contains(extraIndexEntries, res.warnings); assert.contains(extraSizeLimitations, res.errors); MongoRunner.stopMongod(conn, null, {skipValidation: true}); -})(); \ No newline at end of file +})(); diff --git a/jstests/noPassthroughWithMongod/clone_collection_as_capped_no_conflicts.js b/jstests/noPassthroughWithMongod/clone_collection_as_capped_no_conflicts.js index b1deedfa1d0..d9dc81356a3 100644 --- a/jstests/noPassthroughWithMongod/clone_collection_as_capped_no_conflicts.js +++ b/jstests/noPassthroughWithMongod/clone_collection_as_capped_no_conflicts.js @@ -41,4 +41,4 @@ assert.eq(toColl.count(), 1); // Interrupt the sleep command. assert.commandWorked(testDB.getSiblingDB("admin").killOp(sleepID)); sleepCommand(); -})(); \ No newline at end of file +})(); diff --git a/jstests/noPassthroughWithMongod/collMod_no_conflicts.js b/jstests/noPassthroughWithMongod/collMod_no_conflicts.js index 130582d2f61..fe8b4edcad8 100644 --- a/jstests/noPassthroughWithMongod/collMod_no_conflicts.js +++ b/jstests/noPassthroughWithMongod/collMod_no_conflicts.js @@ -39,4 +39,4 @@ assert.eq(res[0].options.pipeline, collModPipeline); // Interrupt the sleep command. assert.commandWorked(testDB.getSiblingDB("admin").killOp(sleepID)); sleepCommand(); -})(); \ No newline at end of file +})(); diff --git a/jstests/noPassthroughWithMongod/convert_to_capped_no_conflicts.js b/jstests/noPassthroughWithMongod/convert_to_capped_no_conflicts.js index f037b0075ee..1d97d5d5954 100644 --- a/jstests/noPassthroughWithMongod/convert_to_capped_no_conflicts.js +++ b/jstests/noPassthroughWithMongod/convert_to_capped_no_conflicts.js @@ -35,4 +35,4 @@ assert(testColl.isCapped()); // Interrupt the sleep command. assert.commandWorked(testDB.getSiblingDB("admin").killOp(sleepID)); sleepCommand(); -})(); \ No newline at end of file +})(); diff --git a/jstests/noPassthroughWithMongod/cursor_server_status_metrics_lifespan_histogram.js b/jstests/noPassthroughWithMongod/cursor_server_status_metrics_lifespan_histogram.js index b80ce4dcc0f..4467e6afe10 100644 --- a/jstests/noPassthroughWithMongod/cursor_server_status_metrics_lifespan_histogram.js +++ b/jstests/noPassthroughWithMongod/cursor_server_status_metrics_lifespan_histogram.js @@ -82,4 +82,4 @@ while (cursorLt10Minutes.hasNext()) { cursorLt10Minutes.next(); } assert.eq(getNumCursorsLessThan10Minutes() - initialNumCursorsLt10m, 1); -}()); \ No newline at end of file +}()); diff --git a/jstests/noPassthroughWithMongod/findAndModify_upsert_no_conflicts.js b/jstests/noPassthroughWithMongod/findAndModify_upsert_no_conflicts.js index 4c9e8370558..fdd202f5065 100644 --- a/jstests/noPassthroughWithMongod/findAndModify_upsert_no_conflicts.js +++ b/jstests/noPassthroughWithMongod/findAndModify_upsert_no_conflicts.js @@ -47,4 +47,4 @@ assert.eq(testDB[collName].find(updateDoc).toArray().length, 1); // Interrupt the sleep command. assert.commandWorked(testDB.getSiblingDB("admin").killOp(sleepID)); sleepCommand(); -})(); \ No newline at end of file +})(); diff --git a/jstests/noPassthroughWithMongod/reindex_duplicate_keys.js b/jstests/noPassthroughWithMongod/reindex_duplicate_keys.js index aa4a363a72a..58370576a14 100644 --- a/jstests/noPassthroughWithMongod/reindex_duplicate_keys.js +++ b/jstests/noPassthroughWithMongod/reindex_duplicate_keys.js @@ -43,4 +43,4 @@ let runTest = function(doc) { runTest(); runTest({a: 1}); -})(); \ No newline at end of file +})(); diff --git a/jstests/noPassthroughWithMongod/tcmalloc.js b/jstests/noPassthroughWithMongod/tcmalloc.js index e69850fc8e0..81b8aaec186 100644 --- a/jstests/noPassthroughWithMongod/tcmalloc.js +++ b/jstests/noPassthroughWithMongod/tcmalloc.js @@ -20,4 +20,4 @@ if (hasTcSetParameter()) { assert.commandFailed(db.adminCommand({setParameter: 1, tcmallocReleaseRate: -1.0})); assert.commandFailed(db.adminCommand({setParameter: 1, tcmallocReleaseRate: "foo"})); } -}()); \ No newline at end of file +}()); diff --git a/jstests/noPassthroughWithMongod/ttl_index_capped_collection_fails.js b/jstests/noPassthroughWithMongod/ttl_index_capped_collection_fails.js index 18ce357341f..7f25bad57a4 100644 --- a/jstests/noPassthroughWithMongod/ttl_index_capped_collection_fails.js +++ b/jstests/noPassthroughWithMongod/ttl_index_capped_collection_fails.js @@ -19,4 +19,4 @@ assert.commandWorked(db.createCollection(cappedColl.getName(), {capped: true, si assert.commandWorked(cappedColl.createIndex({foo: 1})); assert.commandFailedWithCode(cappedColl.createIndex({bar: 1}, {expireAfterSeconds: 10}), ErrorCodes.CannotCreateIndex); -})(); \ No newline at end of file +})(); diff --git a/jstests/noPassthroughWithMongod/validate_bson_types.js b/jstests/noPassthroughWithMongod/validate_bson_types.js index ffcdd80306d..82894b66ea0 100644 --- a/jstests/noPassthroughWithMongod/validate_bson_types.js +++ b/jstests/noPassthroughWithMongod/validate_bson_types.js @@ -30,4 +30,4 @@ assert.commandWorked(coll.insert({s: MinKey()})); assert.commandWorked(coll.insert({t: MaxKey()})); // MaxKey assert.commandWorked(coll.validate({checkBSONConformance: true})); -})(); \ No newline at end of file +})(); diff --git a/jstests/noPassthroughWithMongod/validate_timeseries_data_indexes.js b/jstests/noPassthroughWithMongod/validate_timeseries_data_indexes.js index 1136b8dcc5f..d53f28218e6 100644 --- a/jstests/noPassthroughWithMongod/validate_timeseries_data_indexes.js +++ b/jstests/noPassthroughWithMongod/validate_timeseries_data_indexes.js @@ -114,4 +114,4 @@ res = assert.commandWorked(coll.validate()); assert(res.valid, tojson(res)); assert(res.warnings.length == 1, tojson(res)); assert(res.nNonCompliantDocuments == 1, tojson(res)); -})(); \ No newline at end of file +})(); diff --git a/jstests/noPassthroughWithMongod/validate_timeseries_minmax.js b/jstests/noPassthroughWithMongod/validate_timeseries_minmax.js index d2587e5ea49..46d0151ebe0 100644 --- a/jstests/noPassthroughWithMongod/validate_timeseries_minmax.js +++ b/jstests/noPassthroughWithMongod/validate_timeseries_minmax.js @@ -288,4 +288,4 @@ res = bucket.validate(); assert(res.valid, tojson(res)); assert.eq(res.nNonCompliantDocuments, 0); assert.eq(res.warnings.length, 0); -})(); \ No newline at end of file +})(); diff --git a/jstests/noPassthroughWithMongod/validate_timeseries_version.js b/jstests/noPassthroughWithMongod/validate_timeseries_version.js index 2b4d9af7d03..ce95a2dfdac 100644 --- a/jstests/noPassthroughWithMongod/validate_timeseries_version.js +++ b/jstests/noPassthroughWithMongod/validate_timeseries_version.js @@ -119,4 +119,4 @@ res = bucket.validate(); assert(res.valid, tojson(res)); assert.eq(res.nNonCompliantDocuments, 2); assert.eq(res.warnings.length, 1); -})(); \ No newline at end of file +})(); diff --git a/jstests/ocsp/lib/mock_ocsp.js b/jstests/ocsp/lib/mock_ocsp.js index faae43c3bdf..3246d1732bb 100644 --- a/jstests/ocsp/lib/mock_ocsp.js +++ b/jstests/ocsp/lib/mock_ocsp.js @@ -145,4 +145,4 @@ class MockOCSPServer { print("Mock OCSP Server stop complete"); } -} \ No newline at end of file +} diff --git a/jstests/ocsp/lib/ocsp_helpers.js b/jstests/ocsp/lib/ocsp_helpers.js index 90ec04d35ba..130892f04f6 100644 --- a/jstests/ocsp/lib/ocsp_helpers.js +++ b/jstests/ocsp/lib/ocsp_helpers.js @@ -103,4 +103,4 @@ var supportsStapling = function() { return false; } return true; -}; \ No newline at end of file +}; diff --git a/jstests/ocsp/ocsp_basic_ca_responder.js b/jstests/ocsp/ocsp_basic_ca_responder.js index e63ca98d499..49962ebfde6 100644 --- a/jstests/ocsp/ocsp_basic_ca_responder.js +++ b/jstests/ocsp/ocsp_basic_ca_responder.js @@ -56,4 +56,4 @@ test(OCSP_SERVER_SIGNED_BY_INTERMEDIATE_CA_PEM, OCSP_INTERMEDIATE_CA_WITH_ROOT_PEM, OCSP_INTERMEDIATE_RESPONDER); test(OCSP_SERVER_AND_INTERMEDIATE_APPENDED_PEM, OCSP_CA_PEM, OCSP_INTERMEDIATE_RESPONDER); -}()); \ No newline at end of file +}()); diff --git a/jstests/ocsp/ocsp_client_verification_logging.js b/jstests/ocsp/ocsp_client_verification_logging.js index cd883380e7e..6e6423300b4 100644 --- a/jstests/ocsp/ocsp_client_verification_logging.js +++ b/jstests/ocsp/ocsp_client_verification_logging.js @@ -123,4 +123,4 @@ let runTest = (options) => { runTest({connectionHealthLoggingOn: true}); runTest({connectionHealthLoggingOn: false}); runTest({ocspFaultType: FAULT_REVOKED, connectionHealthLoggingOn: true}); -}()); \ No newline at end of file +}()); diff --git a/jstests/ocsp/ocsp_sharding_basic.js b/jstests/ocsp/ocsp_sharding_basic.js index f8b6ed2523e..a196b200a57 100644 --- a/jstests/ocsp/ocsp_sharding_basic.js +++ b/jstests/ocsp/ocsp_sharding_basic.js @@ -86,4 +86,4 @@ st.restartMongos(0); mock_ocsp.stop(); st.stop(); -}()); \ No newline at end of file +}()); diff --git a/jstests/query_golden/expected_output/array_index b/jstests/query_golden/expected_output/array_index index d11fcf001b0..1fe22a29b04 100644 --- a/jstests/query_golden/expected_output/array_index +++ b/jstests/query_golden/expected_output/array_index @@ -67,4 +67,4 @@ Plan skeleton: { } } } -} \ No newline at end of file +} diff --git a/jstests/query_golden/expected_output/extraneous_project b/jstests/query_golden/expected_output/extraneous_project index bf06bad74e9..f48ecfa7da2 100644 --- a/jstests/query_golden/expected_output/extraneous_project +++ b/jstests/query_golden/expected_output/extraneous_project @@ -60,4 +60,4 @@ Plan skeleton: { } } } -} \ No newline at end of file +} diff --git a/jstests/query_golden/expected_output/non_multikey_paths b/jstests/query_golden/expected_output/non_multikey_paths index 2d6fa83adb8..cb89526f293 100644 --- a/jstests/query_golden/expected_output/non_multikey_paths +++ b/jstests/query_golden/expected_output/non_multikey_paths @@ -48,4 +48,4 @@ Leaf stage: { "nodeType" : "IndexScan", "indexDefName" : "many.many.many.many_1", "interval" : "[ 2, 2 ]" -} \ No newline at end of file +} diff --git a/jstests/query_golden/expected_output/not_pushdown b/jstests/query_golden/expected_output/not_pushdown index 10b9235860c..932be8b6c4a 100644 --- a/jstests/query_golden/expected_output/not_pushdown +++ b/jstests/query_golden/expected_output/not_pushdown @@ -47,4 +47,4 @@ Operators used: [ "Neq" ] [jsTest] note: Should be optimized to Neq [jsTest] ---- -Operators used: [ "Neq" ] \ No newline at end of file +Operators used: [ "Neq" ] diff --git a/jstests/query_golden/expected_output/null_missing b/jstests/query_golden/expected_output/null_missing index 6f0598ae154..c1295daf872 100644 --- a/jstests/query_golden/expected_output/null_missing +++ b/jstests/query_golden/expected_output/null_missing @@ -46,4 +46,4 @@ Plan skeleton: { } } } -} \ No newline at end of file +} diff --git a/jstests/query_golden/libs/data/ce_accuracy_test.data b/jstests/query_golden/libs/data/ce_accuracy_test.data index 5698824c8ee..3f2c1bb3a69 100644 --- a/jstests/query_golden/libs/data/ce_accuracy_test.data +++ b/jstests/query_golden/libs/data/ce_accuracy_test.data @@ -1,2 +1,2 @@ // This is a generated file. -const chunkNames = ['ce_data_500_1','ce_data_500_2','ce_data_500_3','ce_data_500_4','ce_data_500_5']; \ No newline at end of file +const chunkNames = ['ce_data_500_1','ce_data_500_2','ce_data_500_3','ce_data_500_4','ce_data_500_5']; diff --git a/jstests/query_golden/libs/data/ce_accuracy_test.schema b/jstests/query_golden/libs/data/ce_accuracy_test.schema index 40cef376748..60513d5c658 100644 --- a/jstests/query_golden/libs/data/ce_accuracy_test.schema +++ b/jstests/query_golden/libs/data/ce_accuracy_test.schema @@ -457,4 +457,4 @@ const dbMetadata = [ "compound_indexes": [], "cardinality": 500 } -]; \ No newline at end of file +]; diff --git a/jstests/query_golden/non_multikey_paths.js b/jstests/query_golden/non_multikey_paths.js index 6a062aad531..07a807aea34 100644 --- a/jstests/query_golden/non_multikey_paths.js +++ b/jstests/query_golden/non_multikey_paths.js @@ -62,4 +62,4 @@ run([{$match: {'one.one.one.many': 2}}]); run([{$match: {'many.one.one.one': 2}}]); run([{$match: {'many.one.one.many': 2}}]); run([{$match: {'many.many.many.many': 2}}]); -})(); \ No newline at end of file +})(); diff --git a/jstests/query_golden/not_pushdown.js b/jstests/query_golden/not_pushdown.js index 9b43725d83f..dc61175e001 100644 --- a/jstests/query_golden/not_pushdown.js +++ b/jstests/query_golden/not_pushdown.js @@ -66,4 +66,4 @@ run('Should stay as Not Traverse Eq', [{$match: {'many.many.many.many': {$ne: 7} // We have an $elemMatch (multikey), but no Traverse underneath the Not. run('Should be optimized to Neq', [{$match: {'many': {$elemMatch: {'one.one.one': {$ne: 7}}}}}]); run('Should be optimized to Neq', [{$match: {'many.one': {$elemMatch: {'one.one': {$ne: 7}}}}}]); -})(); \ No newline at end of file +})(); diff --git a/jstests/replsets/apply_batches_totalMillis.js b/jstests/replsets/apply_batches_totalMillis.js index 7e59f76fe5d..648948647dc 100644 --- a/jstests/replsets/apply_batches_totalMillis.js +++ b/jstests/replsets/apply_batches_totalMillis.js @@ -60,4 +60,4 @@ jsTestLog(`Time recorded after larger batch: ${timeAfterLarge}ms`); assert.gte(timeAfterLarge, timeAfterSmall); rst.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/replsets/apply_transaction_with_yield.js b/jstests/replsets/apply_transaction_with_yield.js index b1705a3e3b9..5b9940cde13 100644 --- a/jstests/replsets/apply_transaction_with_yield.js +++ b/jstests/replsets/apply_transaction_with_yield.js @@ -41,4 +41,4 @@ session.commitTransaction(); replTest.awaitReplication(); replTest.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/replsets/arbiters_not_included_in_w3_wc.js b/jstests/replsets/arbiters_not_included_in_w3_wc.js index aaf35cb4501..b4613094e8d 100644 --- a/jstests/replsets/arbiters_not_included_in_w3_wc.js +++ b/jstests/replsets/arbiters_not_included_in_w3_wc.js @@ -47,4 +47,4 @@ assert.commandFailedWithCode(testColl.insert({"b": 2}, {writeConcern: {w: 3, wti ErrorCodes.WriteConcernFailed); rst.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/replsets/awaitable_hello_errors_on_horizon_change.js b/jstests/replsets/awaitable_hello_errors_on_horizon_change.js index 15b8ec66b0f..e8923a2f04d 100644 --- a/jstests/replsets/awaitable_hello_errors_on_horizon_change.js +++ b/jstests/replsets/awaitable_hello_errors_on_horizon_change.js @@ -133,4 +133,4 @@ runTest("hello"); runTest("isMaster"); runTest("ismaster"); replTest.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/replsets/commit_transaction_initial_sync_data_already_applied.js b/jstests/replsets/commit_transaction_initial_sync_data_already_applied.js index 3502865b351..a841d83eb3a 100644 --- a/jstests/replsets/commit_transaction_initial_sync_data_already_applied.js +++ b/jstests/replsets/commit_transaction_initial_sync_data_already_applied.js @@ -103,4 +103,4 @@ let res = secondary.getDB(dbName).getCollection(collName).find(); assert.eq(res.toArray(), [{_id: 1, a: 0}, {_id: 2}, {_id: 3, a: 1}], res); replTest.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/replsets/disabling_chaining_changes_sync_source.js b/jstests/replsets/disabling_chaining_changes_sync_source.js index bca0f92f1cf..b27e9eddef7 100644 --- a/jstests/replsets/disabling_chaining_changes_sync_source.js +++ b/jstests/replsets/disabling_chaining_changes_sync_source.js @@ -40,4 +40,4 @@ assert.commandWorked(primary.getDB("test").foo.insert({x: 1})); replSet.awaitSyncSource(secondary, primary); replSet.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/replsets/dont_set_invalid_rwconcern.js b/jstests/replsets/dont_set_invalid_rwconcern.js index 9565ca70a60..913b17f3123 100644 --- a/jstests/replsets/dont_set_invalid_rwconcern.js +++ b/jstests/replsets/dont_set_invalid_rwconcern.js @@ -56,4 +56,4 @@ assert.commandFailedWithCode(coll.insert({a: 1}, {writeConcern: {w: "bajority"}} assert.commandWorked(coll.insert({a: 1}, {writeConcern: {w: "multiRegion"}})); rst.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/replsets/drop_collections_two_phase_dbhash.js b/jstests/replsets/drop_collections_two_phase_dbhash.js index 058a6f09aeb..a2fa498c7c7 100644 --- a/jstests/replsets/drop_collections_two_phase_dbhash.js +++ b/jstests/replsets/drop_collections_two_phase_dbhash.js @@ -49,4 +49,4 @@ let failMsg = "dbHash during drop pending phase did not match dbHash after drop assert.eq(dropPendingDbHash, dropCommittedDbHash, failMsg); replTest.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/replsets/election_candidate_and_participant_metrics.js b/jstests/replsets/election_candidate_and_participant_metrics.js index 20c75437c61..4d4e71efb06 100644 --- a/jstests/replsets/election_candidate_and_participant_metrics.js +++ b/jstests/replsets/election_candidate_and_participant_metrics.js @@ -244,4 +244,4 @@ assert.eq( assert.eq(originalPrimaryElectionParticipantMetrics.priorityAtElection, 1); rst.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/replsets/election_handoff_basic.js b/jstests/replsets/election_handoff_basic.js index 2a4376689d8..883c7738cc4 100644 --- a/jstests/replsets/election_handoff_basic.js +++ b/jstests/replsets/election_handoff_basic.js @@ -21,4 +21,4 @@ rst.initiateWithHighElectionTimeout(); ElectionHandoffTest.testElectionHandoff(rst, 0, 1); rst.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/replsets/election_handoff_flip.js b/jstests/replsets/election_handoff_flip.js index 8ce2b804ca8..17b21161e26 100644 --- a/jstests/replsets/election_handoff_flip.js +++ b/jstests/replsets/election_handoff_flip.js @@ -22,4 +22,4 @@ sleep(ElectionHandoffTest.stepDownPeriodSecs * 1000); ElectionHandoffTest.testElectionHandoff(rst, 1, 0); rst.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/replsets/election_handoff_higher_priority.js b/jstests/replsets/election_handoff_higher_priority.js index 12ac4914a40..a3fabee15d3 100644 --- a/jstests/replsets/election_handoff_higher_priority.js +++ b/jstests/replsets/election_handoff_higher_priority.js @@ -30,4 +30,4 @@ rst.initiate(config); ElectionHandoffTest.testElectionHandoff(rst, 0, 2); rst.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/replsets/election_handoff_one_unelectable.js b/jstests/replsets/election_handoff_one_unelectable.js index 970b605197c..79e4571ac21 100644 --- a/jstests/replsets/election_handoff_one_unelectable.js +++ b/jstests/replsets/election_handoff_one_unelectable.js @@ -28,4 +28,4 @@ rst.initiate(config); ElectionHandoffTest.testElectionHandoff(rst, 0, 2); rst.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/replsets/election_participant_new_term_metrics.js b/jstests/replsets/election_participant_new_term_metrics.js index aa76bdf4546..802df586a21 100644 --- a/jstests/replsets/election_participant_new_term_metrics.js +++ b/jstests/replsets/election_participant_new_term_metrics.js @@ -106,4 +106,4 @@ assert(!testNodeElectionParticipantMetrics.newTermAppliedDate, tojson(testNodeElectionParticipantMetrics)); rst.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/replsets/force_reconfig_skips_config_replication.js b/jstests/replsets/force_reconfig_skips_config_replication.js index fe3c10308f0..65d2f6871f9 100644 --- a/jstests/replsets/force_reconfig_skips_config_replication.js +++ b/jstests/replsets/force_reconfig_skips_config_replication.js @@ -48,4 +48,4 @@ secondary.reconnect(primary); replTest.awaitNodesAgreeOnConfigVersion(); replTest.stopSet(); -}()); \ No newline at end of file +}()); diff --git a/jstests/replsets/heartbeat_reconfig_propagates_default_write_concern.js b/jstests/replsets/heartbeat_reconfig_propagates_default_write_concern.js index 309fb7c1344..47ba466472b 100644 --- a/jstests/replsets/heartbeat_reconfig_propagates_default_write_concern.js +++ b/jstests/replsets/heartbeat_reconfig_propagates_default_write_concern.js @@ -56,4 +56,4 @@ function runTest(hasArbiter) { runTest(false /* hasArbiter */); runTest(true /* hasArbiter */); -})(); \ No newline at end of file +})(); diff --git a/jstests/replsets/initial_sync_read_concern_no_oplog.js b/jstests/replsets/initial_sync_read_concern_no_oplog.js index 29e908f5b80..85bc46c810a 100644 --- a/jstests/replsets/initial_sync_read_concern_no_oplog.js +++ b/jstests/replsets/initial_sync_read_concern_no_oplog.js @@ -28,4 +28,4 @@ replSet.awaitReplication(); replSet.awaitSecondaryNodes(); replSet.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/replsets/initial_sync_replicates_prepare_received_during_another_initial_sync.js b/jstests/replsets/initial_sync_replicates_prepare_received_during_another_initial_sync.js index 5e31305b073..7a4136dc262 100644 --- a/jstests/replsets/initial_sync_replicates_prepare_received_during_another_initial_sync.js +++ b/jstests/replsets/initial_sync_replicates_prepare_received_during_another_initial_sync.js @@ -114,4 +114,4 @@ jsTestLog("secondary2 successfully replicated prepared transaction after initial assert.commandWorked(PrepareHelpers.commitTransaction(session, prepareTimestamp)); replSet.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/replsets/initial_sync_write_conflict.js b/jstests/replsets/initial_sync_write_conflict.js index 1571c318d45..1aecfaf28b0 100644 --- a/jstests/replsets/initial_sync_write_conflict.js +++ b/jstests/replsets/initial_sync_write_conflict.js @@ -31,4 +31,4 @@ replSet.awaitSecondaryNodes(); // If the index table contains any entries pointing to invalid document(RecordID), then // validateCollections called during replica stopSet will capture the index corruption and throw // error. -replSet.stopSet(); \ No newline at end of file +replSet.stopSet(); diff --git a/jstests/replsets/kill_reads_with_prepare_conflicts_during_step_down.js b/jstests/replsets/kill_reads_with_prepare_conflicts_during_step_down.js index 56f46b58155..b4f29d454b9 100644 --- a/jstests/replsets/kill_reads_with_prepare_conflicts_during_step_down.js +++ b/jstests/replsets/kill_reads_with_prepare_conflicts_during_step_down.js @@ -109,4 +109,4 @@ assert.commandWorked(sessionDB.adminCommand({ })); rst.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/replsets/libs/prepare_failover_due_to_reconfig.js b/jstests/replsets/libs/prepare_failover_due_to_reconfig.js index cf5b4e58fd8..c2fd990dafc 100644 --- a/jstests/replsets/libs/prepare_failover_due_to_reconfig.js +++ b/jstests/replsets/libs/prepare_failover_due_to_reconfig.js @@ -69,4 +69,4 @@ var testPrepareFailoverDueToReconfig = function(name, reconfigOnPrimary) { assert.docEq(newDoc, doc); rst.stopSet(); -}; \ No newline at end of file +}; diff --git a/jstests/replsets/libs/rollback_resumable_index_build.js b/jstests/replsets/libs/rollback_resumable_index_build.js index 94b64e67a4d..cb8dd676313 100644 --- a/jstests/replsets/libs/rollback_resumable_index_build.js +++ b/jstests/replsets/libs/rollback_resumable_index_build.js @@ -311,4 +311,4 @@ const RollbackResumableIndexBuildTest = class { testInfo.buildUUIDs, testInfo.indexNames); } -}; \ No newline at end of file +}; diff --git a/jstests/replsets/no_chaining.js b/jstests/replsets/no_chaining.js index fe5998395a0..baad3fc58af 100644 --- a/jstests/replsets/no_chaining.js +++ b/jstests/replsets/no_chaining.js @@ -66,4 +66,4 @@ if (!_isWindows()) { assert.eq(false, config.settings.chainingAllowed, tojson(config)); } -replTest.stopSet(); \ No newline at end of file +replTest.stopSet(); diff --git a/jstests/replsets/not_primary_errors_returned_if_client_sends_helloOk.js b/jstests/replsets/not_primary_errors_returned_if_client_sends_helloOk.js index e8cca15064a..9f354c60758 100644 --- a/jstests/replsets/not_primary_errors_returned_if_client_sends_helloOk.js +++ b/jstests/replsets/not_primary_errors_returned_if_client_sends_helloOk.js @@ -74,4 +74,4 @@ assert(res.errmsg.includes("not primary"), res); assert(!res.errmsg.includes("not master"), res); rst.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/replsets/pipelineout.js b/jstests/replsets/pipelineout.js index 90c6805b7a0..ed05a93dee7 100644 --- a/jstests/replsets/pipelineout.js +++ b/jstests/replsets/pipelineout.js @@ -21,4 +21,4 @@ primary.coll.aggregate({$out: "out"}).itcount(); replTest.awaitReplication(); assert.eq(primary.out.find().sort({x: 1}).toArray(), secondary.out.find().sort({x: 1}).toArray()); -replTest.stopSet(); \ No newline at end of file +replTest.stopSet(); diff --git a/jstests/replsets/reconfig_ignores_term_field.js b/jstests/replsets/reconfig_ignores_term_field.js index 7303e849b17..af9b388e728 100644 --- a/jstests/replsets/reconfig_ignores_term_field.js +++ b/jstests/replsets/reconfig_ignores_term_field.js @@ -44,4 +44,4 @@ config = primary.getDB("local").system.replset.findOne(); assert(!config.hasOwnProperty("term")); replTest.stopSet(); -}()); \ No newline at end of file +}()); diff --git a/jstests/replsets/reconfig_only_counts_voters_for_config_commitment.js b/jstests/replsets/reconfig_only_counts_voters_for_config_commitment.js index e6fff47893c..bb6a189458f 100644 --- a/jstests/replsets/reconfig_only_counts_voters_for_config_commitment.js +++ b/jstests/replsets/reconfig_only_counts_voters_for_config_commitment.js @@ -49,4 +49,4 @@ assert.commandWorked(primary.getDB("admin").runCommand({replSetReconfig: config} assert.soon(() => isConfigCommitted(primary)); replTest.stopSet(); -}()); \ No newline at end of file +}()); diff --git a/jstests/replsets/reconfig_only_counts_voting_nodes_for_oplog_commitment.js b/jstests/replsets/reconfig_only_counts_voting_nodes_for_oplog_commitment.js index 51ab53feeab..b68a4c9db00 100644 --- a/jstests/replsets/reconfig_only_counts_voting_nodes_for_oplog_commitment.js +++ b/jstests/replsets/reconfig_only_counts_voting_nodes_for_oplog_commitment.js @@ -59,4 +59,4 @@ restartServerReplication(nodes[1]); replTest.awaitReplication(); replTest.stopSet(); -}()); \ No newline at end of file +}()); diff --git a/jstests/replsets/reconfig_uses_default_protocolVersion.js b/jstests/replsets/reconfig_uses_default_protocolVersion.js index 706872b9522..ed363f3cecb 100644 --- a/jstests/replsets/reconfig_uses_default_protocolVersion.js +++ b/jstests/replsets/reconfig_uses_default_protocolVersion.js @@ -20,4 +20,4 @@ config = primary.getDB("local").system.replset.findOne(); assert.eq(config.protocolVersion, 1); rst.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/replsets/reconstruct_prepared_transactions_initial_sync.js b/jstests/replsets/reconstruct_prepared_transactions_initial_sync.js index e41ea9ca1f4..d0659752c8e 100644 --- a/jstests/replsets/reconstruct_prepared_transactions_initial_sync.js +++ b/jstests/replsets/reconstruct_prepared_transactions_initial_sync.js @@ -271,4 +271,4 @@ assert.commandWorked(sessionDB3.adminCommand( assert.eq(testColl.find({_id: 3}).toArray(), [{_id: 3}]); replTest.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/replsets/reconstruct_prepared_transactions_initial_sync_change_oldest_active_txn_timestamp.js b/jstests/replsets/reconstruct_prepared_transactions_initial_sync_change_oldest_active_txn_timestamp.js index fba44289095..86a9a437dc0 100644 --- a/jstests/replsets/reconstruct_prepared_transactions_initial_sync_change_oldest_active_txn_timestamp.js +++ b/jstests/replsets/reconstruct_prepared_transactions_initial_sync_change_oldest_active_txn_timestamp.js @@ -111,4 +111,4 @@ replTest.awaitReplication(); assert.docEq({_id: 1, a: 1}, secondaryColl.findOne({_id: 1})); replTest.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/replsets/reconstruct_prepared_transactions_initial_sync_no_oplog_application.js b/jstests/replsets/reconstruct_prepared_transactions_initial_sync_no_oplog_application.js index 08ae0fa8252..fb6cf4abde6 100644 --- a/jstests/replsets/reconstruct_prepared_transactions_initial_sync_no_oplog_application.js +++ b/jstests/replsets/reconstruct_prepared_transactions_initial_sync_no_oplog_application.js @@ -202,4 +202,4 @@ assert.commandWorked(sessionDB3.adminCommand( assert.eq(testColl.find({_id: 3}).toArray(), [{_id: 3}]); replTest.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/replsets/rename_replica_set.js b/jstests/replsets/rename_replica_set.js index 19e788171b4..71b47b14814 100644 --- a/jstests/replsets/rename_replica_set.js +++ b/jstests/replsets/rename_replica_set.js @@ -60,4 +60,4 @@ assert.eq(secondaryReplSetName, newReplSetName); assert.commandWorked(coll.insert({b: 2}, {"writeConcern": {"w": 2}})); replTest.stopSet(); -}()); \ No newline at end of file +}()); diff --git a/jstests/replsets/replsethostnametrim.js b/jstests/replsets/replsethostnametrim.js index e66bac8acaf..aa485c93a89 100644 --- a/jstests/replsets/replsethostnametrim.js +++ b/jstests/replsets/replsethostnametrim.js @@ -18,4 +18,4 @@ config = primary.getDB("local").system.replset.findOne(); assert.eq(origHost, config.members[0].host); // print("current (good) config:"); printjson(config); -replTest.stopSet(); \ No newline at end of file +replTest.stopSet(); diff --git a/jstests/replsets/replsettest_checks_wait_for_secondaries.js b/jstests/replsets/replsettest_checks_wait_for_secondaries.js index 321a6670f9a..f5eebbc6abb 100644 --- a/jstests/replsets/replsettest_checks_wait_for_secondaries.js +++ b/jstests/replsets/replsettest_checks_wait_for_secondaries.js @@ -41,4 +41,4 @@ assert.commandWorked(secondary.adminCommand( // stopSet() will call checkReplicatedDBHashes rst.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/replsets/replsettest_control_1_node.js b/jstests/replsets/replsettest_control_1_node.js index a9930deb6a2..72e5ee04fbc 100644 --- a/jstests/replsets/replsettest_control_1_node.js +++ b/jstests/replsets/replsettest_control_1_node.js @@ -10,4 +10,4 @@ const replTest = new ReplSetTest({name: 'replsettest_control_1_node', nodes: 1}) replTest.startSet(); replTest.initiate(); replTest.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/replsets/replsettest_remove_then_stopset.js b/jstests/replsets/replsettest_remove_then_stopset.js index bca9aeccb9d..5351f98efe1 100644 --- a/jstests/replsets/replsettest_remove_then_stopset.js +++ b/jstests/replsets/replsettest_remove_then_stopset.js @@ -9,4 +9,4 @@ const replTest = new ReplSetTest({nodes: 1}); replTest.startSet(); replTest.remove(0); replTest.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/replsets/restart_index_build_if_resume_interrupted_by_rollback.js b/jstests/replsets/restart_index_build_if_resume_interrupted_by_rollback.js index 52296b9fffd..83fcd526413 100644 --- a/jstests/replsets/restart_index_build_if_resume_interrupted_by_rollback.js +++ b/jstests/replsets/restart_index_build_if_resume_interrupted_by_rollback.js @@ -20,4 +20,4 @@ RollbackResumableIndexBuildTest.runResumeInterruptedByRollback( rollbackTest, dbName, [{a: 1}, {a: 2}], {a: 1}, [{a: 3}], [{a: 4}]); rollbackTest.stop(); -})(); \ No newline at end of file +})(); diff --git a/jstests/replsets/resync_majority_member.js b/jstests/replsets/resync_majority_member.js index 90058b89230..93fdeedf9b9 100644 --- a/jstests/replsets/resync_majority_member.js +++ b/jstests/replsets/resync_majority_member.js @@ -127,4 +127,4 @@ assert.eq(0, resyncNode.getDB(dbName)[collName].find(disappearingDoc).itcount()) // We expect node 1 to have crashed. rst.stop(0, undefined, {allowedExitCode: MongoRunner.EXIT_ABORT}); rst.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/replsets/rollback_capped_deletions.js b/jstests/replsets/rollback_capped_deletions.js index 86928d2601f..233384ff8e5 100644 --- a/jstests/replsets/rollback_capped_deletions.js +++ b/jstests/replsets/rollback_capped_deletions.js @@ -45,4 +45,4 @@ try { } rollbackTest.stop(); -})(); \ No newline at end of file +})(); diff --git a/jstests/replsets/rollback_dup_ids_clean_shutdown_during_rollback.js b/jstests/replsets/rollback_dup_ids_clean_shutdown_during_rollback.js index db623b1d67d..361ff74cfa3 100644 --- a/jstests/replsets/rollback_dup_ids_clean_shutdown_during_rollback.js +++ b/jstests/replsets/rollback_dup_ids_clean_shutdown_during_rollback.js @@ -52,4 +52,4 @@ rollbackTest.transitionToSteadyStateOperations(); // Check the replica set. rollbackTest.stop(); -}()); \ No newline at end of file +}()); diff --git a/jstests/replsets/rollback_resumable_index_build_mixed_phases.js b/jstests/replsets/rollback_resumable_index_build_mixed_phases.js index c5b9517620b..bfe18551cfe 100644 --- a/jstests/replsets/rollback_resumable_index_build_mixed_phases.js +++ b/jstests/replsets/rollback_resumable_index_build_mixed_phases.js @@ -137,4 +137,4 @@ runRollbackTo( [{skippedPhaseLogID: 20391}, {skippedPhaseLogID: 20392}]); rollbackTest.stop(); -})(); \ No newline at end of file +})(); diff --git a/jstests/replsets/rollback_test_control.js b/jstests/replsets/rollback_test_control.js index bf70a7a84a0..082b05da528 100644 --- a/jstests/replsets/rollback_test_control.js +++ b/jstests/replsets/rollback_test_control.js @@ -13,4 +13,4 @@ rollbackTest.transitionToSyncSourceOperationsBeforeRollback(); rollbackTest.transitionToSyncSourceOperationsDuringRollback(); rollbackTest.transitionToSteadyStateOperations(); rollbackTest.stop(); -}()); \ No newline at end of file +}()); diff --git a/jstests/replsets/rollback_time_limit_param.js b/jstests/replsets/rollback_time_limit_param.js index 345e38f5e89..de1ffbf494d 100644 --- a/jstests/replsets/rollback_time_limit_param.js +++ b/jstests/replsets/rollback_time_limit_param.js @@ -50,4 +50,4 @@ assert.commandFailedWithCode(primary.adminCommand({setParameter: 1, rollbackTime ErrorCodes.BadValue); rst.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/replsets/rollback_unclean_shutdowns_parameter_obeyed.js b/jstests/replsets/rollback_unclean_shutdowns_parameter_obeyed.js index 389a7c4933f..b60c6916131 100644 --- a/jstests/replsets/rollback_unclean_shutdowns_parameter_obeyed.js +++ b/jstests/replsets/rollback_unclean_shutdowns_parameter_obeyed.js @@ -36,4 +36,4 @@ rollbackTest.transitionToSteadyStateOperations(); assert.eq(rawMongoProgramOutput().search(/Detected unclean shutdown/), -1); rollbackTest.stop(); -}()); \ No newline at end of file +}()); diff --git a/jstests/replsets/rollback_with_coalesced_txn_table_updates_from_vectored_inserts.js b/jstests/replsets/rollback_with_coalesced_txn_table_updates_from_vectored_inserts.js index b56a40c51ab..08a62e50f63 100644 --- a/jstests/replsets/rollback_with_coalesced_txn_table_updates_from_vectored_inserts.js +++ b/jstests/replsets/rollback_with_coalesced_txn_table_updates_from_vectored_inserts.js @@ -118,4 +118,4 @@ assert.commandWorked(primary.getCollection(ns).runCommand("insert", { })); rst.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/replsets/server_status_repl.js b/jstests/replsets/server_status_repl.js index 058fc14c5fa..eb04673d138 100644 --- a/jstests/replsets/server_status_repl.js +++ b/jstests/replsets/server_status_repl.js @@ -14,4 +14,4 @@ assert.commandWorked(testDB.b.insert({}, {writeConcern: {w: 2}})); var ss = primary.getDB("test").serverStatus({repl: 1}); assert.neq(ss.repl.replicationProgress, null, tojson(ss.repl)); -rt.stopSet(); \ No newline at end of file +rt.stopSet(); diff --git a/jstests/replsets/server_status_repl_is_writable_primary.js b/jstests/replsets/server_status_repl_is_writable_primary.js index d33eaee96b4..092f7933721 100644 --- a/jstests/replsets/server_status_repl_is_writable_primary.js +++ b/jstests/replsets/server_status_repl_is_writable_primary.js @@ -13,4 +13,4 @@ assert.eq(serverStatusMetricsRepl.isWritablePrimary, true, "repl.isWritablePrima assert.eq( serverStatusMetricsRepl.hasOwnProperty('ismaster'), false, "repl.ismaster should be undefined"); replTest.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/replsets/single_server_majority.js b/jstests/replsets/single_server_majority.js index 039d8ccebeb..ee81a5306a9 100644 --- a/jstests/replsets/single_server_majority.js +++ b/jstests/replsets/single_server_majority.js @@ -10,4 +10,4 @@ col.drop(); // see if we can get a majority write on this single server assert.commandWorked(col.save({a: "test"}, {writeConcern: {w: 'majority'}})); -MongoRunner.stopMongod(mongod); \ No newline at end of file +MongoRunner.stopMongod(mongod); diff --git a/jstests/replsets/split_horizon_hostname_startup.js b/jstests/replsets/split_horizon_hostname_startup.js index fa6b05fc587..0c310cc9278 100644 --- a/jstests/replsets/split_horizon_hostname_startup.js +++ b/jstests/replsets/split_horizon_hostname_startup.js @@ -70,4 +70,4 @@ assert.commandFailed(output); assert(output.errmsg.includes("Found split horizon configuration using IP")); MongoRunner.stopMongod(mongod); -}()); \ No newline at end of file +}()); diff --git a/jstests/replsets/split_horizon_hostname_validation.js b/jstests/replsets/split_horizon_hostname_validation.js index c9640d5d33b..40f9144f538 100644 --- a/jstests/replsets/split_horizon_hostname_validation.js +++ b/jstests/replsets/split_horizon_hostname_validation.js @@ -51,4 +51,4 @@ testConfig("a", "12.34.56.78/20", true); // Make sure setting this parameter disables the check testConfig("a", "12.34.56.78", false, {setParameter: {disableSplitHorizonIPCheck: true}}); testConfig("a", "12.34.56.78/20", false, {setParameter: {disableSplitHorizonIPCheck: true}}); -}()); \ No newline at end of file +}()); diff --git a/jstests/replsets/split_horizon_startup_warning.js b/jstests/replsets/split_horizon_startup_warning.js index a051bbb0e92..22a7f64948e 100644 --- a/jstests/replsets/split_horizon_startup_warning.js +++ b/jstests/replsets/split_horizon_startup_warning.js @@ -53,4 +53,4 @@ function testStartupWarnings(horizonName, options = {}) { // Check for startup warnings about IP addresses in SplitHorizon mappings testStartupWarnings("12.34.56.78"); testStartupWarnings("12.34.56.78/20"); -})(); \ No newline at end of file +})(); diff --git a/jstests/replsets/stable_timestamp_can_advance_after_oplog_hole_abort.js b/jstests/replsets/stable_timestamp_can_advance_after_oplog_hole_abort.js index ad478287793..af5567263f1 100644 --- a/jstests/replsets/stable_timestamp_can_advance_after_oplog_hole_abort.js +++ b/jstests/replsets/stable_timestamp_can_advance_after_oplog_hole_abort.js @@ -194,4 +194,4 @@ testInsert(); testUnpreparedTransactionCommit(); replTest.stopSet(); -}()); \ No newline at end of file +}()); diff --git a/jstests/replsets/step_down_chaining_disabled.js b/jstests/replsets/step_down_chaining_disabled.js index b99f18ce4ab..45916684340 100644 --- a/jstests/replsets/step_down_chaining_disabled.js +++ b/jstests/replsets/step_down_chaining_disabled.js @@ -30,4 +30,4 @@ assert.commandWorked(newPrimary.adminCommand({setParameter: 1, writePeriodicNoop replSet.awaitSyncSource(secondary, newPrimary); replSet.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/replsets/stepdown_during_set_fcv.js b/jstests/replsets/stepdown_during_set_fcv.js index b75543dac0c..c2338f380a6 100644 --- a/jstests/replsets/stepdown_during_set_fcv.js +++ b/jstests/replsets/stepdown_during_set_fcv.js @@ -66,4 +66,4 @@ if (lastLTSFCV !== lastContinuousFCV) { jsTestLog("Running test against lastContinuousFCV"); runTest(lastContinuousFCV); } -})(); \ No newline at end of file +})(); diff --git a/jstests/replsets/sync_passive.js b/jstests/replsets/sync_passive.js index 1c9f385e918..a3bd34787c5 100644 --- a/jstests/replsets/sync_passive.js +++ b/jstests/replsets/sync_passive.js @@ -81,4 +81,4 @@ replTest.awaitReplication(null, null, liveSecondaries); print("bring #1 back up, make sure everything's okay"); replTest.restart(1); -replTest.stopSet(); \ No newline at end of file +replTest.stopSet(); diff --git a/jstests/serial_run/README b/jstests/serial_run/README index 73bc3344f1d..5b5a2f10740 100644 --- a/jstests/serial_run/README +++ b/jstests/serial_run/README @@ -1,2 +1,2 @@ This suite contains tests that are unusually susceptible to availability of machine resources; -therefore, this suite is always run with --jobs=1 via Evergreen config. \ No newline at end of file +therefore, this suite is always run with --jobs=1 via Evergreen config. diff --git a/jstests/sharding/agg_project_limit_pipe_split.js b/jstests/sharding/agg_project_limit_pipe_split.js index 7f5c7a51951..09612963e80 100644 --- a/jstests/sharding/agg_project_limit_pipe_split.js +++ b/jstests/sharding/agg_project_limit_pipe_split.js @@ -75,4 +75,4 @@ assert.eq( agg.toArray()); shardingTest.stop(); -})(); \ No newline at end of file +})(); diff --git a/jstests/sharding/change_stream_against_shard_mongod.js b/jstests/sharding/change_stream_against_shard_mongod.js index e66571caeb5..e42261faed0 100644 --- a/jstests/sharding/change_stream_against_shard_mongod.js +++ b/jstests/sharding/change_stream_against_shard_mongod.js @@ -46,4 +46,4 @@ for (let event of expectedEvents) { } st.stop(); -})(); \ No newline at end of file +})(); diff --git a/jstests/sharding/change_streams_unsharded_update_resume.js b/jstests/sharding/change_streams_unsharded_update_resume.js index be692f6e758..a13b3077b1b 100644 --- a/jstests/sharding/change_streams_unsharded_update_resume.js +++ b/jstests/sharding/change_streams_unsharded_update_resume.js @@ -62,4 +62,4 @@ assert.soon(() => { }); st.stop(); -})(); \ No newline at end of file +})(); diff --git a/jstests/sharding/change_streams_update_lookup_shard_metadata_missing.js b/jstests/sharding/change_streams_update_lookup_shard_metadata_missing.js index cb830f804e1..769646ab012 100644 --- a/jstests/sharding/change_streams_update_lookup_shard_metadata_missing.js +++ b/jstests/sharding/change_streams_update_lookup_shard_metadata_missing.js @@ -75,4 +75,4 @@ assert.soon(() => csCursor.hasNext()); assert.docEq({_id: 0, a: -100, updated: true}, csCursor.next().fullDocument); st.stop(); -})(); \ No newline at end of file +})(); diff --git a/jstests/sharding/compound_hashed_shard_key_covered_query.js b/jstests/sharding/compound_hashed_shard_key_covered_query.js index 33996d25c0e..3f405a2205f 100644 --- a/jstests/sharding/compound_hashed_shard_key_covered_query.js +++ b/jstests/sharding/compound_hashed_shard_key_covered_query.js @@ -200,4 +200,4 @@ validateFindCmdOutputAndPlan({ }); st.stop(); -})(); \ No newline at end of file +})(); diff --git a/jstests/sharding/concurrent_create_indexes_with_drop_and_create_sharded_collection.js b/jstests/sharding/concurrent_create_indexes_with_drop_and_create_sharded_collection.js index e8b6965f96f..b3161df8bf9 100644 --- a/jstests/sharding/concurrent_create_indexes_with_drop_and_create_sharded_collection.js +++ b/jstests/sharding/concurrent_create_indexes_with_drop_and_create_sharded_collection.js @@ -79,4 +79,4 @@ let rs0Collections = assert.commandWorked( assert.eq(1, rs0Collections.cursor.firstBatch.length); st.stop(); -})(); \ No newline at end of file +})(); diff --git a/jstests/sharding/documents_sharded.js b/jstests/sharding/documents_sharded.js index 85b20cd29c3..c5eabc77909 100644 --- a/jstests/sharding/documents_sharded.js +++ b/jstests/sharding/documents_sharded.js @@ -157,4 +157,4 @@ assert.throwsWithCode(() => { }, ErrorCodes.InvalidNamespace); st.stop(); -})(); \ No newline at end of file +})(); diff --git a/jstests/sharding/libs/find_chunks_util.js b/jstests/sharding/libs/find_chunks_util.js index a28ea755418..06a19155b4f 100644 --- a/jstests/sharding/libs/find_chunks_util.js +++ b/jstests/sharding/libs/find_chunks_util.js @@ -67,4 +67,4 @@ var findChunksUtil = (function() { countChunksForNs, getChunksJoinClause, }; -})(); \ No newline at end of file +})(); diff --git a/jstests/sharding/mongos_helloOk_protocol.js b/jstests/sharding/mongos_helloOk_protocol.js index 2579d0404a6..18f102cba30 100644 --- a/jstests/sharding/mongos_helloOk_protocol.js +++ b/jstests/sharding/mongos_helloOk_protocol.js @@ -23,4 +23,4 @@ assert.eq("boolean", typeof res.helloOk, "helloOk field is not a boolean" + tojs assert.eq(res.helloOk, true); st.stop(); -})(); \ No newline at end of file +})(); diff --git a/jstests/sharding/movechunk_commit_changelog_stats.js b/jstests/sharding/movechunk_commit_changelog_stats.js index 2bfb9160fba..7e66dc974df 100644 --- a/jstests/sharding/movechunk_commit_changelog_stats.js +++ b/jstests/sharding/movechunk_commit_changelog_stats.js @@ -39,4 +39,4 @@ assertCountsInChangelog(); mongos.getDB(kDbName).fooHashed.drop(); st.stop(); -})(); \ No newline at end of file +})(); diff --git a/jstests/sharding/query/metadata_removal.js b/jstests/sharding/query/metadata_removal.js index 298d1f74099..495817bf6a1 100644 --- a/jstests/sharding/query/metadata_removal.js +++ b/jstests/sharding/query/metadata_removal.js @@ -43,4 +43,4 @@ try { } finally { st.stop(); } -})(); \ No newline at end of file +})(); diff --git a/jstests/sharding/query/mongos_query_comment.js b/jstests/sharding/query/mongos_query_comment.js index 873f8017960..3d225d39039 100644 --- a/jstests/sharding/query/mongos_query_comment.js +++ b/jstests/sharding/query/mongos_query_comment.js @@ -53,4 +53,4 @@ profilerHasSingleMatchingEntryOrThrow({ }); st.stop(); -})(); \ No newline at end of file +})(); diff --git a/jstests/sharding/query/shard_key_prefix_with_in_operator.js b/jstests/sharding/query/shard_key_prefix_with_in_operator.js index 8b9548e4571..c395f29c8da 100644 --- a/jstests/sharding/query/shard_key_prefix_with_in_operator.js +++ b/jstests/sharding/query/shard_key_prefix_with_in_operator.js @@ -19,4 +19,4 @@ assert.commandWorked(db.adminCommand({shardCollection: coll.getFullName(), key: assert.doesNotThrow(() => coll.find({a: {$in: [/myRegex/, 1]}}).toArray()); shardingTest.stop(); -}()); \ No newline at end of file +}()); diff --git a/jstests/sharding/read_pref_with_hedging_mode.js b/jstests/sharding/read_pref_with_hedging_mode.js index 408d93e4ca7..b1e6d85aa7a 100644 --- a/jstests/sharding/read_pref_with_hedging_mode.js +++ b/jstests/sharding/read_pref_with_hedging_mode.js @@ -46,4 +46,4 @@ assert.commandWorked(st.s.getDB(dbName).runCommand( {distinct: collName, key: "x", $readPreference: {mode: "primaryPreferred", hedge: {}}})); st.stop(); -})(); \ No newline at end of file +})(); diff --git a/jstests/sharding/replication_with_undefined_shard_key.js b/jstests/sharding/replication_with_undefined_shard_key.js index a363ff06b9e..600887b33f8 100644 --- a/jstests/sharding/replication_with_undefined_shard_key.js +++ b/jstests/sharding/replication_with_undefined_shard_key.js @@ -27,4 +27,4 @@ assert.commandWorked( mongosColl.remove({}, {writeConcern: {w: 2, wtimeout: ReplSetTest.kDefaultTimeoutMS}})); st.stop(); -})(); \ No newline at end of file +})(); diff --git a/jstests/sharding/sharding_with_keyfile.key b/jstests/sharding/sharding_with_keyfile.key index fe3344b9444..edac9fdf434 100644 --- a/jstests/sharding/sharding_with_keyfile.key +++ b/jstests/sharding/sharding_with_keyfile.key @@ -1,3 +1,3 @@ aBcDeFg 1010101 -JJJJJJJ \ No newline at end of file +JJJJJJJ diff --git a/jstests/sharding/shardingtest_control_12_nodes.js b/jstests/sharding/shardingtest_control_12_nodes.js index b598f264659..53afb03fbc7 100644 --- a/jstests/sharding/shardingtest_control_12_nodes.js +++ b/jstests/sharding/shardingtest_control_12_nodes.js @@ -13,4 +13,4 @@ (function() { const st = new ShardingTest({shards: 4, rs: {nodes: 3}, mongos: 1}); st.stop(); -})(); \ No newline at end of file +})(); diff --git a/jstests/sharding/shardingtest_control_1_node.js b/jstests/sharding/shardingtest_control_1_node.js index 516e01cb487..7944097bf01 100644 --- a/jstests/sharding/shardingtest_control_1_node.js +++ b/jstests/sharding/shardingtest_control_1_node.js @@ -8,4 +8,4 @@ (function() { const st = new ShardingTest({shards: 1, rs: {nodes: 1}, mongos: 1}); st.stop(); -})(); \ No newline at end of file +})(); diff --git a/jstests/sharding/split_stale_mongos.js b/jstests/sharding/split_stale_mongos.js index ddfe820c05c..58683cb1fed 100644 --- a/jstests/sharding/split_stale_mongos.js +++ b/jstests/sharding/split_stale_mongos.js @@ -17,4 +17,4 @@ for (var i = 0; i < 100; i += 10) { st.configRS.awaitLastOpCommitted(); // Ensure that other mongos sees the previous split } -st.stop(); \ No newline at end of file +st.stop(); diff --git a/jstests/sharding/update_zone_key_range.js b/jstests/sharding/update_zone_key_range.js index eae462f7c6f..cd4909638be 100644 --- a/jstests/sharding/update_zone_key_range.js +++ b/jstests/sharding/update_zone_key_range.js @@ -151,4 +151,4 @@ compoundKeyTestCases.forEach(function(test) { }); st.stop(); -})(); \ No newline at end of file +})(); diff --git a/jstests/slow1/repeated_crash_recovery_with_history_store.js b/jstests/slow1/repeated_crash_recovery_with_history_store.js index 2f63e9cbef0..f2e65244b94 100644 --- a/jstests/slow1/repeated_crash_recovery_with_history_store.js +++ b/jstests/slow1/repeated_crash_recovery_with_history_store.js @@ -100,4 +100,4 @@ for (let i = 0; i < 10; i++) { } rst.stopSet(); -})(); \ No newline at end of file +})(); diff --git a/jstests/ssl/crl_x509_rotate.js b/jstests/ssl/crl_x509_rotate.js index e4559307a9f..28a82ad0583 100644 --- a/jstests/ssl/crl_x509_rotate.js +++ b/jstests/ssl/crl_x509_rotate.js @@ -68,4 +68,4 @@ out = runMongoProgram("mongo", assert.eq(out, 0, "Mongo invocation failed"); MongoRunner.stopMongod(mongod); -}()); \ No newline at end of file +}()); diff --git a/jstests/ssl/openssl_ciphersuites.js b/jstests/ssl/openssl_ciphersuites.js index 770a8fb8c54..9b3811988d4 100644 --- a/jstests/ssl/openssl_ciphersuites.js +++ b/jstests/ssl/openssl_ciphersuites.js @@ -55,4 +55,4 @@ sleep(30000); assert.eq( false, testConn(), "Client successfully connected to server with invalid ciphersuite config."); MongoRunner.stopMongod(mongod); -})(); \ No newline at end of file +})(); diff --git a/jstests/ssl/server_x509_rotate.js b/jstests/ssl/server_x509_rotate.js index 35d9f5a72c0..52c7c53df5d 100644 --- a/jstests/ssl/server_x509_rotate.js +++ b/jstests/ssl/server_x509_rotate.js @@ -54,4 +54,4 @@ out = runMongoProgram("mongo", assert.eq(out, 0, "Mongo invocation failed"); MongoRunner.stopMongod(mongod); -}()); \ No newline at end of file +}()); diff --git a/jstests/ssl/ssl_ingress_conn_metrics.js b/jstests/ssl/ssl_ingress_conn_metrics.js index 333d3015a90..b179c58224c 100644 --- a/jstests/ssl/ssl_ingress_conn_metrics.js +++ b/jstests/ssl/ssl_ingress_conn_metrics.js @@ -117,4 +117,4 @@ let runTest = (connectionHealthLoggingOn) => { // Parameterized on turning connection health logging on/off. runTest(true); runTest(false); -}()); \ No newline at end of file +}()); diff --git a/jstests/ssl/ssl_weak.js b/jstests/ssl/ssl_weak.js index 90f41f136cb..7827093ea6b 100644 --- a/jstests/ssl/ssl_weak.js +++ b/jstests/ssl/ssl_weak.js @@ -44,4 +44,4 @@ mongo = runMongoProgram( // 1 is the exit code for failure assert(mongo == 1); -MongoRunner.stopMongod(md2); \ No newline at end of file +MongoRunner.stopMongod(md2); diff --git a/jstests/ssl/x509/mkdigest.py b/jstests/ssl/x509/mkdigest.py index b9926b48dfa..a7b0bdb448d 100755 --- a/jstests/ssl/x509/mkdigest.py +++ b/jstests/ssl/x509/mkdigest.py @@ -39,4 +39,4 @@ def main(): make_digest(fname, args.type, args.digest) if __name__ == '__main__': - main() \ No newline at end of file + main() diff --git a/jstests/ssl/x509_rotate_missing_files.js b/jstests/ssl/x509_rotate_missing_files.js index 45038dabfb3..ff6decbb7c8 100644 --- a/jstests/ssl/x509_rotate_missing_files.js +++ b/jstests/ssl/x509_rotate_missing_files.js @@ -49,4 +49,4 @@ for (let certType of certTypes) { } MongoRunner.stopMongod(mongod); -})(); \ No newline at end of file +})(); diff --git a/src/mongo/bson/util/bson_column_compressed_data.inl b/src/mongo/bson/util/bson_column_compressed_data.inl index 0fbf12a0717..bfabaf7ef05 100644 --- a/src/mongo/bson/util/bson_column_compressed_data.inl +++ b/src/mongo/bson/util/bson_column_compressed_data.inl @@ -9420,4 +9420,4 @@ "F1E85yEwAAAAAAhKwLCwyO4HIXDJkJzt2htw+" "s6xp2VGIICuxPCgzQgKYMTg0NAAAAAACBCQwYsMABHVAKCGACQ2ABC4H6PwAAAAAAAAsAAAAAAAAAgcuM0AtgGbQgi7NRD9jHB" "BSACCQGAghSDgSACwAAAPw/ABCACwAAAPw/" -"ABCATAAABgAgAACALAAAAAAgAACADAAAAAAAAACArQUOAAAAAACADZ8AAAAAAACADZ8AAAAAAAAAAA==" \ No newline at end of file +"ABCATAAABgAgAACALAAAAAAgAACADAAAAAAAAACArQUOAAAAAACADZ8AAAAAAACADZ8AAAAAAAAAAA==" diff --git a/src/mongo/crypto/fle_options.idl b/src/mongo/crypto/fle_options.idl index 39a0088e26d..f21eacf8a7c 100644 --- a/src/mongo/crypto/fle_options.idl +++ b/src/mongo/crypto/fle_options.idl @@ -68,4 +68,4 @@ server_parameters: protocol version 2" set_at: cluster cpp_varname: "fleCompactionOptions" - cpp_vartype: FLECompactionOptions \ No newline at end of file + cpp_vartype: FLECompactionOptions diff --git a/src/mongo/crypto/scripts/encryption_fle2_test_vectors.sh b/src/mongo/crypto/scripts/encryption_fle2_test_vectors.sh index 85fef45c3e6..dde59c37106 100644 --- a/src/mongo/crypto/scripts/encryption_fle2_test_vectors.sh +++ b/src/mongo/crypto/scripts/encryption_fle2_test_vectors.sh @@ -15,4 +15,4 @@ cat <= 7.0 # TODO SERVER-68084: remove this flag - type: optionalBool \ No newline at end of file + type: optionalBool diff --git a/src/mongo/db/s/resharding/resharding_change_event_o2_field.idl b/src/mongo/db/s/resharding/resharding_change_event_o2_field.idl index 697b3dd1176..56622eb3a0b 100644 --- a/src/mongo/db/s/resharding/resharding_change_event_o2_field.idl +++ b/src/mongo/db/s/resharding/resharding_change_event_o2_field.idl @@ -60,4 +60,4 @@ structs: type: namespacestring reshardingUUID: type: uuid - description: "The UUID for this resharding operation." \ No newline at end of file + description: "The UUID for this resharding operation." diff --git a/src/mongo/util/pretty_printer_test_launcher.py.in b/src/mongo/util/pretty_printer_test_launcher.py.in index 398a8c0335c..713d9366195 100644 --- a/src/mongo/util/pretty_printer_test_launcher.py.in +++ b/src/mongo/util/pretty_printer_test_launcher.py.in @@ -22,4 +22,4 @@ proc = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) stdout, stderr = proc.communicate() print(stdout.decode('utf-8')) -exit(proc.returncode) \ No newline at end of file +exit(proc.returncode)