You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.
Every source file in the repository should contain the copyright block heading on top:
/*
* Copyright 2020 New Relic Corporation. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*/
This includes bash scripts (slightly different commenting style) and code examples. Does not include copy-paste templates.
NOTE: we want the Apache-2.0 license to land first so these are consistent and that license is the current active for the commit(s) applying these changes.
Useful Script
Does not update non-JS files.
May break when there’s a code directive that needs to be at the top.
May need additional modifications for a particular repository.
Run git ls-files | grep '\.js$' | grep -Ev '(.eslintrc|^newrelic)' to see list of files
tmp=$(mktemp) # Create a temporary file
trap "rm -f $tmp; exit 1" 0 1 2 3 13 15
header="/*
* Copyright 2020 New Relic Corporation. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*/
"
for file in $(git ls-files | grep '\.js$' | grep -Ev '(.eslintrc|^newrelic)')
do
{
echo -e "$header"
cat $file
} > $tmp
mv $tmp $file
echo $file
done
rm -f $tmp
trap 0
The text was updated successfully, but these errors were encountered:
Every source file in the repository should contain the copyright block heading on top:
This includes bash scripts (slightly different commenting style) and code examples. Does not include copy-paste templates.
NOTE: we want the Apache-2.0 license to land first so these are consistent and that license is the current active for the commit(s) applying these changes.
Useful Script
git ls-files | grep '\.js$' | grep -Ev '(.eslintrc|^newrelic)'
to see list of filesThe text was updated successfully, but these errors were encountered: