Browse Source

chore: standardize # style headers

Changes made with regex plus some manual tweaks.

Find:
/(?:(?<!#!\/bin\/sh\n)(?:^#\n))*^#.*?[Cc]opyright.*?(\d{4}) *([0-9A-z,_\- ]+).*?\n(?:^#\n)*^#.*?SPDX-License-Identifier:? *(.+) *?\n(?:^#\n)*/gm

Replace:
# Copyright (c) $1 $2
# SPDX-License-Identifier: $3

PR: #564
xmkb
innovaker 4 years ago committed by Pete Johanson
parent
commit
f17584ca0e
  1. 2
      app/boards/arm/nrf52840_m2/CMakeLists.txt
  2. 2
      app/boards/arm/nrf52840_m2/Kconfig
  3. 3
      app/boards/arm/nrf52840_m2/Kconfig.board
  4. 2
      app/boards/arm/nrf52840_m2/Kconfig.defconfig
  5. 2
      app/boards/arm/nrf52840_m2/board.cmake
  6. 2
      app/boards/arm/nrf52840_m2/nrf52840_m2_defconfig
  7. 2
      app/boards/shields/crbn/Kconfig.defconfig
  8. 2
      app/boards/shields/crbn/Kconfig.shield
  9. 3
      app/boards/shields/eek/Kconfig.defconfig
  10. 2
      app/boards/shields/jorne/Kconfig.shield
  11. 2
      app/boards/shields/m60/Kconfig.defconfig
  12. 2
      app/boards/shields/m60/Kconfig.shield
  13. 4
      app/boards/shields/quefrency/Kconfig.defconfig
  14. 4
      app/boards/shields/splitreus62/Kconfig.defconfig
  15. 2
      app/dts/bindings/behaviors/one_param.yaml
  16. 2
      app/dts/bindings/behaviors/two_param.yaml
  17. 2
      app/dts/bindings/behaviors/zero_param.yaml
  18. 2
      app/dts/bindings/behaviors/zmk,behavior-bluetooth.yaml
  19. 4
      app/dts/bindings/behaviors/zmk,behavior-ext-power.yaml
  20. 2
      app/dts/bindings/behaviors/zmk,behavior-key-press.yaml
  21. 2
      app/dts/bindings/behaviors/zmk,behavior-momentary-layer.yaml
  22. 2
      app/dts/bindings/behaviors/zmk,behavior-none.yaml
  23. 4
      app/dts/bindings/behaviors/zmk,behavior-outputs.yaml
  24. 2
      app/dts/bindings/behaviors/zmk,behavior-reset.yaml
  25. 2
      app/dts/bindings/behaviors/zmk,behavior-sensor-rotate-key-press.yaml
  26. 2
      app/dts/bindings/behaviors/zmk,behavior-transparent.yaml
  27. 4
      app/dts/bindings/zmk,ext-power-generic.yaml
  28. 4
      app/dts/bindings/zmk,keymap-sensors.yaml
  29. 5
      app/run-test.sh
  30. 2
      app/scripts/west-commands.yml
  31. 1
      app/scripts/west_commands/test.py
  32. 1
      docs/static/setup.ps1
  33. 1
      docs/static/setup.sh

2
app/boards/arm/nrf52840_m2/CMakeLists.txt

@ -1,7 +1,5 @@
#
# Copyright (c) 2020 The ZMK Contributors # Copyright (c) 2020 The ZMK Contributors
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
#
set_property(GLOBAL APPEND PROPERTY extra_post_build_commands set_property(GLOBAL APPEND PROPERTY extra_post_build_commands
COMMAND ${PYTHON_EXECUTABLE} ${ZEPHYR_BASE}/../tools/uf2/utils/uf2conv.py COMMAND ${PYTHON_EXECUTABLE} ${ZEPHYR_BASE}/../tools/uf2/utils/uf2conv.py

2
app/boards/arm/nrf52840_m2/Kconfig

@ -1,7 +1,5 @@
#
# Copyright (c) 2020 The ZMK Contributors # Copyright (c) 2020 The ZMK Contributors
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
#
config BOARD_ENABLE_DCDC config BOARD_ENABLE_DCDC
bool "Enable DCDC mode" bool "Enable DCDC mode"

3
app/boards/arm/nrf52840_m2/Kconfig.board

@ -1,8 +1,7 @@
# Maker Diary nrf52840 M.2 board configuration # Maker Diary nrf52840 M.2 board configuration
#
# Copyright (c) 2020 The ZMK Contributors # Copyright (c) 2020 The ZMK Contributors
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
#
config BOARD_NRF52840_M2 config BOARD_NRF52840_M2
bool "nrf52480_m2" bool "nrf52480_m2"

2
app/boards/arm/nrf52840_m2/Kconfig.defconfig

@ -1,7 +1,5 @@
#
# Copyright (c) 2020 The ZMK Contributors # Copyright (c) 2020 The ZMK Contributors
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
#
if BOARD_NRF52840_M2 if BOARD_NRF52840_M2

2
app/boards/arm/nrf52840_m2/board.cmake

@ -1,7 +1,5 @@
#
# Copyright (c) 2020 The ZMK Contributors # Copyright (c) 2020 The ZMK Contributors
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
#
board_runner_args(nrfjprog "--nrf-family=NRF52" "--softreset") board_runner_args(nrfjprog "--nrf-family=NRF52" "--softreset")

2
app/boards/arm/nrf52840_m2/nrf52840_m2_defconfig

@ -1,7 +1,5 @@
#
# Copyright (c) 2020 The ZMK Contributors # Copyright (c) 2020 The ZMK Contributors
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
#
CONFIG_SOC_SERIES_NRF52X=y CONFIG_SOC_SERIES_NRF52X=y
CONFIG_SOC_NRF52840_QIAA=y CONFIG_SOC_NRF52840_QIAA=y

2
app/boards/shields/crbn/Kconfig.defconfig

@ -1,7 +1,5 @@
#
# Copyright (c) 2020 The ZMK Contributors # Copyright (c) 2020 The ZMK Contributors
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
#
if SHIELD_CRBN if SHIELD_CRBN

2
app/boards/shields/crbn/Kconfig.shield

@ -1,7 +1,5 @@
#
# Copyright (c) 2020 The ZMK Contributors # Copyright (c) 2020 The ZMK Contributors
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
#
config SHIELD_CRBN config SHIELD_CRBN
def_bool $(shields_list_contains,crbn) def_bool $(shields_list_contains,crbn)

3
app/boards/shields/eek/Kconfig.defconfig

@ -1,8 +1,5 @@
#
# Copyright (c) 2020 The ZMK Contributors # Copyright (c) 2020 The ZMK Contributors
#
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
#
if SHIELD_EEK if SHIELD_EEK

2
app/boards/shields/jorne/Kconfig.shield

@ -1,4 +1,4 @@
# Copyright (c) 2020 The ZMK Contributors # Copyright (c) 2020 The ZMK Contributors
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
config SHIELD_JORNE_LEFT config SHIELD_JORNE_LEFT

2
app/boards/shields/m60/Kconfig.defconfig

@ -1,7 +1,5 @@
#
# Copyright (c) 2020 The ZMK Contributors # Copyright (c) 2020 The ZMK Contributors
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
#
if SHIELD_M60 if SHIELD_M60

2
app/boards/shields/m60/Kconfig.shield

@ -1,7 +1,5 @@
#
# Copyright (c) 2020 The ZMK Contributors # Copyright (c) 2020 The ZMK Contributors
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
#
config SHIELD_M60 config SHIELD_M60
def_bool $(shields_list_contains,m60) def_bool $(shields_list_contains,m60)

4
app/boards/shields/quefrency/Kconfig.defconfig

@ -1,5 +1,5 @@
#Copyright (c) 2020 The ZMK Contributors # Copyright (c) 2020 The ZMK Contributors
#SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
if SHIELD_QUEFRENCY_LEFT if SHIELD_QUEFRENCY_LEFT

4
app/boards/shields/splitreus62/Kconfig.defconfig

@ -1,6 +1,6 @@
#Copyright (c) 2020 Derek Schmell # Copyright (c) 2020 Derek Schmell
#SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
if SHIELD_SPLITREUS62_LEFT if SHIELD_SPLITREUS62_LEFT

2
app/dts/bindings/behaviors/one_param.yaml

@ -1,4 +1,4 @@
# Copyright (c) 2020, Pete Johanson # Copyright (c) 2020 Pete Johanson
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
properties: properties:

2
app/dts/bindings/behaviors/two_param.yaml

@ -1,4 +1,4 @@
# Copyright (c) 2020, Pete Johanson # Copyright (c) 2020 Pete Johanson
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
properties: properties:

2
app/dts/bindings/behaviors/zero_param.yaml

@ -1,4 +1,4 @@
# Copyright (c) 2020, Pete Johanson # Copyright (c) 2020 Pete Johanson
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
properties: properties:

2
app/dts/bindings/behaviors/zmk,behavior-bluetooth.yaml

@ -1,4 +1,4 @@
# Copyright (c) 2020, Peter Johanson # Copyright (c) 2020 Peter Johanson
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
description: Bluetooth Behavior description: Bluetooth Behavior

4
app/dts/bindings/behaviors/zmk,behavior-ext-power.yaml

@ -1,7 +1,5 @@
# # Copyright (c) 2020 The ZMK Contributors
# Copyright (c) 2020, The ZMK Contributors
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
#
description: External power control Behavior description: External power control Behavior

2
app/dts/bindings/behaviors/zmk,behavior-key-press.yaml

@ -1,4 +1,4 @@
# Copyright (c) 2020, Pete Johanson # Copyright (c) 2020 Pete Johanson
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
description: Key press/release behavior description: Key press/release behavior

2
app/dts/bindings/behaviors/zmk,behavior-momentary-layer.yaml

@ -1,4 +1,4 @@
# Copyright (c) 2020, Pete Johanson # Copyright (c) 2020 Pete Johanson
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
description: Momentary layer on press/release behavior description: Momentary layer on press/release behavior

2
app/dts/bindings/behaviors/zmk,behavior-none.yaml

@ -1,4 +1,4 @@
# Copyright (c) 2020, Pete Johanson # Copyright (c) 2020 Pete Johanson
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
description: None Binding Behavior description: None Binding Behavior

4
app/dts/bindings/behaviors/zmk,behavior-outputs.yaml

@ -1,7 +1,5 @@
# # Copyright (c) 2020 The ZMK Contributors
# Copyright (c) 2020, The ZMK Contributors
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
#
description: Output Selection Behavior description: Output Selection Behavior

2
app/dts/bindings/behaviors/zmk,behavior-reset.yaml

@ -1,4 +1,4 @@
# Copyright (c) 2020, Pete Johanson # Copyright (c) 2020 Pete Johanson
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
description: Keyboard Reset Behavior description: Keyboard Reset Behavior

2
app/dts/bindings/behaviors/zmk,behavior-sensor-rotate-key-press.yaml

@ -1,4 +1,4 @@
# Copyright (c) 2020, The ZMK Contributors # Copyright (c) 2020 The ZMK Contributors
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
description: Sensor rotate key press/release behavior description: Sensor rotate key press/release behavior

2
app/dts/bindings/behaviors/zmk,behavior-transparent.yaml

@ -1,4 +1,4 @@
# Copyright (c) 2020, Pete Johanson # Copyright (c) 2020 Pete Johanson
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
description: Transparent Binding Behavior description: Transparent Binding Behavior

4
app/dts/bindings/zmk,ext-power-generic.yaml

@ -1,7 +1,5 @@
# # Copyright (c) 2020 The ZMK Contributors
# Copyright (c) 2020, The ZMK Contributors
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
#
description: | description: |
Generic driver for controlling the external power output Generic driver for controlling the external power output

4
app/dts/bindings/zmk,keymap-sensors.yaml

@ -1,7 +1,5 @@
# # Copyright (c) 2020 The ZMK Contributors
# Copyright (c) 2020, The ZMK Contributors
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
#
description: | description: |
Allows defining the collection of sensors bound in the keymap layers Allows defining the collection of sensors bound in the keymap layers

5
app/run-test.sh

@ -1,9 +1,8 @@
#!/bin/sh #!/bin/sh
#
# Copyright (c) 2020 The ZMK Contributors # Copyright (c) 2020 The ZMK Contributors
#
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
#
if [ -z "$1" ]; then if [ -z "$1" ]; then
echo "Usage: ./run-test.sh <path to testcase>" echo "Usage: ./run-test.sh <path to testcase>"
exit 1 exit 1

2
app/scripts/west-commands.yml

@ -1,4 +1,4 @@
# Copyright (c) 2020, ZMK Contributors # Copyright (c) 2020 ZMK Contributors
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
west-commands: west-commands:

1
app/scripts/west_commands/test.py

@ -1,5 +1,4 @@
# Copyright (c) 2020 The ZMK Contributors # Copyright (c) 2020 The ZMK Contributors
#
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
'''Test runner for ZMK.''' '''Test runner for ZMK.'''

1
docs/static/setup.ps1 vendored

@ -1,5 +1,4 @@
# Copyright (c) 2020 The ZMK Contributors # Copyright (c) 2020 The ZMK Contributors
#
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
$ErrorActionPreference = "Stop" $ErrorActionPreference = "Stop"

1
docs/static/setup.sh vendored

@ -1,7 +1,6 @@
#!/bin/bash #!/bin/bash
# Copyright (c) 2020 The ZMK Contributors # Copyright (c) 2020 The ZMK Contributors
#
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
set -e set -e

Loading…
Cancel
Save