Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce a flag to prefer // over /*...*/ #130

Open
Dentrax opened this issue Nov 19, 2022 · 1 comment
Open

Introduce a flag to prefer // over /*...*/ #130

Dentrax opened this issue Nov 19, 2022 · 1 comment

Comments

@Dentrax
Copy link

Dentrax commented Nov 19, 2022

It would be great to have a non-multiline comment support enabled with a new flag. Multiline comments /*\n*\n*\n*/ takes more lines and makes it harder to read for me. Here is a simple proposal:

$ touch foo.c
$ addlicense -s=only -c Furkan .

Actual: (Multiline comment)

/*
 * Copyright 2022 Furkan
 * SPDX-License-Identifier: Apache-2.0
 */

New flag way: (comment)

// Copyright 2022 Furkan
// SPDX-License-Identifier: Apache-2.0
@Dentrax Dentrax changed the title Introduce a flag to prefer // over /*.\n*\n*\n*/ Introduce a flag to prefer // over /*...*/ Nov 19, 2022
@willnorris
Copy link
Collaborator

I think what I'd really like to do is have a way to specify a config (config file, set of flags, whatever) that can override any default settings of which file extensions are supported, and which commenting style they use. I think there are still some open pull requests for adding file types that I'm not completely convinced should always be updated. But for folks that want it, it should be easy to add that for them.

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

No branches or pull requests

2 participants