From b09eb404b3e0ac875075f717fc0b41e1b174207f Mon Sep 17 00:00:00 2001 From: Friedrich von Never Date: Sat, 27 Apr 2024 20:16:27 +0200 Subject: [PATCH 1/2] Add support for any Java .properties --- src/reuse/comment.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/reuse/comment.py b/src/reuse/comment.py index 92782466..69991052 100644 --- a/src/reuse/comment.py +++ b/src/reuse/comment.py @@ -733,6 +733,7 @@ class XQueryCommentStyle(CommentStyle): ".pri": PythonCommentStyle, ".pro": PythonCommentStyle, ".props": HtmlCommentStyle, # MSBuild files + ".properties": PythonCommentStyle, ".proto": CCommentStyle, ".ps1": PythonCommentStyle, # TODO: Multiline comments ".psm1": PythonCommentStyle, # TODO: Multiline comments @@ -865,7 +866,6 @@ class XQueryCommentStyle(CommentStyle): "Gemfile": PythonCommentStyle, "go.mod": CCommentStyle, "go.sum": UncommentableCommentStyle, - "gradle-wrapper.properties": PythonCommentStyle, "gradlew": PythonCommentStyle, "Jenkinsfile": CCommentStyle, "Makefile.am": PythonCommentStyle, @@ -880,7 +880,6 @@ class XQueryCommentStyle(CommentStyle): "requirements.txt": PythonCommentStyle, "ROOT": MlCommentStyle, "setup.cfg": PythonCommentStyle, - "sonar-project.properties": PythonCommentStyle, "yarn.lock": UncommentableCommentStyle, } From 4dc1b0544997dddf8ba77f5c7897f586aa94f435 Mon Sep 17 00:00:00 2001 From: Friedrich von Never Date: Sat, 27 Apr 2024 22:38:04 +0200 Subject: [PATCH 2/2] Add a changelog entry --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a0c18b8..85bc2b1d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -50,6 +50,7 @@ CLI command and its behaviour. There are no guarantees of stability for the `.vbproj`) (#940) - Cargo (`Cargo.lock`) (#937) - Clang-Tidy (`.clang-tidy`) (#961) + - Java `.properties` files (#968) - Added comment styles: - `man` for UNIX Man pages (`.man`) (#954)