mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-21 21:50:59 -05:00
ci: update devcontainer definition (#5132)
- Remove unneeded 'context' directive - Update the list of extensions to install - Configure tasks to run super-linter - Remove redundant README - Remove outdated launch configurations and scripts
This commit is contained in:
parent
72d8ac29c4
commit
5e2c028e0f
7 changed files with 57 additions and 69 deletions
|
@ -1,5 +0,0 @@
|
||||||
# Visual Studio Code dev container configuration
|
|
||||||
|
|
||||||
This file specifies to Visual Studio Code how to run a [dev container](https://code.visualstudio.com/docs/remote/containers).
|
|
||||||
|
|
||||||
For format details, see [documentation](https://code.visualstudio.com/docs/remote/devcontainerjson-reference).
|
|
5
.devcontainer/devcontainer.env
Normal file
5
.devcontainer/devcontainer.env
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
ACTIONS_RUNNER_DEBUG=true
|
||||||
|
DEFAULT_BRANCH=main
|
||||||
|
DEFAULT_WORKSPACE=/workspaces/super-linter
|
||||||
|
ENABLE_GITHUB_ACTIONS_GROUP_TITLE=true
|
||||||
|
RUN_LOCAL=true
|
|
@ -1,10 +1,41 @@
|
||||||
{
|
{
|
||||||
"name": "Super-Linter",
|
"name": "Super-Linter",
|
||||||
"context": "..",
|
|
||||||
"image": "ghcr.io/super-linter/super-linter:latest",
|
"image": "ghcr.io/super-linter/super-linter:latest",
|
||||||
|
"customizations": {
|
||||||
|
"vscode": {
|
||||||
|
"settings": {},
|
||||||
"extensions": [
|
"extensions": [
|
||||||
"github.vscode-pull-request-github",
|
"DavidAnson.vscode-markdownlint",
|
||||||
"rogalmic.bash-debug",
|
"EditorConfig.EditorConfig",
|
||||||
"EditorConfig.EditorConfig"
|
"GitHub.vscode-github-actions",
|
||||||
|
"GitHub.vscode-pull-request-github",
|
||||||
|
"mads-hartmann.bash-ide-vscode",
|
||||||
|
"mkhl.shfmt",
|
||||||
|
"ms-azuretools.vscode-docker",
|
||||||
|
"ms-vscode.makefile-tools",
|
||||||
|
"timonwong.shellcheck"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"mounts": [
|
||||||
|
{
|
||||||
|
"source": "${localWorkspaceFolder}/TEMPLATES",
|
||||||
|
"target": "/action/lib/.automation",
|
||||||
|
"type": "bind"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"source": "${localWorkspaceFolder}/lib/linter.sh",
|
||||||
|
"target": "/action/lib/linter.sh",
|
||||||
|
"type": "bind"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"source": "${localWorkspaceFolder}/lib/functions",
|
||||||
|
"target": "/action/lib/functions",
|
||||||
|
"type": "bind"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"runArgs": [
|
||||||
|
"--env-file",
|
||||||
|
".devcontainer/devcontainer.env"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
23
.github/dependabot.yml
vendored
23
.github/dependabot.yml
vendored
|
@ -4,58 +4,53 @@
|
||||||
#################################
|
#################################
|
||||||
version: 2
|
version: 2
|
||||||
updates:
|
updates:
|
||||||
|
|
||||||
|
- package-ecosystem: "devcontainers"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: weekly
|
||||||
|
|
||||||
- package-ecosystem: github-actions
|
- package-ecosystem: github-actions
|
||||||
commit-message:
|
commit-message:
|
||||||
prefix: "deps(github-actions)"
|
prefix: "deps(github-actions)"
|
||||||
directory: "/"
|
directory: "/"
|
||||||
schedule:
|
schedule:
|
||||||
interval: "weekly"
|
interval: "weekly"
|
||||||
open-pull-requests-limit: 10
|
|
||||||
|
|
||||||
# Maintain dependencies for js with npm
|
|
||||||
- package-ecosystem: "npm"
|
- package-ecosystem: "npm"
|
||||||
commit-message:
|
commit-message:
|
||||||
prefix: "deps(npm)"
|
prefix: "deps(npm)"
|
||||||
directory: "/dependencies"
|
directory: "/dependencies"
|
||||||
schedule:
|
schedule:
|
||||||
interval: "weekly"
|
interval: "weekly"
|
||||||
open-pull-requests-limit: 10
|
|
||||||
|
|
||||||
# Maintain dependencies for ruby with bundler
|
|
||||||
- package-ecosystem: "bundler"
|
- package-ecosystem: "bundler"
|
||||||
commit-message:
|
commit-message:
|
||||||
prefix: "deps(bundler)"
|
prefix: "deps(bundler)"
|
||||||
directory: "/dependencies"
|
directory: "/dependencies"
|
||||||
schedule:
|
schedule:
|
||||||
interval: "weekly"
|
interval: "weekly"
|
||||||
open-pull-requests-limit: 10
|
|
||||||
|
|
||||||
# Maintain dependencies for docker
|
|
||||||
- package-ecosystem: "docker"
|
- package-ecosystem: "docker"
|
||||||
commit-message:
|
commit-message:
|
||||||
prefix: "deps(docker)"
|
prefix: "deps(docker)"
|
||||||
directory: "/"
|
directory: "/"
|
||||||
schedule:
|
schedule:
|
||||||
interval: "weekly"
|
interval: "weekly"
|
||||||
open-pull-requests-limit: 10
|
|
||||||
|
|
||||||
# Maintain dependencies for python with pip
|
|
||||||
- package-ecosystem: "pip"
|
- package-ecosystem: "pip"
|
||||||
commit-message:
|
commit-message:
|
||||||
prefix: "deps(python)"
|
prefix: "deps(python)"
|
||||||
directory: "/dependencies/python/"
|
directory: "/dependencies/python/"
|
||||||
schedule:
|
schedule:
|
||||||
interval: "weekly"
|
interval: "weekly"
|
||||||
open-pull-requests-limit: 10
|
|
||||||
|
|
||||||
# Maintain dependencies for Java
|
|
||||||
- package-ecosystem: "gradle"
|
- package-ecosystem: "gradle"
|
||||||
commit-message:
|
commit-message:
|
||||||
prefix: "deps(java)"
|
prefix: "deps(java)"
|
||||||
directory: "/dependencies/checkstyle"
|
directory: "/dependencies/checkstyle"
|
||||||
schedule:
|
schedule:
|
||||||
interval: "weekly"
|
interval: "weekly"
|
||||||
open-pull-requests-limit: 10
|
|
||||||
|
|
||||||
- package-ecosystem: "gradle"
|
- package-ecosystem: "gradle"
|
||||||
commit-message:
|
commit-message:
|
||||||
|
@ -63,7 +58,6 @@ updates:
|
||||||
directory: "/dependencies/google-java-format"
|
directory: "/dependencies/google-java-format"
|
||||||
schedule:
|
schedule:
|
||||||
interval: "weekly"
|
interval: "weekly"
|
||||||
open-pull-requests-limit: 10
|
|
||||||
|
|
||||||
- package-ecosystem: "gradle"
|
- package-ecosystem: "gradle"
|
||||||
commit-message:
|
commit-message:
|
||||||
|
@ -71,22 +65,17 @@ updates:
|
||||||
directory: "/dependencies/ktlint"
|
directory: "/dependencies/ktlint"
|
||||||
schedule:
|
schedule:
|
||||||
interval: "weekly"
|
interval: "weekly"
|
||||||
open-pull-requests-limit: 10
|
|
||||||
|
|
||||||
# Maintain dev dependencies for docker
|
|
||||||
- package-ecosystem: "docker"
|
- package-ecosystem: "docker"
|
||||||
commit-message:
|
commit-message:
|
||||||
prefix: "deps(dev-docker)"
|
prefix: "deps(dev-docker)"
|
||||||
directory: "/dev-dependencies"
|
directory: "/dev-dependencies"
|
||||||
schedule:
|
schedule:
|
||||||
interval: "weekly"
|
interval: "weekly"
|
||||||
open-pull-requests-limit: 10
|
|
||||||
|
|
||||||
# Maintain dev dependencies for js with npm
|
|
||||||
- package-ecosystem: "npm"
|
- package-ecosystem: "npm"
|
||||||
commit-message:
|
commit-message:
|
||||||
prefix: "deps(dev-npm)"
|
prefix: "deps(dev-npm)"
|
||||||
directory: "/dev-dependencies"
|
directory: "/dev-dependencies"
|
||||||
schedule:
|
schedule:
|
||||||
interval: "weekly"
|
interval: "weekly"
|
||||||
open-pull-requests-limit: 10
|
|
||||||
|
|
16
.vscode/launch.json
vendored
16
.vscode/launch.json
vendored
|
@ -1,16 +0,0 @@
|
||||||
{
|
|
||||||
"version": "0.2.0",
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"type": "bashdb",
|
|
||||||
"request": "launch",
|
|
||||||
"name": "Test Linter",
|
|
||||||
"program": ".vscode/testlinter.sh",
|
|
||||||
"cwd": "${workspaceFolder}",
|
|
||||||
"internalConsoleOptions": "openOnSessionStart",
|
|
||||||
"presentation": {
|
|
||||||
"group": "aLinter"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
10
.vscode/tasks.json
vendored
Normal file
10
.vscode/tasks.json
vendored
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"version": "2.0.0",
|
||||||
|
"tasks": [
|
||||||
|
{
|
||||||
|
"label": "Run super-linter",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "/action/lib/linter.sh"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
26
.vscode/testlinter.sh
vendored
26
.vscode/testlinter.sh
vendored
|
@ -1,26 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# At this point you can use the debug console to add export GITHUB_WORKSPACE=/path to test only a specific folder
|
|
||||||
# You can also use ln -s /path /tmp/lint as an alternative
|
|
||||||
# If you do neither, this will default to running against the test automation files
|
|
||||||
|
|
||||||
###########
|
|
||||||
# GLOBALS #
|
|
||||||
###########
|
|
||||||
CODE_PATH='/tmp/lint' # Path to code base
|
|
||||||
|
|
||||||
##################
|
|
||||||
# Check the path #
|
|
||||||
##################
|
|
||||||
if [ ! -L ${CODE_PATH} ]; then
|
|
||||||
# Create symbolic link
|
|
||||||
ln -s "${PWD}"/test/linters ${CODE_PATH}
|
|
||||||
fi
|
|
||||||
|
|
||||||
#########################
|
|
||||||
# Export to run locally #
|
|
||||||
#########################
|
|
||||||
export RUN_LOCAL=true
|
|
||||||
|
|
||||||
# shellcheck source=/dev/null
|
|
||||||
source "${PWD}"/lib/linter.sh
|
|
Loading…
Reference in a new issue