Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
debkanchan committed Apr 24, 2024
2 parents 99000aa + a45674b commit a541579
Show file tree
Hide file tree
Showing 102 changed files with 106 additions and 2 deletions.
1 change: 1 addition & 0 deletions linters/actionlint/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ lint:
files: [github-workflow]
# Custom parser/trigger type defined in the trunk cli.
tools: [actionlint]
description: Verify your Github workflows
commands:
- name: lint
output: actionlint
Expand Down
1 change: 1 addition & 0 deletions linters/ansible-lint/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ lint:
supported_platforms: [linux, macos]
# No files as this linter must be triggered manually.
files: []
description: Improve ansible playbooks
commands:
- name: lint
version: ">=6.1.0"
Expand Down
1 change: 1 addition & 0 deletions linters/autopep8/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ lint:
definitions:
- name: autopep8
files: [python]
description: A python formatter
commands:
- name: format
output: rewrite
Expand Down
1 change: 1 addition & 0 deletions linters/bandit/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ lint:
tools: [bandit]
suggest_if: files_present
direct_configs: [.bandit]
description: A security linter for Python
commands:
- name: lint
# Custom parser type defined in the trunk cli to handle bandit's JSON output.
Expand Down
1 change: 1 addition & 0 deletions linters/biome/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ lint:
- typescript
- javascript
- json
description: A static analyzer for web projects
commands:
- name: lint
output: regex
Expand Down
1 change: 1 addition & 0 deletions linters/black/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ lint:
definitions:
- name: black
files: [python, jupyter, python-interface]
description: Uncompromising python formatter
commands:
- name: format
output: rewrite
Expand Down
1 change: 1 addition & 0 deletions linters/brakeman/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ lint:
definitions:
- name: brakeman
files: [ruby]
description: A vulnerability scanner for Ruby
commands:
- name: lint
# 5.0.0 introduced the sarif output format.
Expand Down
3 changes: 3 additions & 0 deletions linters/buf/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ lint:
files: [proto]
download: buf
suggest_if: never
description: Formatter for Protobuf
commands:
- name: format
output: rewrite
Expand Down Expand Up @@ -62,6 +63,7 @@ lint:
- name: buf-lint
files: [proto]
download: buf
description: Accelerate Protobuf development with Buf
commands:
- name: lint
output: buf
Expand Down Expand Up @@ -90,6 +92,7 @@ lint:
files: [proto]
download: buf
suggest_if: never
description: Check for breaking Protobuf API changes
commands:
- name: lint
output: buf
Expand Down
1 change: 1 addition & 0 deletions linters/buildifier/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ lint:
- name: buildifier
files: [starlark, bazel-build, bazel-workspace]
tools: [buildifier]
description: Formatter for Bazel files
commands:
- name: fix
run: buildifier --lint=fix --warnings=all "${target}"
Expand Down
1 change: 1 addition & 0 deletions linters/cfnlint/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ lint:
definitions:
- name: cfnlint
files: [cloudformation]
description: Checks Cloudformation files
commands:
- name: lint
# Custom parser type defined in the trunk cli to handle cfnlint's JSON output and triggers.
Expand Down
1 change: 1 addition & 0 deletions linters/checkov/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ lint:
- name: checkov
files: [terraform, cloudformation, docker, yaml, json]
tools: [checkov]
description: Finds security issues in IaC files
commands:
- name: lint
# on Windows, we need to make sure 'checkov' resolves to 'checkov.cmd'
Expand Down
1 change: 1 addition & 0 deletions linters/circleci/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ lint:
tools: [circleci]
known_good_version: 0.1.28811
suggest_if: never
description: Validates CircleCI configuration files
commands:
- name: validate
platforms: [windows]
Expand Down
1 change: 1 addition & 0 deletions linters/clang-format/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ lint:
definitions:
- name: clang-format
supported_platforms: [linux, macos]
description: Formatter for C/C++ and Protobuf
files: [c/c++, cuda, proto]
commands:
- name: format
Expand Down
1 change: 1 addition & 0 deletions linters/clang-tidy/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ lint:
- name: clang-tidy
supported_platforms: [linux, macos]
files: [c/c++-source]
description: Static Analyzer for C/C++
commands:
- name: lint
output: llvm
Expand Down
1 change: 1 addition & 0 deletions linters/clippy/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ lint:
- name: clippy
files: [rust]
download: rust
description: Catch common mistakes and improve your Rust code.
commands:
- name: lint
# Custom parser type defined in the trunk cli to handle clippy's JSON output.
Expand Down
1 change: 1 addition & 0 deletions linters/cmake-format/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ lint:
definitions:
- name: cmake-format
files: [cmake]
description: A formatter for cmake files
commands:
- name: fix
formatter: true
Expand Down
1 change: 1 addition & 0 deletions linters/codespell/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ lint:
files: [ALL]
direct_configs: [.codespellrc]
suggest_if: config_present
description: Check for common misspellings in your code
affects_cache:
- pyproject.toml
- setup.cfg
Expand Down
1 change: 1 addition & 0 deletions linters/cspell/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ lint:
- name: cspell
files: [ALL]
tools: [cspell]
description: Check for spelling mistakes in your code
commands:
- name: lint
output: regex
Expand Down
1 change: 1 addition & 0 deletions linters/cue-fmt/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ lint:
definitions:
- name: cue-fmt
files: [cue]
description: A formatter for cue files
commands:
- name: format
output: rewrite
Expand Down
1 change: 1 addition & 0 deletions linters/dart/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ lint:
files: [dart]
known_good_version: 3.2.6
suggest_if: never
description: Lints and formats dart code
affects_cache:
- analysis_options.yaml
- pubspec.yaml
Expand Down
1 change: 1 addition & 0 deletions linters/deno/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ lint:
definitions:
- name: deno
files: [javascript, typescript, markdown, json]
description: A formatter for web framework code
commands:
- name: format
output: rewrite
Expand Down
3 changes: 3 additions & 0 deletions linters/detekt/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ lint:
- name: detekt
files: [kotlin]
download: detekt
description: Static code analysis for Kotlin
commands:
- name: lint
platforms: [windows]
Expand Down Expand Up @@ -45,6 +46,7 @@ lint:
- name: detekt-explicit
files: [kotlin]
download: detekt
description: Static code analysis for Kotlin
commands:
- name: lint
platforms: [windows]
Expand Down Expand Up @@ -75,6 +77,7 @@ lint:
- name: detekt-gradle
supported_platforms: [linux, macos]
files: [kotlin]
description: Static code analysis for Kotlin
commands:
- name: lint
# Custom parser/trigger type defined in the trunk cli.
Expand Down
1 change: 1 addition & 0 deletions linters/djlint/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ lint:
- name: djlint
files: [html]
tools: [djlint]
description: HTML template linter and formatter
commands:
- name: lint
output: regex
Expand Down
1 change: 1 addition & 0 deletions linters/dotenv-linter/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ lint:
- name: dotenv-linter
files: [dotenv]
tools: [dotenv-linter]
description: Lightning-fast linter for .env files
commands:
- name: format
output: rewrite
Expand Down
1 change: 1 addition & 0 deletions linters/dotnet-format/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ lint:
# https://download.visualstudio.microsoft.com/download/pr/0f17575a-a6b0-4365-9b79-64db70022d23/56e0da10678e4b2cad0cba0a83a561af/dotnet-sdk-7.0.400-win-x86.zip,
# but we don't support that yet.
known_good_version: 7.0.400
description: A formatter for dotnet files
commands:
- name: format
run: dotnet format --no-restore --include ${target}
Expand Down
1 change: 1 addition & 0 deletions linters/dustilock/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ lint:
- name: dustilock
files: [dustilock]
tools: [dustilock]
description: Finds security issues in dustilock files
commands:
- name: scan
output: regex
Expand Down
1 change: 1 addition & 0 deletions linters/eslint/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ lint:
- name: eslint
files: [typescript, javascript]
tools: [eslint]
description: Find and fix problems in your TS/JS code
commands:
- name: lint
output: eslint
Expand Down
1 change: 1 addition & 0 deletions linters/flake8/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ lint:
definitions:
- name: flake8
files: [python]
description: Python style guide enforcement
commands:
- name: lint
run: flake8 ${target} --output-file "${tmpfile}" --exit-zero
Expand Down
1 change: 1 addition & 0 deletions linters/git-diff-check/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ lint:
definitions:
- name: git-diff-check
files: [ALL]
description: Checks for git conflicts
commands:
- output: regex
name: lint
Expand Down
1 change: 1 addition & 0 deletions linters/gitleaks/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ lint:
definitions:
- name: gitleaks
files: [ALL]
description: Protect and discover secrets
commands:
- name: lint
run: gitleaks detect --no-git --source=${target} --exit-code=101 -f sarif -r "${tmpfile}"
Expand Down
1 change: 1 addition & 0 deletions linters/gofmt/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ lint:
definitions:
- name: gofmt
files: [go]
description: A formatter for Go code
commands:
- name: format
output: rewrite
Expand Down
1 change: 1 addition & 0 deletions linters/gofumpt/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ lint:
- name: gofumpt
tools: [gofumpt]
files: [go]
description: An opinionated formatter for Go code
commands:
- name: format
output: rewrite
Expand Down
1 change: 1 addition & 0 deletions linters/goimports/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ lint:
definitions:
- name: goimports
files: [go]
description: Removes unused imports from Go code
commands:
- name: format
output: rewrite
Expand Down
1 change: 1 addition & 0 deletions linters/gokart/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ lint:
files: [go]
tools: [gokart]
suggest_if: config_present
description: Checks for security issues in Go code.
environment:
- name: PATH
list: ["${linter}"]
Expand Down
1 change: 1 addition & 0 deletions linters/golangci-lint/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ lint:
- name: golangci-lint
files: [go]
tools: [golangci-lint]
description: A powerful Go linter runner
environment:
- name: GOLANGCI_LINT_CACHE
value: ${cachedir}
Expand Down
1 change: 1 addition & 0 deletions linters/golines/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ lint:
- name: golines
files: [go]
tools: [golines]
description: Enforces line limits in Go
commands:
- name: format
output: rewrite
Expand Down
1 change: 1 addition & 0 deletions linters/google-java-format/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ lint:
- name: google-java-format
files: [java]
download: google-java-format.jar
description: A formatter for Java files
commands:
- name: format
platforms: [windows]
Expand Down
1 change: 1 addition & 0 deletions linters/graphql-schema-linter/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ lint:
tools: [graphql-schema-linter]
known_good_version: 3.0.1
files: [graphql-schema]
description: Validate GraphQL Schema definitions
commands:
- name: lint
# on Windows, we need to make sure the binary resolves to the cmd form
Expand Down
1 change: 1 addition & 0 deletions linters/hadolint/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ lint:
- name: hadolint
files: [docker]
tools: [hadolint]
description: Helps you build best practice Docker images
commands:
- name: lint
# Custom parser type defined in the trunk cli to handle hadolint's JSON output.
Expand Down
1 change: 1 addition & 0 deletions linters/haml-lint/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ lint:
definitions:
- name: haml-lint
files: [haml]
description: Keeps HAML files clean and readable
commands:
- name: lint
# Custom parser type defined in the trunk cli to handle haml_lint's JSON output.
Expand Down
1 change: 1 addition & 0 deletions linters/isort/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ lint:
definitions:
- name: isort
files: [python]
description: Sorts your Python imports
commands:
- name: format
output: rewrite
Expand Down
1 change: 1 addition & 0 deletions linters/iwyu/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ lint:
- name: include-what-you-use
files: [c/c++-source]
tools: [include-what-you-use]
description: Removes unused includes from C/C++ code.
commands:
- name: lint
run_from: ${compile_command}
Expand Down
1 change: 1 addition & 0 deletions linters/ktlint/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ lint:
files: [kotlin]
download: ktlint
runtime: java
description: An anti-bikeshedding Kotlin linter and formatter
commands:
- name: format
platforms: [windows]
Expand Down
1 change: 1 addition & 0 deletions linters/kube-linter/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ lint:
definitions:
- name: kube-linter
tools: [kube-linter]
description: A static analyzer for Kubernetes
files:
- yaml
commands:
Expand Down
1 change: 1 addition & 0 deletions linters/markdown-link-check/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ lint:
- name: markdown-link-check
files: [markdown]
tools: [markdown-link-check]
description: Checks markdown files for broken links
commands:
- name: lint
# Custom parser type defined in the trunk cli to handle markdownlint's JSON output.
Expand Down
1 change: 1 addition & 0 deletions linters/markdown-table-prettify/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ tools:
lint:
definitions:
- name: markdown-table-prettify
description: Prettify markdown tables
files: [markdown]
main_tool: markdown-table-prettify
known_good_version: 3.6.0
Expand Down
Loading

0 comments on commit a541579

Please sign in to comment.