This commit is contained in:
David Apirian 2022-11-01 22:16:33 -07:00
commit 7cf7f5acad
11 changed files with 63 additions and 2 deletions

View file

@ -35,13 +35,13 @@ do
for dir in windows.*/
do
( cd "$dir" && zip "../shellcheck-$tag.zip" * )
( cd "$dir" && zip "../shellcheck-$tag.zip" ./* )
done
for dir in {linux,darwin}.*/
do
base="${dir%/}"
( cd "$dir" && tar -cJf "../shellcheck-$tag.$base.tar.xz" --transform="s:^:shellcheck-$tag/:" * )
( cd "$dir" && tar -cJf "../shellcheck-$tag.$base.tar.xz" --transform="s:^:shellcheck-$tag/:" ./* )
done
done

7
.trunk/.gitignore vendored Normal file
View file

@ -0,0 +1,7 @@
*out
*logs
*actions
*notifications
plugins
user_trunk.yaml
user.yaml

View file

@ -0,0 +1,10 @@
# Autoformatter friendly markdownlint config (all formatting rules disabled)
default: true
blank_lines: false
bullet: false
html: false
indentation: false
line_length: false
spaces: false
url: false
whitespace: false

View file

@ -0,0 +1,2 @@
enable=all
source-path=SCRIPTDIR

View file

@ -0,0 +1,14 @@
module.exports = {
plugins: [
{
name: "preset-default",
params: {
overrides: {
removeViewBox: false, // https://github.com/svg/svgo/issues/1128
sortAttrs: true,
removeOffCanvasPaths: true,
},
},
},
],
};

23
.trunk/trunk.yaml Normal file
View file

@ -0,0 +1,23 @@
version: 0.1
cli:
version: 1.0.1
plugins:
sources:
- id: trunk
ref: v0.0.5
uri: https://github.com/trunk-io/plugins
lint:
enabled:
- markdownlint@0.32.2
- hadolint@2.10.0
- git-diff-check
- shfmt@3.5.0
- svgo@3.0.0
- shellcheck@0.8.0
- actionlint@1.6.22
- prettier@2.7.1
- gitleaks@8.15.0
runtimes:
enabled:
- go@1.18.3
- node@16.14.2

View file

@ -5,6 +5,7 @@ set -xe
chmod +x striptests && ./striptests
mkdir "$TARGETNAME"
cabal update
# shellcheck disable=SC2086 # Intended splitting of CABALOPTS
( IFS=';'; cabal build $CABALOPTS )
find . -name shellcheck -type f -exec mv {} "$TARGETNAME/" \;
ls -l "$TARGETNAME"

View file

@ -5,6 +5,7 @@ set -xe
chmod +x striptests && ./striptests
mkdir "$TARGETNAME"
cabal update
# shellcheck disable=SC2086 # Intended splitting of CABALOPTS
( IFS=';'; cabal build $CABALOPTS --enable-executable-static )
find . -name shellcheck -type f -exec mv {} "$TARGETNAME/" \;
ls -l "$TARGETNAME"

View file

@ -6,6 +6,7 @@ cd /scratch
chmod +x striptests && ./striptests
mkdir "$TARGETNAME"
# This script does not cabal update because compiling anything new is slow
# shellcheck disable=SC2086 # Intended splitting of CABALOPTS
( IFS=';'; cabal build $CABALOPTS --enable-executable-static )
find . -name shellcheck -type f -exec mv {} "$TARGETNAME/" \;
ls -l "$TARGETNAME"

View file

@ -5,6 +5,7 @@ set -xe
chmod +x striptests && ./striptests
mkdir "$TARGETNAME"
cabal update
# shellcheck disable=SC2086 # Intended splitting of CABALOPTS
( IFS=';'; cabal build $CABALOPTS --enable-executable-static )
find . -name shellcheck -type f -exec mv {} "$TARGETNAME/" \;
ls -l "$TARGETNAME"

View file

@ -9,6 +9,7 @@ set -xe
chmod +x striptests && ./striptests
mkdir "$TARGETNAME"
cabal update
# shellcheck disable=SC2086 # Intended splitting of CABALOPTS
( IFS=';'; cabal build $CABALOPTS )
find dist*/ -name shellcheck.exe -type f -ls -exec mv {} "$TARGETNAME/" \;
ls -l "$TARGETNAME"