Skip to content

Commit

Permalink
chore(deps): fix editorconfig-checker deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
homksei committed Jan 13, 2025
1 parent 9ba0426 commit ec645e8
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 12 deletions.
29 changes: 19 additions & 10 deletions .ci/env/editorconfig-checker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,26 @@
#===============================================================================

VERSION=v3.1.2
NAME=ec-linux-amd64
ASSET=$NAME.tar.gz
UNPACKED=ec-linux-amd64
ASSET=$UNPACKED.tar.gz
CHECKSUMS=checksums.txt
BASE_LINK=https://github.com/editorconfig-checker/editorconfig-checker/releases/download/$VERSION

# Download
export SHA256="fc698b0bf5bca0d42e28dd59d72e25487a51f645ca242c5f74bae975369f16aa $ASSET"
wget https://github.com/editorconfig-checker/editorconfig-checker/releases/download/$VERSION/$ASSET
echo "${SHA256}" | sha256sum --check
# Download asset
wget $BASE_LINK/$ASSET

# Download checksum file
wget $BASE_LINK/$CHECKSUMS

# Verify checksum file
if ! grep -E "$ASSET$" $CHECKSUMS | sha256sum --check; then
echo "Checksum verification failed"
exit 1
fi

# Install
tar -xzf $ASSET
mv bin/$NAME /usr/local/bin/editorconfig-checker
mkdir $UNPACKED && tar -xzf "$ASSET" -C $UNPACKED
mv $UNPACKED/bin/$UNPACKED /usr/local/bin/editorconfig-checker

# Clean up the downloaded archive
rm $ASSET
# Clean up the downloaded files
rm -rf "$UNPACKED" "$ASSET" "$CHECKSUMS"
2 changes: 1 addition & 1 deletion .ecrc → .editorconfig-checker.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"Verbose": false,
"Debug": false,
"IgnoreDefaults": false,
"SpacesAftertabs": false,
"SpacesAfterTabs": false,
"NoColor": false,
"AllowedContentTypes": [],
"PassedFiles": [],
Expand Down
2 changes: 1 addition & 1 deletion .github/.licenserc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ header:
# Clang-format config
- '.clang-format'
# Editorconfig configs
- '.ecrc'
- '.editorconfig-checker.json'
- '.editorconfig'
# Samples READMEs and licenses:
- 'samples/daal/cpp/mpi/README.md'
Expand Down

0 comments on commit ec645e8

Please sign in to comment.