Skip to content

feat: add comment-style override via new configuration flag#215

Open
benjamesfleming wants to merge 1 commit into
google:masterfrom
benjamesfleming:master
Open

feat: add comment-style override via new configuration flag#215
benjamesfleming wants to merge 1 commit into
google:masterfrom
benjamesfleming:master

Conversation

@benjamesfleming

Copy link
Copy Markdown

Fixes: #200

Fixes: #130

Fixes: #109

This PR adds a new configuration flag -comment-style <ext>:<format>[,<ext>:<format>] that allows overriding of the default comment style for any supported file type. The available formats are documented in the README.

Example

addlicense -comment-style h:// .

Available comment styles

Style Renders as
// // text
# # text
;; ;; text
% % text
-- -- text
vim " text
block /* * text */
docblock /** * text */
html <!-- text -->
jinja {# text #}
ocaml (** text *)
powershell <# text #>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Different comment styles for .c/.h and .cc files Introduce a flag to prefer // over /*...*/ Using // comments for C++ header files

1 participant