Skip to content

Commit

Permalink
Update install-lint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
aadeyemiadl authored Mar 12, 2024
1 parent 9db64d3 commit 48b78b6
Showing 1 changed file with 0 additions and 71 deletions.
71 changes: 0 additions & 71 deletions install-lint.sh
Original file line number Diff line number Diff line change
@@ -1,77 +1,6 @@
#!/bin/bash
<#
# Simple script to install and run Hadolint
echo ""
echo "#====================================================#"
echo "# Installing Hadolint"
echo "#====================================================#"
echo ""

# Install Hadolint
wget -O hadolint https://github.com/hadolint/hadolint/releases/download/v2.12.0/hadolint-Linux-x86_64
# Move to appropriate directory
mv hadolint /usr/local/bin/hadolint
# Make file executable
chmod +x /usr/local/bin/hadolint

echo ""
echo "#====================================================#"
echo "# Hadolint Installation Complete"
echo "#====================================================#"
echo ""

# Check hadolint version to make sure it is installed
hadolint -v

echo ""
echo "#====================================================#"
echo "# Now Running Hadolint on Dockerfile"
echo "#====================================================#"
echo ""
# Run Hadolint on Dockerfile

docker run --rm -i hadolint/hadolint < Dockerfile

echo ""
echo "#====================================================#"
echo "# Dockerfile Linting Complete (Comments Above)"
echo "#====================================================#"
echo ""

# Simple script to install and run Pylint
echo ""
echo "#====================================================#"
echo "# Installing Pylint"
echo "#====================================================#"
echo ""

# Install Pylint
apt install pylint

echo ""
echo "#====================================================#"
echo "# Pylint Installation Complete"
echo "#====================================================#"
echo ""

# Check pylint version to make sure it is installed
pylint --version

echo ""
echo "#====================================================#"
echo "# Now Running Pylint"
echo "#====================================================#"
echo ""

# Run Pylint on python files
pylint *.py

echo ""
echo "#====================================================#"
echo "# Python Linting Complete (Comments Above)"
echo "#====================================================#"
echo ""
#>
# Simple script to install and run ESlint
echo ""
echo "#====================================================#"
Expand Down

0 comments on commit 48b78b6

Please sign in to comment.