From eb9cdf789b12e48216bd11ccf067c0689fcdea59 Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Wed, 5 Mar 2025 10:21:41 +0100 Subject: [PATCH] Trailing dots for Javadoc --- standardize_test_format/__init__.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/standardize_test_format/__init__.py b/standardize_test_format/__init__.py index debc17b..a9045ce 100644 --- a/standardize_test_format/__init__.py +++ b/standardize_test_format/__init__.py @@ -90,8 +90,14 @@ def format_test_prefix( ) -> str: indent = '' str_builder = [] + if with_javadoc: - str_builder += ['/** ', description, ' */', '\n'] + str_builder += ['/** '] + str_builder += [description] + if not description.endswith(END_SYMBOLS): + str_builder += ['.'] + str_builder += [' */', '\n'] + str_builder += [indent, '@', annotation] if with_display_name: str_builder += ['\n', indent, '@DisplayName("']