From: Lucas Di Pentima Date: Wed, 28 Jun 2017 22:53:36 +0000 (-0300) Subject: 2411: Updated check-copyright-notices script to correctly add the comment X-Git-Tag: 1.1.0~168^2~1 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/004c230cb750a3ad4a3d1e3928b266537e6d366e 2411: Updated check-copyright-notices script to correctly add the comment block to coffeescript files. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- diff --git a/apps/workbench/app/assets/javascripts/bootstrap.js.coffee b/apps/workbench/app/assets/javascripts/bootstrap.js.coffee index 8d22e89854..441d77fb89 100644 --- a/apps/workbench/app/assets/javascripts/bootstrap.js.coffee +++ b/apps/workbench/app/assets/javascripts/bootstrap.js.coffee @@ -1,8 +1,8 @@ -// Copyright (C) The Arvados Authors. All rights reserved. -// -// SPDX-License-Identifier: AGPL-3.0 +### Copyright (C) The Arvados Authors. All rights reserved. + +SPDX-License-Identifier: AGPL-3.0 ### jQuery -> $("a[rel=popover]").popover() $(".tooltip").tooltip() - $("a[rel=tooltip]").tooltip() \ No newline at end of file + $("a[rel=tooltip]").tooltip() diff --git a/apps/workbench/app/assets/javascripts/keep_disks.js.coffee b/apps/workbench/app/assets/javascripts/keep_disks.js.coffee index fe8c7a9edc..d33312d21c 100644 --- a/apps/workbench/app/assets/javascripts/keep_disks.js.coffee +++ b/apps/workbench/app/assets/javascripts/keep_disks.js.coffee @@ -1,6 +1,6 @@ -// Copyright (C) The Arvados Authors. All rights reserved. -// -// SPDX-License-Identifier: AGPL-3.0 +### Copyright (C) The Arvados Authors. All rights reserved. + +SPDX-License-Identifier: AGPL-3.0 ### cache_age_in_days = (milliseconds_age) -> ONE_DAY = 1000 * 60 * 60 * 24 diff --git a/build/check-copyright-notices b/build/check-copyright-notices index 239a0c6ba0..cf4e9bf181 100755 --- a/build/check-copyright-notices +++ b/build/check-copyright-notices @@ -133,7 +133,13 @@ git ls-files -z ${@} | \ cc="" ce=" */" ;; - *.go | *.scss | *.java | *.js | *.coffee) + *.coffee) + fixer=fixer + cs="### " + cc="" + ce=" ###" + ;; + *.go | *.scss | *.java | *.js) fixer=fixer cc="//" ;;