Skip to content

Commit

Permalink
Merge pull request #968 from ForNeVeR/feature/properties
Browse files Browse the repository at this point in the history
Add support for any Java .properties
  • Loading branch information
carmenbianca authored Apr 27, 2024
2 parents bf785b0 + 4dc1b05 commit f8272bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
3 changes: 1 addition & 2 deletions src/reuse/comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand All @@ -880,7 +880,6 @@ class XQueryCommentStyle(CommentStyle):
"requirements.txt": PythonCommentStyle,
"ROOT": MlCommentStyle,
"setup.cfg": PythonCommentStyle,
"sonar-project.properties": PythonCommentStyle,
"yarn.lock": UncommentableCommentStyle,
}

Expand Down

0 comments on commit f8272bc

Please sign in to comment.