mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-25 15:41:02 -05:00
remove more dead weight (#1530)
* remove more dead weight * more cleaner * falling into place * tie dotnet to version * new low
This commit is contained in:
parent
5e0c0340f4
commit
5d96acadf1
5 changed files with 2 additions and 30 deletions
|
@ -1,6 +1,7 @@
|
||||||
resource "aws_instance" "instanceWithVpc" {
|
resource "aws_instance" "instanceWithVpc" {
|
||||||
ami = "some-id"
|
ami = "some-id"
|
||||||
instance_type = "t2.micro"
|
instance_type = "t2.micro"
|
||||||
|
monitoring = true
|
||||||
|
|
||||||
vpc_security_group_ids = ["sg-12345678901234567"]
|
vpc_security_group_ids = ["sg-12345678901234567"]
|
||||||
subnet_id = "subnet-12345678901234567"
|
subnet_id = "subnet-12345678901234567"
|
||||||
|
|
2
.github/workflows/deploy-DEV.yml
vendored
2
.github/workflows/deploy-DEV.yml
vendored
|
@ -143,8 +143,6 @@ jobs:
|
||||||
-e RUN_LOCAL=true \
|
-e RUN_LOCAL=true \
|
||||||
-e TEST_CASE_RUN=true \
|
-e TEST_CASE_RUN=true \
|
||||||
-e ANSIBLE_DIRECTORY=.automation/test/ansible \
|
-e ANSIBLE_DIRECTORY=.automation/test/ansible \
|
||||||
-e OUTPUT_FORMAT=tap -e OUTPUT_FOLDER=${GITHUB_SHA} \
|
|
||||||
-e OUTPUT_DETAILS=detailed \
|
|
||||||
-e ACTIONS_RUNNER_DEBUG=true \
|
-e ACTIONS_RUNNER_DEBUG=true \
|
||||||
-e ERROR_ON_MISSING_EXEC_BIT=true \
|
-e ERROR_ON_MISSING_EXEC_BIT=true \
|
||||||
-v ${GITHUB_WORKSPACE}:/tmp/lint \
|
-v ${GITHUB_WORKSPACE}:/tmp/lint \
|
||||||
|
|
|
@ -127,7 +127,7 @@ RUN pip3 install --no-cache-dir pipenv \
|
||||||
&& wget --tries=5 -q -O dotnet-install.sh https://dot.net/v1/dotnet-install.sh \
|
&& wget --tries=5 -q -O dotnet-install.sh https://dot.net/v1/dotnet-install.sh \
|
||||||
&& chmod +x dotnet-install.sh \
|
&& chmod +x dotnet-install.sh \
|
||||||
&& ./dotnet-install.sh --install-dir /usr/share/dotnet -channel Current -version latest \
|
&& ./dotnet-install.sh --install-dir /usr/share/dotnet -channel Current -version latest \
|
||||||
&& /usr/share/dotnet/dotnet tool install --tool-path /usr/bin dotnet-format
|
&& /usr/share/dotnet/dotnet tool install --tool-path /usr/bin dotnet-format --version 5.0.211103
|
||||||
|
|
||||||
##############################
|
##############################
|
||||||
# Installs Perl dependencies #
|
# Installs Perl dependencies #
|
||||||
|
|
|
@ -235,7 +235,6 @@ But if you wish to select or exclude specific linters, we give you full control
|
||||||
| **MULTI_STATUS** | `true` | A status API is made for each language that is linted to make visual parsing easier. |
|
| **MULTI_STATUS** | `true` | A status API is made for each language that is linted to make visual parsing easier. |
|
||||||
| **MARKDOWN_CONFIG_FILE** | `.markdown-lint.yml` | Filename for [Markdownlint configuration](https://github.com/DavidAnson/markdownlint#optionsconfig) (ex: `.markdown-lint.yml`, `.markdownlint.json`, `.markdownlint.yaml`) |
|
| **MARKDOWN_CONFIG_FILE** | `.markdown-lint.yml` | Filename for [Markdownlint configuration](https://github.com/DavidAnson/markdownlint#optionsconfig) (ex: `.markdown-lint.yml`, `.markdownlint.json`, `.markdownlint.yaml`) |
|
||||||
| **MARKDOWN_CUSTOM_RULE_GLOBS** | `.markdown-lint/rules,rules/**` | Comma-separated list of [file globs](https://github.com/igorshubovych/markdownlint-cli#globbing) matching [custom Markdownlint rule files](https://github.com/DavidAnson/markdownlint/blob/main/doc/CustomRules.md). |
|
| **MARKDOWN_CUSTOM_RULE_GLOBS** | `.markdown-lint/rules,rules/**` | Comma-separated list of [file globs](https://github.com/igorshubovych/markdownlint-cli#globbing) matching [custom Markdownlint rule files](https://github.com/DavidAnson/markdownlint/blob/main/doc/CustomRules.md). |
|
||||||
| **OUTPUT_DETAILS** | `simpler` | What level of details to be reported. Supported formats: simpler or detailed. |
|
|
||||||
| **PYTHON_BLACK_CONFIG_FILE** | `.python-black` | Filename for [black configuration](https://github.com/psf/black/blob/master/docs/compatible_configs.md) (ex: `.isort.cfg`, `pyproject.toml`) |
|
| **PYTHON_BLACK_CONFIG_FILE** | `.python-black` | Filename for [black configuration](https://github.com/psf/black/blob/master/docs/compatible_configs.md) (ex: `.isort.cfg`, `pyproject.toml`) |
|
||||||
| **PYTHON_FLAKE8_CONFIG_FILE** | `.flake8` | Filename for [flake8 configuration](https://flake8.pycqa.org/en/latest/user/configuration.html) (ex: `.flake8`, `tox.ini`) |
|
| **PYTHON_FLAKE8_CONFIG_FILE** | `.flake8` | Filename for [flake8 configuration](https://flake8.pycqa.org/en/latest/user/configuration.html) (ex: `.flake8`, `tox.ini`) |
|
||||||
| **PYTHON_ISORT_CONFIG_FILE** | `.isort.cfg` | Filename for [isort configuration](https://pycqa.github.io/isort/docs/configuration/config_files/) (ex: `.isort.cfg`, `pyproject.toml`) |
|
| **PYTHON_ISORT_CONFIG_FILE** | `.isort.cfg` | Filename for [isort configuration](https://pycqa.github.io/isort/docs/configuration/config_files/) (ex: `.isort.cfg`, `pyproject.toml`) |
|
||||||
|
|
|
@ -54,8 +54,6 @@ source /action/lib/functions/linterVersions.sh # Source the function script(s)
|
||||||
# shellcheck source=/dev/null
|
# shellcheck source=/dev/null
|
||||||
source /action/lib/functions/log.sh # Source the function script(s)
|
source /action/lib/functions/log.sh # Source the function script(s)
|
||||||
# shellcheck source=/dev/null
|
# shellcheck source=/dev/null
|
||||||
source /action/lib/functions/tapLibrary.sh # Source the function script(s)
|
|
||||||
# shellcheck source=/dev/null
|
|
||||||
source /action/lib/functions/updateSSL.sh # Source the function script(s)
|
source /action/lib/functions/updateSSL.sh # Source the function script(s)
|
||||||
# shellcheck source=/dev/null
|
# shellcheck source=/dev/null
|
||||||
source /action/lib/functions/validation.sh # Source the function script(s)
|
source /action/lib/functions/validation.sh # Source the function script(s)
|
||||||
|
@ -308,13 +306,6 @@ export RAW_FILE_ARRAY # Workaround SC2034
|
||||||
TEST_CASE_FOLDER='.automation/test' # Folder for test cases we should always ignore
|
TEST_CASE_FOLDER='.automation/test' # Folder for test cases we should always ignore
|
||||||
export TEST_CASE_FOLDER # Workaround SC2034
|
export TEST_CASE_FOLDER # Workaround SC2034
|
||||||
|
|
||||||
##############
|
|
||||||
# Format #
|
|
||||||
##############
|
|
||||||
# OUTPUT_FORMAT="${OUTPUT_FORMAT}" # Output format to be generated. Default none
|
|
||||||
OUTPUT_FOLDER="${OUTPUT_FOLDER:-super-linter.report}" # Folder where the reports are generated. Default super-linter.report
|
|
||||||
OUTPUT_DETAILS="${OUTPUT_DETAILS:-simpler}" # What level of details. (simpler or detailed). Default simpler
|
|
||||||
|
|
||||||
##########################
|
##########################
|
||||||
# Array of changed files #
|
# Array of changed files #
|
||||||
##########################
|
##########################
|
||||||
|
@ -411,11 +402,6 @@ GetGitHubVars() {
|
||||||
fatal "Provided volume is not a directory!"
|
fatal "Provided volume is not a directory!"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
################################
|
|
||||||
# Set the report output folder #
|
|
||||||
################################
|
|
||||||
REPORT_OUTPUT_FOLDER="${DEFAULT_WORKSPACE}/${OUTPUT_FOLDER}"
|
|
||||||
|
|
||||||
info "Linting all files in mapped directory:[${DEFAULT_WORKSPACE}]"
|
info "Linting all files in mapped directory:[${DEFAULT_WORKSPACE}]"
|
||||||
|
|
||||||
# No need to touch or set the GITHUB_SHA
|
# No need to touch or set the GITHUB_SHA
|
||||||
|
@ -717,16 +703,6 @@ trap 'cleanup' 0 1 2 3 6 14 15
|
||||||
##########
|
##########
|
||||||
Header
|
Header
|
||||||
|
|
||||||
##############################################################
|
|
||||||
# check flag for validating the report folder does not exist #
|
|
||||||
##############################################################
|
|
||||||
if [ -n "${OUTPUT_FORMAT}" ]; then
|
|
||||||
if [ -d "${REPORT_OUTPUT_FOLDER}" ]; then
|
|
||||||
error "ERROR! Found ${REPORT_OUTPUT_FOLDER}"
|
|
||||||
fatal "Please remove the folder and try again."
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
##################################
|
##################################
|
||||||
# Get and print all version info #
|
# Get and print all version info #
|
||||||
##################################
|
##################################
|
||||||
|
@ -747,8 +723,6 @@ export DEFAULT_ANSIBLE_DIRECTORY
|
||||||
DEFAULT_TEST_CASE_ANSIBLE_DIRECTORY="${GITHUB_WORKSPACE}/${TEST_CASE_FOLDER}/ansible" # Default Ansible directory when running test cases
|
DEFAULT_TEST_CASE_ANSIBLE_DIRECTORY="${GITHUB_WORKSPACE}/${TEST_CASE_FOLDER}/ansible" # Default Ansible directory when running test cases
|
||||||
export DEFAULT_TEST_CASE_ANSIBLE_DIRECTORY # Workaround SC2034
|
export DEFAULT_TEST_CASE_ANSIBLE_DIRECTORY # Workaround SC2034
|
||||||
|
|
||||||
REPORT_OUTPUT_FOLDER="${GITHUB_WORKSPACE}/${OUTPUT_FOLDER}" # Location for the report folder
|
|
||||||
|
|
||||||
############################
|
############################
|
||||||
# Validate the environment #
|
# Validate the environment #
|
||||||
############################
|
############################
|
||||||
|
|
Loading…
Reference in a new issue