Skip to content

Commit

Permalink
copyright year-now
Browse files Browse the repository at this point in the history
  • Loading branch information
fchastanet committed Nov 5, 2023
1 parent 7e116e7 commit ed96806
Show file tree
Hide file tree
Showing 30 changed files with 30 additions and 10 deletions.
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ repos:
args: [-f, tty, --xargs, --staged]
pass_filenames: true
types: ['executable', 'file', 'shell', 'text']
files: \.sh$
always_run: false
fail_fast: true
stages: [commit]
Expand Down
1 change: 0 additions & 1 deletion .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
args: [-f, tty, --xargs, --staged]
pass_filenames: true
types: ['executable', 'file', 'shell', 'text']
files: \.sh$
always_run: false
fail_fast: true
stages: [commit]
Expand Down
1 change: 1 addition & 0 deletions bin/awkLint
Original file line number Diff line number Diff line change
Expand Up @@ -1448,6 +1448,7 @@ Result in checkstyle format.")"
return 1
fi
}
declare copyrightBeginYear="2022"

awkLintCommand parse "${BASH_FRAMEWORK_ARGV[@]}"

Expand Down
1 change: 1 addition & 0 deletions bin/buildBinFiles
Original file line number Diff line number Diff line change
Expand Up @@ -1469,6 +1469,7 @@ INTERNAL TOOL")"
return 1
fi
}
declare copyrightBeginYear="2023"

buildBinFilesCommand parse "${BASH_FRAMEWORK_ARGV[@]}"

Expand Down
1 change: 1 addition & 0 deletions bin/buildPushDockerImage
Original file line number Diff line number Diff line change
Expand Up @@ -1606,6 +1606,7 @@ INTERNAL
return 1
fi
}
declare copyrightBeginYear="2023"

buildPushDockerImageCommand parse "${BASH_FRAMEWORK_ARGV[@]}"

Expand Down
1 change: 1 addition & 0 deletions bin/definitionLint
Original file line number Diff line number Diff line change
Expand Up @@ -1731,6 +1731,7 @@ INTERNAL"""
return 1
fi
}
declare copyrightBeginYear="2022"

declare optionFormat="plain"
definitionLintCommand parse "${BASH_FRAMEWORK_ARGV[@]}"
Expand Down
2 changes: 1 addition & 1 deletion bin/doc
Original file line number Diff line number Diff line change
Expand Up @@ -1895,7 +1895,7 @@ INTERNAL TOOL"""
return 1
fi
}

declare copyrightBeginYear="2022"
declare -a RUN_CONTAINER_ARGV_FILTERED=()
updateOptionSkipDockerBuildCallback() {
if [[ "${IN_BASH_DOCKER:-}" != "You're in docker" ]]; then
Expand Down
1 change: 1 addition & 0 deletions bin/dockerLint
Original file line number Diff line number Diff line change
Expand Up @@ -1781,6 +1781,7 @@ ${__HELP_TITLE_COLOR}HADOLINT HELP${__RESET_COLOR}
return 1
fi
}
declare copyrightBeginYear="2022"

dockerLintCommand parse "${BASH_FRAMEWORK_ARGV[@]}"

Expand Down
1 change: 1 addition & 0 deletions bin/findShebangFiles
Original file line number Diff line number Diff line change
Expand Up @@ -1490,6 +1490,7 @@ ${SCRIPT_NAME} chmod +x"""
return 1
fi
}
declare copyrightBeginYear="2023"

declare -a commandToApply=()
unknownOptionArgFunction() {
Expand Down
2 changes: 1 addition & 1 deletion bin/frameworkLint
Original file line number Diff line number Diff line change
Expand Up @@ -1646,7 +1646,7 @@ Lint files of the current repository
return 1
fi
}

declare copyrightBeginYear="2022"
declare -i optionExpectedWarningsCount=0

optionExpectedWarningsCountCallback() {
Expand Down
2 changes: 1 addition & 1 deletion bin/megalinter
Original file line number Diff line number Diff line change
Expand Up @@ -1788,7 +1788,7 @@ megalinter image oxsecurity/megalinter-terraform:v7.4.0 will be used.
return 1
fi
}

declare copyrightBeginYear="2022"
declare optionMegalinterConfigFile=".mega-linter-light.yml"
declare optionMegalinterImage="oxsecurity/megalinter-terraform:v7.4.0"
declare -a megalinterArgs=()
Expand Down
1 change: 1 addition & 0 deletions bin/plantuml
Original file line number Diff line number Diff line change
Expand Up @@ -1516,6 +1516,7 @@ Generates plantuml diagrams from puml files in formats provided"""
return 1
fi
}
declare copyrightBeginYear="2022"
declare optionOutputDir="doc/images"

plantumlCallback() {
Expand Down
1 change: 1 addition & 0 deletions bin/runBuildContainer
Original file line number Diff line number Diff line change
Expand Up @@ -1658,6 +1658,7 @@ additional docker run options can be passed
return 1
fi
}
declare copyrightBeginYear="2022"

# shellcheck disable=SC2317 # if function is overridden
unknownOption() {
Expand Down
1 change: 1 addition & 0 deletions bin/shellcheckLint
Original file line number Diff line number Diff line change
Expand Up @@ -1890,6 +1890,7 @@ ${__HELP_TITLE_COLOR}SHELLCHECK HELP${__RESET_COLOR}
fi
}

declare copyrightBeginYear="2022"
declare optionFormat="tty"
declare -a shellcheckArgs=()
declare -a shellcheckFiles=()
Expand Down
2 changes: 1 addition & 1 deletion bin/test
Original file line number Diff line number Diff line change
Expand Up @@ -1844,7 +1844,7 @@ ${__HELP_TITLE}Bats help:${__HELP_NORMAL}
return 1
fi
}

declare copyrightBeginYear="2022"
declare -a batsArgs=()
everyOptOrArgCallback() {
if [[ -z "$1" || "$1" = "argBats" ]]; then
Expand Down
3 changes: 3 additions & 0 deletions doc/TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@

TODOs linked to bin/compiler or templates .tpl:

- since export have been removed from UI::theme some
colors interpreted by bash-tpl are not visible anymore
we have to export them only when launching bash-tpl in subshell.
- build watch mode
- issue with " or ', create a new string symbol in the template in order to get
the right escape
Expand Down
1 change: 1 addition & 0 deletions src/_binaries/options/command.awkLint.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ Result in checkstyle format."
%
Options::generateCommand "${options[@]}"
%
declare copyrightBeginYear="2022"
1 change: 1 addition & 0 deletions src/_binaries/options/command.buildBinFiles.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ options+=(
)
Options::generateCommand "${options[@]}"
%
declare copyrightBeginYear="2023"
1 change: 1 addition & 0 deletions src/_binaries/options/command.buildPushDockerImage.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ options+=(
)
Options::generateCommand "${options[@]}"
%
declare copyrightBeginYear="2023"
1 change: 1 addition & 0 deletions src/_binaries/options/command.definitionLint.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,4 @@ options+=(
)
Options::generateCommand "${options[@]}"
%
declare copyrightBeginYear="2022"
2 changes: 1 addition & 1 deletion src/_binaries/options/command.doc.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ INTERNAL TOOL
%
Options::generateCommand "${options[@]}"
%

declare copyrightBeginYear="2022"
declare -a RUN_CONTAINER_ARGV_FILTERED=()
updateOptionSkipDockerBuildCallback() {
if [[ "${IN_BASH_DOCKER:-}" != "You're in docker" ]]; then
Expand Down
1 change: 1 addition & 0 deletions src/_binaries/options/command.dockerLint.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,4 @@ options+=(
)
Options::generateCommand "${options[@]}"
%
declare copyrightBeginYear="2022"
1 change: 1 addition & 0 deletions src/_binaries/options/command.findShebangFiles.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ options+=(
)
Options::generateCommand "${options[@]}"
%
declare copyrightBeginYear="2023"
2 changes: 1 addition & 1 deletion src/_binaries/options/command.frameworkLint.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ options+=(

Options::generateCommand "${options[@]}"
%

declare copyrightBeginYear="2022"
declare -i optionExpectedWarningsCount=0

optionExpectedWarningsCountCallback() {
Expand Down
2 changes: 1 addition & 1 deletion src/_binaries/options/command.megalinter.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ options+=(
)
Options::generateCommand "${options[@]}"
%

declare copyrightBeginYear="2022"
declare optionMegalinterConfigFile="<% ${defaultMegalinterConfigFile} %>"
declare optionMegalinterImage="<% ${defaultMegalinterImage} %>"
declare -a megalinterArgs=()
Expand Down
1 change: 1 addition & 0 deletions src/_binaries/options/command.plantuml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ options+=(
)
Options::generateCommand "${options[@]}"
%
declare copyrightBeginYear="2022"
declare optionOutputDir="<% ${optionDefaultOutputDir} %>"

plantumlCallback() {
Expand Down
1 change: 1 addition & 0 deletions src/_binaries/options/command.runBuildContainer.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ options+=(
)
Options::generateCommand "${options[@]}"
%
declare copyrightBeginYear="2022"

# shellcheck disable=SC2317 # if function is overridden
unknownOption() {
Expand Down
1 change: 1 addition & 0 deletions src/_binaries/options/command.shellcheckLint.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ options+=(
Options::generateCommand "${options[@]}"
%

declare copyrightBeginYear="2022"
declare optionFormat="<% ${optionFormatDefault} %>"
declare -a shellcheckArgs=()
declare -a shellcheckFiles=()
Expand Down
2 changes: 1 addition & 1 deletion src/_binaries/options/command.test.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ options+=(
)
Options::generateCommand "${options[@]}"
%

declare copyrightBeginYear="2022"
declare -a batsArgs=()
everyOptOrArgCallback() {
if [[ -z "$1" || "$1" = "argBats" ]]; then
Expand Down
1 change: 1 addition & 0 deletions src/_binaries/options/options.base.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
%# - SCRIPT_NAME
%# - help
%# - longDescription
%# - copyrightBeginYear
%
# shellcheck source=/dev/null
source <(
Expand Down

0 comments on commit ed96806

Please sign in to comment.