Skip to content

Add support for a file name field in license headers #1147

Closed
@OxygenCobalt

Description

@OxygenCobalt

It would be useful if there was a field in the license header template called $FILE, $file.fileName, or similar that would be replaced with the name of the file the header is being applied to.

For example, I could write something like:

/*
 * Copyright (c) 2021 OxygenCobalt
 * $file.fileName is part of Foo.
 */

And it would end up resolving to:

/*
 * Copyright (c) 2021 OxygenCobalt
 * Bar.kt is part of Foo.
 */

I'm mostly drawing this idea from IntelliJ's Copyright Notice format.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions