Skip to content

Commit

Permalink
Add .htaccess and .npmrc support
Browse files Browse the repository at this point in the history
Add support for Apache HTTP server ".htaccess" file and npm ".npmrc" file

refs fsfe#985
  • Loading branch information
benoit-rolandeau-act committed May 15, 2024
1 parent a14d062 commit 5c22b9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ CLI command and its behaviour. There are no guarantees of stability for the
- Cargo (`Cargo.lock`) (#937)
- Clang-Tidy (`.clang-tidy`) (#961)
- Java `.properties` files (#968)
- Apache HTTP server config `.htaccess` files (#985)
- npm `.npmrc` files (#985)
- Added comment styles:
- `man` for UNIX Man pages (`.man`) (#954)

Expand Down
2 changes: 2 additions & 0 deletions src/reuse/comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -842,10 +842,12 @@ class XQueryCommentStyle(CommentStyle):
".gitattributes": PythonCommentStyle,
".gitignore": PythonCommentStyle,
".gitmodules": PythonCommentStyle,
".htaccess": PythonCommentStyle,
".mailmap": PythonCommentStyle,
".metadata": UncommentableCommentStyle,
".mdlrc": PythonCommentStyle, # Markdown-linter config
".npmignore": PythonCommentStyle,
".npmrc": SemicolonCommentStyle,
".prettierrc": UncommentableCommentStyle, # could either be JSON or YAML
".prettierignore": PythonCommentStyle,
".pylintrc": PythonCommentStyle,
Expand Down

0 comments on commit 5c22b9f

Please sign in to comment.