Skip to content

Commit

Permalink
Merge pull request #870 from kbroch-rivosinc/dev/kbroch/support-bazel…
Browse files Browse the repository at this point in the history
…-filetype

add support for bazel files
  • Loading branch information
carmenbianca authored Nov 28, 2023
2 parents 4de4450 + c72b973 commit a1f2598
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ Contributors

- Markus Haug <[email protected]>

- Kevin Broch

Translators
-----------

Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ CLI command and its behaviour. There are no guarantees of stability for the
- More file types are recognised:
- Julia (`.jl`) (#815)
- Modern Fortran (`.f90`) (#836)
- Bazel (`.bzl`) (#870)
- Display recommendations for steps to fix found issues during a lint. (#698)
- Add support for Pijul VCS. Pijul support is not added to the Docker image.
(#858)
Expand Down
3 changes: 3 additions & 0 deletions src/reuse/comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,7 @@ class XQueryCommentStyle(CommentStyle):
".bbappend": PythonCommentStyle,
".bbclass": PythonCommentStyle,
".bib": BibTexCommentStyle,
".bzl": PythonCommentStyle,
".c": CCommentStyle,
".cc": CCommentStyle,
".cjs": CCommentStyle,
Expand Down Expand Up @@ -758,6 +759,8 @@ class XQueryCommentStyle(CommentStyle):

FILENAME_COMMENT_STYLE_MAP = {
".bashrc": PythonCommentStyle,
".bazelignore": PythonCommentStyle,
".bazelrc": PythonCommentStyle,
".browserslist": PythonCommentStyle,
".clang-format": PythonCommentStyle,
".coveragerc": PythonCommentStyle,
Expand Down

0 comments on commit a1f2598

Please sign in to comment.