Skip to content

Commit

Permalink
Refine CodeHeaders.md
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor committed Feb 5, 2018
1 parent 93046e6 commit b0b1655
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions docs/dev/CodeHeaders.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This file explains how to create and maintain copyright headers in source files.

# Initial header
## Initial header

```
/********************************************************************************
Expand All @@ -22,11 +22,26 @@ This file explains how to create and maintain copyright headers in source files.

See also <https://www.eclipse.org/projects/handbook/#ip-copyright-headers>.

## Regex
## Header for IntelliJ configuratoin

```
\/[\*]*\n \* Copyright \(c\) \d\d\d\d Contributors to the Eclipse Foundation\n \*[ ]*\n \* See the NOTICE file\(s\) distributed with this work for additional\n \* information regarding copyright ownership.\n \*[ ]*\n \* This program and the accompanying materials are made available under the\n \* terms of the Eclipse Public License 2.0 which is available at\n \* http:\/\/www\.eclipse\.org\/legal\/epl-2\.0, or the Apache Software License 2\.0\n \* which is available at https:\/\/www\.apache\.org\/licenses\/LICENSE-2\.0\.\n \*[ ]*\n \* SPDX-License-Identifier: EPL-2\.0 OR Apache-2\.0\n [\*]*\/
Copyright (c) $today.year Contributors to the Eclipse Foundation
See the NOTICE file(s) distributed with this work for additional
information regarding copyright ownership.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License 2.0 which is available at
http://www.eclipse.org/legal/epl-2.0, or the Apache Software License 2.0
which is available at https://www.apache.org/licenses/LICENSE-2.0.
SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
```

## Regex

Just `Copyright` is enough to match existing headers.

## Full information

Full information is available at: <http://www.eclipse.org/legal/copyrightandlicensenotice.php>
Expand Down

0 comments on commit b0b1655

Please sign in to comment.