From a6df09ad5111d4da9655edcdd635fed7f78032d6 Mon Sep 17 00:00:00 2001 From: Chris Clearwater Date: Thu, 26 Sep 2024 11:29:27 -0700 Subject: [PATCH 1/6] --- linters/markdownlint-cli2/.markdownlint.yaml | 2 + .../markdownlint-cli2/markdownlint.test.ts | 3 ++ linters/markdownlint-cli2/plugin.yaml | 46 +++++++++++++++++++ .../test_data/.markdownlint-cli2.jsonc | 5 ++ .../markdownlint-cli2/test_data/basic.in.md | 11 +++++ ...markdownlint_cli2_v0.14.0_basic.check.shot | 43 +++++++++++++++++ linters/markdownlint/plugin.yaml | 5 +- 7 files changed, 111 insertions(+), 4 deletions(-) create mode 100644 linters/markdownlint-cli2/.markdownlint.yaml create mode 100644 linters/markdownlint-cli2/markdownlint.test.ts create mode 100644 linters/markdownlint-cli2/plugin.yaml create mode 100644 linters/markdownlint-cli2/test_data/.markdownlint-cli2.jsonc create mode 100644 linters/markdownlint-cli2/test_data/basic.in.md create mode 100644 linters/markdownlint-cli2/test_data/markdownlint_cli2_v0.14.0_basic.check.shot diff --git a/linters/markdownlint-cli2/.markdownlint.yaml b/linters/markdownlint-cli2/.markdownlint.yaml new file mode 100644 index 000000000..b40ee9d7a --- /dev/null +++ b/linters/markdownlint-cli2/.markdownlint.yaml @@ -0,0 +1,2 @@ +# Prettier friendly markdownlint config (all formatting rules disabled) +extends: markdownlint/style/prettier diff --git a/linters/markdownlint-cli2/markdownlint.test.ts b/linters/markdownlint-cli2/markdownlint.test.ts new file mode 100644 index 000000000..91b33f474 --- /dev/null +++ b/linters/markdownlint-cli2/markdownlint.test.ts @@ -0,0 +1,3 @@ +import { linterCheckTest } from "tests"; + +linterCheckTest({ linterName: "markdownlint-cli2" }); diff --git a/linters/markdownlint-cli2/plugin.yaml b/linters/markdownlint-cli2/plugin.yaml new file mode 100644 index 000000000..f37d11a82 --- /dev/null +++ b/linters/markdownlint-cli2/plugin.yaml @@ -0,0 +1,46 @@ +version: 0.1 +tools: + definitions: + - name: markdownlint-cli2 + runtime: node + package: markdownlint-cli2 + shims: [markdownlint-cli2] + known_good_version: 0.14.0 + +lint: + definitions: + - name: markdownlint-cli2 + files: [markdown] + tools: [markdownlint-cli2] + description: A style checker and lint tool for markdown files + commands: + - name: lint + # Custom parser type defined in the trunk cli to handle markdownlint's JSON output. + output: regex + read_output_from: stderr + parse_regex: + "(?P[^:]+):(?P[\\d+]+)(?::(?P[\\d+]+))? (?P[^ ]+) + (?P.*)\n" + run: markdownlint-cli2 ${target} --json + success_codes: [0, 1] + batch: true + cache_results: true + suggest_if: files_present + direct_configs: + - .markdownlint-cli2.jsonc + - .markdownlint-cli2.yaml + - .markdownlint-cli2.cjs + - .markdownlint-cli2.mjs + affects_cache: + - package.json + - .markdownlint.jsonc + - .markdownlint.json + - .markdownlint.yaml + - .markdownlint.yml + - .markdownlint.cjs + - .markdownlint.mjs + issue_url_format: https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#{} + known_good_version: 0.14.0 + version_command: + parse_regex: ${semver} + run: markdownlint --version diff --git a/linters/markdownlint-cli2/test_data/.markdownlint-cli2.jsonc b/linters/markdownlint-cli2/test_data/.markdownlint-cli2.jsonc new file mode 100644 index 000000000..5ecf259c3 --- /dev/null +++ b/linters/markdownlint-cli2/test_data/.markdownlint-cli2.jsonc @@ -0,0 +1,5 @@ +{ + "config": { + "extends": "markdownlint/style/prettier" + } +} diff --git a/linters/markdownlint-cli2/test_data/basic.in.md b/linters/markdownlint-cli2/test_data/basic.in.md new file mode 100644 index 000000000..9163e8372 --- /dev/null +++ b/linters/markdownlint-cli2/test_data/basic.in.md @@ -0,0 +1,11 @@ +# bad.md + +# This file fails some rules + +Line is OK- Make a realy long line that breaks the layout rules completely. Make a realy long line +that breaks +But this should be ignored because of config + + +Line is too long (over 120) A B C D E F G A B C D E F G A B C D E F G A B C D E F G A B C D E F G A +B C D E F G A B C D E F G A B C D E F G diff --git a/linters/markdownlint-cli2/test_data/markdownlint_cli2_v0.14.0_basic.check.shot b/linters/markdownlint-cli2/test_data/markdownlint_cli2_v0.14.0_basic.check.shot new file mode 100644 index 000000000..a0471cf50 --- /dev/null +++ b/linters/markdownlint-cli2/test_data/markdownlint_cli2_v0.14.0_basic.check.shot @@ -0,0 +1,43 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Testing linter markdownlint-cli2 test basic 1`] = ` +{ + "issues": [ + { + "code": "MD025/single-title/single-h1", + "column": "1", + "file": "test_data/basic.in.md", + "issueClass": "ISSUE_CLASS_EXISTING", + "issueUrl": "https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#MD025/single-title/single-h1", + "level": "LEVEL_HIGH", + "line": "3", + "linter": "markdownlint-cli2", + "message": "Multiple top-level headings in the same document [Context: "This file fails some rules"]", + "targetType": "markdown", + }, + ], + "lintActions": [ + { + "command": "lint", + "fileGroupName": "markdown", + "linter": "markdownlint-cli2", + "paths": [ + "test_data/basic.in.md", + ], + "verb": "TRUNK_VERB_CHECK", + }, + { + "command": "lint", + "fileGroupName": "markdown", + "linter": "markdownlint-cli2", + "paths": [ + "test_data/basic.in.md", + ], + "upstream": true, + "verb": "TRUNK_VERB_CHECK", + }, + ], + "taskFailures": [], + "unformattedFiles": [], +} +`; diff --git a/linters/markdownlint/plugin.yaml b/linters/markdownlint/plugin.yaml index 978bbdd0c..e0b8e2b3e 100644 --- a/linters/markdownlint/plugin.yaml +++ b/linters/markdownlint/plugin.yaml @@ -20,15 +20,12 @@ lint: success_codes: [0, 1] batch: true cache_results: true - suggest_if: files_present + suggest_if: config_present direct_configs: - .markdownlint.json - .markdownlint.yaml - .markdownlint.yml - .markdownlintrc - - .markdownlint-cli2.json - - .markdownlint-cli2.yaml - - .markdownlint-cli2.jsonc issue_url_format: https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#{} known_good_version: 0.33.0 version_command: From 1db74cf6cde8da2f89c52f19e94541931a5b2664 Mon Sep 17 00:00:00 2001 From: Chris Clearwater Date: Thu, 26 Sep 2024 11:30:48 -0700 Subject: [PATCH 2/6] --- README.md | 106 ++--- junit.xml | 632 ++++++++++++++++++++++++++ linters/markdownlint-cli2/plugin.yaml | 2 +- linters/markdownlint/plugin.yaml | 2 +- 4 files changed, 687 insertions(+), 55 deletions(-) create mode 100644 junit.xml diff --git a/README.md b/README.md index 3df95c43b..e8038599c 100644 --- a/README.md +++ b/README.md @@ -38,59 +38,59 @@ Enable the following tools via: trunk check enable {linter} ``` -| Technology | Linters | -| --------------- | -------------------------------------------------------------------------------------------------------------------- | -| All | [codespell], [cspell], [gitleaks], [git-diff-check], [pre-commit-hooks], [trunk-toolbox], [vale] | -| Ansible | [ansible-lint] | -| Apex | [pmd] | -| Bash | [shellcheck], [shfmt] | -| Bazel, Starlark | [buildifier] | -| C, C++ | [clang-format], [clang-tidy], [include-what-you-use], [pragma-once] | -| C# | [dotnet-format] | -| CircleCI Config | [circleci] | -| Cloudformation | [cfnlint], [checkov] | -| CMake | [cmake-format] | -| CSS, SCSS | [stylelint], [prettier] | -| Cue | [cue-fmt] | -| Dart | [dart] | -| Docker | [hadolint], [checkov] | -| Dotenv | [dotenv-linter] | -| GitHub | [actionlint] | -| Go | [gofmt], [gofumpt], [goimports], [gokart], [golangci-lint], [golines], [semgrep] | -| GraphQL | [graphql-schema-linter], [prettier] | -| HAML | [haml-lint] | -| HTML Templates | [djlint] | -| Java | [google-java-format], [pmd], [semgrep] | -| Javascript | [biome], [deno], [eslint], [prettier], [rome], [semgrep] | -| JSON | [biome], [deno], [eslint], [prettier], [semgrep] | -| Kotlin | [detekt], [ktlint] | -| Kubernetes | [kube-linter] | -| Lua | [stylua] | -| Markdown | [deno], [markdownlint], [markdown-link-check], [markdown-table-prettify], [prettier], [remark-lint] | -| Nix | [nixpkgs-fmt] | -| package.json | [sort-package-json] | -| Perl | [perlcritic], [perltidy] | -| PHP | [php-cs-fixer], [phpstan] | -| PNG | [oxipng] | -| PowerShell | [psscriptanalyzer] | -| Prisma | [prisma] | -| Protobuf | [buf] (breaking, lint, and format), [clang-format], [clang-tidy] | -| Python | [autopep8], [bandit], [black], [flake8], [isort], [mypy], [pylint], [pyright], [semgrep], [yapf], [ruff], [sourcery] | -| Rego | [regal], [opa] | -| Renovate | [renovate] | -| Ruby | [brakeman], [rubocop], [rufo], [semgrep], [standardrb] | -| Rust | [clippy], [rustfmt] | -| Scala | [scalafmt] | -| Security | [checkov], [dustilock], [nancy], [osv-scanner], [tfsec], [trivy], [trufflehog], [terrascan] | -| SQL | [sqlfluff], [sqlfmt], [sql-formatter] | -| SVG | [svgo] | -| Swift | [stringslint], [swiftlint], [swiftformat] | -| Terraform | [terraform] (validate and fmt), [checkov], [tflint], [tfsec], [terrascan], [tofu] | -| Terragrunt | [terragrunt] | -| Textproto | [txtpbfmt] | -| TOML | [taplo] | -| Typescript | [deno], [eslint], [prettier], [rome], [semgrep] | -| YAML | [prettier], [semgrep], [yamllint] | +| Technology | Linters | +| --------------- | ------------------------------------------------------------------------------------------------------------------------ | +| All | [codespell], [cspell], [gitleaks], [git-diff-check], [pre-commit-hooks], [trunk-toolbox], [vale] | +| Ansible | [ansible-lint] | +| Apex | [pmd] | +| Bash | [shellcheck], [shfmt] | +| Bazel, Starlark | [buildifier] | +| C, C++ | [clang-format], [clang-tidy], [include-what-you-use], [pragma-once] | +| C# | [dotnet-format] | +| CircleCI Config | [circleci] | +| Cloudformation | [cfnlint], [checkov] | +| CMake | [cmake-format] | +| CSS, SCSS | [stylelint], [prettier] | +| Cue | [cue-fmt] | +| Dart | [dart] | +| Docker | [hadolint], [checkov] | +| Dotenv | [dotenv-linter] | +| GitHub | [actionlint] | +| Go | [gofmt], [gofumpt], [goimports], [gokart], [golangci-lint], [golines], [semgrep] | +| GraphQL | [graphql-schema-linter], [prettier] | +| HAML | [haml-lint] | +| HTML Templates | [djlint] | +| Java | [google-java-format], [pmd], [semgrep] | +| Javascript | [biome], [deno], [eslint], [prettier], [rome], [semgrep] | +| JSON | [biome], [deno], [eslint], [prettier], [semgrep] | +| Kotlin | [detekt], [ktlint] | +| Kubernetes | [kube-linter] | +| Lua | [stylua] | +| Markdown | [deno], [markdownlint], [markdownlint-cli2], [markdown-link-check], [markdown-table-prettify], [prettier], [remark-lint] | +| Nix | [nixpkgs-fmt] | +| package.json | [sort-package-json] | +| Perl | [perlcritic], [perltidy] | +| PHP | [php-cs-fixer], [phpstan] | +| PNG | [oxipng] | +| PowerShell | [psscriptanalyzer] | +| Prisma | [prisma] | +| Protobuf | [buf] (breaking, lint, and format), [clang-format], [clang-tidy] | +| Python | [autopep8], [bandit], [black], [flake8], [isort], [mypy], [pylint], [pyright], [semgrep], [yapf], [ruff], [sourcery] | +| Rego | [regal], [opa] | +| Renovate | [renovate] | +| Ruby | [brakeman], [rubocop], [rufo], [semgrep], [standardrb] | +| Rust | [clippy], [rustfmt] | +| Scala | [scalafmt] | +| Security | [checkov], [dustilock], [nancy], [osv-scanner], [tfsec], [trivy], [trufflehog], [terrascan] | +| SQL | [sqlfluff], [sqlfmt], [sql-formatter] | +| SVG | [svgo] | +| Swift | [stringslint], [swiftlint], [swiftformat] | +| Terraform | [terraform] (validate and fmt), [checkov], [tflint], [tfsec], [terrascan], [tofu] | +| Terragrunt | [terragrunt] | +| Textproto | [txtpbfmt] | +| TOML | [taplo] | +| Typescript | [deno], [eslint], [prettier], [rome], [semgrep] | +| YAML | [prettier], [semgrep], [yamllint] | [actionlint]: https://trunk.io/linters/infra/actionlint [ansible-lint]: https://github.com/ansible/ansible-lint#readme diff --git a/junit.xml b/junit.xml new file mode 100644 index 000000000..d1dabdb9a --- /dev/null +++ b/junit.xml @@ -0,0 +1,632 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Error: expect(received).toContain(expected) // indexOf + +Expected substring: "markdownlint-cli2" +Received string: "### Supported Linters, Formatters, and Security Tools· +Enable the following tools via:· +```bash +trunk check enable {linter} +```· +| Technology | Linters | +| --------------- | -------------------------------------------------------------------------------------------------------------------- | +| All | [codespell], [cspell], [gitleaks], [git-diff-check], [pre-commit-hooks], [trunk-toolbox], [vale] | +| Ansible | [ansible-lint] | +| Apex | [pmd] | +| Bash | [shellcheck], [shfmt] | +| Bazel, Starlark | [buildifier] | +| C, C++ | [clang-format], [clang-tidy], [include-what-you-use], [pragma-once] | +| C# | [dotnet-format] | +| CircleCI Config | [circleci] | +| Cloudformation | [cfnlint], [checkov] | +| CMake | [cmake-format] | +| CSS, SCSS | [stylelint], [prettier] | +| Cue | [cue-fmt] | +| Dart | [dart] | +| Docker | [hadolint], [checkov] | +| Dotenv | [dotenv-linter] | +| GitHub | [actionlint] | +| Go | [gofmt], [gofumpt], [goimports], [gokart], [golangci-lint], [golines], [semgrep] | +| GraphQL | [graphql-schema-linter], [prettier] | +| HAML | [haml-lint] | +| HTML Templates | [djlint] | +| Java | [google-java-format], [pmd], [semgrep] | +| Javascript | [biome], [deno], [eslint], [prettier], [rome], [semgrep] | +| JSON | [biome], [deno], [eslint], [prettier], [semgrep] | +| Kotlin | [detekt], [ktlint] | +| Kubernetes | [kube-linter] | +| Lua | [stylua] | +| Markdown | [deno], [markdownlint], [markdown-link-check], [markdown-table-prettify], [prettier], [remark-lint] | +| Nix | [nixpkgs-fmt] | +| package.json | [sort-package-json] | +| Perl | [perlcritic], [perltidy] | +| PHP | [php-cs-fixer], [phpstan] | +| PNG | [oxipng] | +| PowerShell | [psscriptanalyzer] | +| Prisma | [prisma] | +| Protobuf | [buf] (breaking, lint, and format), [clang-format], [clang-tidy] | +| Python | [autopep8], [bandit], [black], [flake8], [isort], [mypy], [pylint], [pyright], [semgrep], [yapf], [ruff], [sourcery] | +| Rego | [regal], [opa] | +| Renovate | [renovate] | +| Ruby | [brakeman], [rubocop], [rufo], [semgrep], [standardrb] | +| Rust | [clippy], [rustfmt] | +| Scala | [scalafmt] | +| Security | [checkov], [dustilock], [nancy], [osv-scanner], [tfsec], [trivy], [trufflehog], [terrascan] | +| SQL | [sqlfluff], [sqlfmt], [sql-formatter] | +| SVG | [svgo] | +| Swift | [stringslint], [swiftlint], [swiftformat] | +| Terraform | [terraform] (validate and fmt), [checkov], [tflint], [tfsec], [terrascan], [tofu] | +| Terragrunt | [terragrunt] | +| Textproto | [txtpbfmt] | +| TOML | [taplo] | +| Typescript | [deno], [eslint], [prettier], [rome], [semgrep] | +| YAML | [prettier], [semgrep], [yamllint] |· +[actionlint]: https://trunk.io/linters/infra/actionlint +[ansible-lint]: https://github.com/ansible/ansible-lint#readme +[autopep8]: https://github.com/hhatto/autopep8#readme +[bandit]: https://trunk.io/linters/python/bandit +[biome]: https://github.com/biomejs/biome#readme +[black]: https://github.com/psf/black#readme +[brakeman]: https://trunk.io/linters/security/brakeman +[buf]: https://github.com/bufbuild/buf#readme +[buildifier]: https://github.com/bazelbuild/buildtools/blob/master/buildifier/README.md +[cfnlint]: https://github.com/aws-cloudformation/cfn-lint#readme +[checkov]: https://trunk.io/linters/security/checkov +[circleci]: https://github.com/CircleCI-Public/circleci-cli#readme +[clang-format]: https://clang.llvm.org/docs/ClangFormat.html +[clang-tidy]: https://clang.llvm.org/extra/clang-tidy/ +[clippy]: https://github.com/rust-lang/rust-clippy#readme +[cmake-format]: https://cmake-format.readthedocs.io/en/latest +[codespell]: https://github.com/codespell-project/codespell#readme +[cspell]: https://github.com/streetsidesoftware/cspell#readme +[cue-fmt]: https://cuelang.org/ +[dart]: https://dart.dev/tools/sdk +[deno]: https://deno.land/manual +[detekt]: https://github.com/detekt/detekt#readme +[djlint]: https://github.com/Riverside-Healthcare/djlint#readme +[dotenv-linter]: https://github.com/dotenv-linter/dotenv-linter#readme +[dotnet-format]: https://github.com/dotnet/format#readme +[dustilock]: https://github.com/Checkmarx/dustilock +[eslint]: https://eslint.org/docs/latest/ +[flake8]: https://trunk.io/linters/python/flake8 +[git-diff-check]: https://git-scm.com/docs/git-diff +[gitleaks]: https://trunk.io/linters/security/gitleaks +[gofmt]: https://pkg.go.dev/cmd/gofmt +[gofumpt]: https://pkg.go.dev/mvdan.cc/gofumpt +[goimports]: https://pkg.go.dev/golang.org/x/tools/cmd/goimports +[gokart]: https://github.com/praetorian-inc/gokart +[golangci-lint]: https://github.com/golangci/golangci-lint#readme +[golines]: https://pkg.go.dev/github.com/segmentio/golines +[google-java-format]: https://github.com/google/google-java-format#readme +[graphql-schema-linter]: https://github.com/cjoudrey/graphql-schema-linter#readme +[hadolint]: https://github.com/hadolint/hadolint#readme +[haml-lint]: https://github.com/sds/haml-lint#readme +[include-what-you-use]: https://github.com/include-what-you-use/include-what-you-use#readme +[isort]: https://github.com/PyCQA/isort#readme +[ktlint]: https://github.com/pinterest/ktlint#readme +[kube-linter]: https://github.com/stackrox/kube-linter#readme +[markdownlint]: https://github.com/DavidAnson/markdownlint#readme +[markdown-table-prettify]: https://github.com/darkriszty/MarkdownTablePrettify-VSCodeExt#readme +[markdown-link-check]: https://github.com/tcort/markdown-link-check#readme +[mypy]: https://github.com/python/mypy#readme +[nancy]: https://github.com/sonatype-nexus-community/nancy#readme +[nixpkgs-fmt]: https://github.com/nix-community/nixpkgs-fmt +[opa]: https://www.openpolicyagent.org/docs/latest/cli/ +[osv-scanner]: https://trunk.io/linters/security/osv-scanner +[oxipng]: https://github.com/shssoichiro/oxipng#readme +[perlcritic]: https://metacpan.org/pod/Perl::Critic +[perltidy]: https://metacpan.org/dist/Perl-Tidy/view/bin/perltidy +[php-cs-fixer]: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer#readme +[phpstan]: https://phpstan.org/ +[pmd]: https://pmd.github.io/ +[pragma-once]: linters/pragma-once/README.md +[prettier]: https://github.com/prettier/prettier#readme +[pre-commit-hooks]: https://pre-commit.com/hooks.html +[prisma]: https://github.com/prisma/prisma#readme +[psscriptanalyzer]: https://github.com/PowerShell/PSScriptAnalyzer +[pylint]: https://github.com/PyCQA/pylint#readme +[pyright]: https://github.com/microsoft/pyright +[regal]: https://github.com/StyraInc/regal#readme +[remark-lint]: https://github.com/remarkjs/remark-lint#readme +[renovate]: https://github.com/renovatebot/renovate#readme +[rome]: https://github.com/rome/tools#readme +[rubocop]: https://github.com/rubocop/rubocop#readme +[ruff]: https://trunk.io/linters/python/ruff +[rufo]: https://github.com/ruby-formatter/rufo#readme +[rustfmt]: https://github.com/rust-lang/rustfmt#readme +[scalafmt]: https://github.com/scalameta/scalafmt#readme +[semgrep]: https://github.com/returntocorp/semgrep#readme +[shellcheck]: https://trunk.io/linters/shell/shellcheck +[shfmt]: https://github.com/mvdan/sh#readme +[sort-package-json]: https://github.com/keithamus/sort-package-json#readme +[sql-formatter]: https://github.com/sql-formatter-org/sql-formatter#readme +[sqlfluff]: https://github.com/sqlfluff/sqlfluff#readme +[sqlfmt]: https://github.com/tconbeer/sqlfmt#readme +[standardrb]: https://github.com/testdouble/standard#readme +[stringslint]: https://github.com/dral3x/StringsLint#readme +[stylelint]: https://github.com/stylelint/stylelint#readme +[stylua]: https://github.com/JohnnyMorganz/StyLua/tree/main +[sourcery]: https://sourcery.ai/ +[svgo]: https://trunk.io/linters/nodejs/svgo +[swiftformat]: https://github.com/nicklockwood/SwiftFormat#readme +[swiftlint]: https://github.com/realm/SwiftLint#readme +[taplo]: https://github.com/tamasfe/taplo#readme +[terrascan]: https://github.com/tenable/terrascan#readme +[terraform]: https://developer.hashicorp.com/terraform/cli/code +[tofu]: https://opentofu.org/ +[terragrunt]: https://terragrunt.gruntwork.io/docs/getting-started/quick-start/ +[tflint]: https://github.com/terraform-linters/tflint#readme +[tfsec]: https://github.com/aquasecurity/tfsec +[trivy]: https://trunk.io/linters/security/trivy +[trufflehog]: https://trunk.io/linters/security/trufflehog +[trunk-toolbox]: https://github.com/trunk-io/toolbox#readme +[txtpbfmt]: https://github.com/protocolbuffers/txtpbfmt#readme +[vale]: https://vale.sh/docs/ +[yamllint]: https://trunk.io/linters/yaml/yamllint +[yapf]: https://github.com/google/yapf#readme· +<br/>· +" + at Object.<anonymous> (/home/chris/Projects/plugins/tests/repo_tests/readme_inclusion.test.ts:32:39) + at Promise.then.completed (/home/chris/Projects/plugins/node_modules/jest-circus/build/utils.js:298:28) + at new Promise (<anonymous>) + at callAsyncCircusFn (/home/chris/Projects/plugins/node_modules/jest-circus/build/utils.js:231:10) + at _callCircusTest (/home/chris/Projects/plugins/node_modules/jest-circus/build/run.js:316:40) + at processTicksAndRejections (node:internal/process/task_queues:95:5) + at _runTest (/home/chris/Projects/plugins/node_modules/jest-circus/build/run.js:252:3) + at _runTestsForDescribeBlock (/home/chris/Projects/plugins/node_modules/jest-circus/build/run.js:126:9) + at _runTestsForDescribeBlock (/home/chris/Projects/plugins/node_modules/jest-circus/build/run.js:121:9) + at run (/home/chris/Projects/plugins/node_modules/jest-circus/build/run.js:71:3) + at runAndTransformResultsToJestFormat (/home/chris/Projects/plugins/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) + at jestAdapter (/home/chris/Projects/plugins/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) + at runTestInternal (/home/chris/Projects/plugins/node_modules/jest-runner/build/runTest.js:367:16) + at runTest (/home/chris/Projects/plugins/node_modules/jest-runner/build/runTest.js:444:34) + at Object.worker (/home/chris/Projects/plugins/node_modules/jest-runner/build/testWorker.js:106:12) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Error: expect(received).toMatchInlineSnapshot(snapshot) + +Snapshot name: `Global config health check validate auto-enabled linters 1` + +- Snapshot - 1 ++ Received + 1 + +@@ -13,11 +13,11 @@ + "golangci-lint", + "hadolint", + "haml-lint", + "isort", + "ktlint", +- "markdownlint", ++ "markdownlint-cli2", + "nixpkgs-fmt", + "osv-scanner", + "oxipng", + "prettier", + "ruff", + at Object.<anonymous> (/home/chris/Projects/plugins/tests/repo_tests/config_check.test.ts:138:32) + at processTicksAndRejections (node:internal/process/task_queues:95:5) + + + \ No newline at end of file diff --git a/linters/markdownlint-cli2/plugin.yaml b/linters/markdownlint-cli2/plugin.yaml index f37d11a82..1b662a8d4 100644 --- a/linters/markdownlint-cli2/plugin.yaml +++ b/linters/markdownlint-cli2/plugin.yaml @@ -25,7 +25,7 @@ lint: success_codes: [0, 1] batch: true cache_results: true - suggest_if: files_present + suggest_if: config_present direct_configs: - .markdownlint-cli2.jsonc - .markdownlint-cli2.yaml diff --git a/linters/markdownlint/plugin.yaml b/linters/markdownlint/plugin.yaml index e0b8e2b3e..1aa1515d5 100644 --- a/linters/markdownlint/plugin.yaml +++ b/linters/markdownlint/plugin.yaml @@ -20,7 +20,7 @@ lint: success_codes: [0, 1] batch: true cache_results: true - suggest_if: config_present + suggest_if: files_present direct_configs: - .markdownlint.json - .markdownlint.yaml From 0ceb8966e30c8d9fc684494e230e00859f0bc3df Mon Sep 17 00:00:00 2001 From: Chris Clearwater Date: Thu, 26 Sep 2024 11:31:09 -0700 Subject: [PATCH 3/6] --- .gitignore | 2 + junit.xml | 632 ----------------------------------------------------- 2 files changed, 2 insertions(+), 632 deletions(-) delete mode 100644 junit.xml diff --git a/.gitignore b/.gitignore index 003c57f6f..026fd7db3 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,5 @@ node_modules/ # Typescript out/ + +junit.xml diff --git a/junit.xml b/junit.xml deleted file mode 100644 index d1dabdb9a..000000000 --- a/junit.xml +++ /dev/null @@ -1,632 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Error: expect(received).toContain(expected) // indexOf - -Expected substring: "markdownlint-cli2" -Received string: "### Supported Linters, Formatters, and Security Tools· -Enable the following tools via:· -```bash -trunk check enable {linter} -```· -| Technology | Linters | -| --------------- | -------------------------------------------------------------------------------------------------------------------- | -| All | [codespell], [cspell], [gitleaks], [git-diff-check], [pre-commit-hooks], [trunk-toolbox], [vale] | -| Ansible | [ansible-lint] | -| Apex | [pmd] | -| Bash | [shellcheck], [shfmt] | -| Bazel, Starlark | [buildifier] | -| C, C++ | [clang-format], [clang-tidy], [include-what-you-use], [pragma-once] | -| C# | [dotnet-format] | -| CircleCI Config | [circleci] | -| Cloudformation | [cfnlint], [checkov] | -| CMake | [cmake-format] | -| CSS, SCSS | [stylelint], [prettier] | -| Cue | [cue-fmt] | -| Dart | [dart] | -| Docker | [hadolint], [checkov] | -| Dotenv | [dotenv-linter] | -| GitHub | [actionlint] | -| Go | [gofmt], [gofumpt], [goimports], [gokart], [golangci-lint], [golines], [semgrep] | -| GraphQL | [graphql-schema-linter], [prettier] | -| HAML | [haml-lint] | -| HTML Templates | [djlint] | -| Java | [google-java-format], [pmd], [semgrep] | -| Javascript | [biome], [deno], [eslint], [prettier], [rome], [semgrep] | -| JSON | [biome], [deno], [eslint], [prettier], [semgrep] | -| Kotlin | [detekt], [ktlint] | -| Kubernetes | [kube-linter] | -| Lua | [stylua] | -| Markdown | [deno], [markdownlint], [markdown-link-check], [markdown-table-prettify], [prettier], [remark-lint] | -| Nix | [nixpkgs-fmt] | -| package.json | [sort-package-json] | -| Perl | [perlcritic], [perltidy] | -| PHP | [php-cs-fixer], [phpstan] | -| PNG | [oxipng] | -| PowerShell | [psscriptanalyzer] | -| Prisma | [prisma] | -| Protobuf | [buf] (breaking, lint, and format), [clang-format], [clang-tidy] | -| Python | [autopep8], [bandit], [black], [flake8], [isort], [mypy], [pylint], [pyright], [semgrep], [yapf], [ruff], [sourcery] | -| Rego | [regal], [opa] | -| Renovate | [renovate] | -| Ruby | [brakeman], [rubocop], [rufo], [semgrep], [standardrb] | -| Rust | [clippy], [rustfmt] | -| Scala | [scalafmt] | -| Security | [checkov], [dustilock], [nancy], [osv-scanner], [tfsec], [trivy], [trufflehog], [terrascan] | -| SQL | [sqlfluff], [sqlfmt], [sql-formatter] | -| SVG | [svgo] | -| Swift | [stringslint], [swiftlint], [swiftformat] | -| Terraform | [terraform] (validate and fmt), [checkov], [tflint], [tfsec], [terrascan], [tofu] | -| Terragrunt | [terragrunt] | -| Textproto | [txtpbfmt] | -| TOML | [taplo] | -| Typescript | [deno], [eslint], [prettier], [rome], [semgrep] | -| YAML | [prettier], [semgrep], [yamllint] |· -[actionlint]: https://trunk.io/linters/infra/actionlint -[ansible-lint]: https://github.com/ansible/ansible-lint#readme -[autopep8]: https://github.com/hhatto/autopep8#readme -[bandit]: https://trunk.io/linters/python/bandit -[biome]: https://github.com/biomejs/biome#readme -[black]: https://github.com/psf/black#readme -[brakeman]: https://trunk.io/linters/security/brakeman -[buf]: https://github.com/bufbuild/buf#readme -[buildifier]: https://github.com/bazelbuild/buildtools/blob/master/buildifier/README.md -[cfnlint]: https://github.com/aws-cloudformation/cfn-lint#readme -[checkov]: https://trunk.io/linters/security/checkov -[circleci]: https://github.com/CircleCI-Public/circleci-cli#readme -[clang-format]: https://clang.llvm.org/docs/ClangFormat.html -[clang-tidy]: https://clang.llvm.org/extra/clang-tidy/ -[clippy]: https://github.com/rust-lang/rust-clippy#readme -[cmake-format]: https://cmake-format.readthedocs.io/en/latest -[codespell]: https://github.com/codespell-project/codespell#readme -[cspell]: https://github.com/streetsidesoftware/cspell#readme -[cue-fmt]: https://cuelang.org/ -[dart]: https://dart.dev/tools/sdk -[deno]: https://deno.land/manual -[detekt]: https://github.com/detekt/detekt#readme -[djlint]: https://github.com/Riverside-Healthcare/djlint#readme -[dotenv-linter]: https://github.com/dotenv-linter/dotenv-linter#readme -[dotnet-format]: https://github.com/dotnet/format#readme -[dustilock]: https://github.com/Checkmarx/dustilock -[eslint]: https://eslint.org/docs/latest/ -[flake8]: https://trunk.io/linters/python/flake8 -[git-diff-check]: https://git-scm.com/docs/git-diff -[gitleaks]: https://trunk.io/linters/security/gitleaks -[gofmt]: https://pkg.go.dev/cmd/gofmt -[gofumpt]: https://pkg.go.dev/mvdan.cc/gofumpt -[goimports]: https://pkg.go.dev/golang.org/x/tools/cmd/goimports -[gokart]: https://github.com/praetorian-inc/gokart -[golangci-lint]: https://github.com/golangci/golangci-lint#readme -[golines]: https://pkg.go.dev/github.com/segmentio/golines -[google-java-format]: https://github.com/google/google-java-format#readme -[graphql-schema-linter]: https://github.com/cjoudrey/graphql-schema-linter#readme -[hadolint]: https://github.com/hadolint/hadolint#readme -[haml-lint]: https://github.com/sds/haml-lint#readme -[include-what-you-use]: https://github.com/include-what-you-use/include-what-you-use#readme -[isort]: https://github.com/PyCQA/isort#readme -[ktlint]: https://github.com/pinterest/ktlint#readme -[kube-linter]: https://github.com/stackrox/kube-linter#readme -[markdownlint]: https://github.com/DavidAnson/markdownlint#readme -[markdown-table-prettify]: https://github.com/darkriszty/MarkdownTablePrettify-VSCodeExt#readme -[markdown-link-check]: https://github.com/tcort/markdown-link-check#readme -[mypy]: https://github.com/python/mypy#readme -[nancy]: https://github.com/sonatype-nexus-community/nancy#readme -[nixpkgs-fmt]: https://github.com/nix-community/nixpkgs-fmt -[opa]: https://www.openpolicyagent.org/docs/latest/cli/ -[osv-scanner]: https://trunk.io/linters/security/osv-scanner -[oxipng]: https://github.com/shssoichiro/oxipng#readme -[perlcritic]: https://metacpan.org/pod/Perl::Critic -[perltidy]: https://metacpan.org/dist/Perl-Tidy/view/bin/perltidy -[php-cs-fixer]: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer#readme -[phpstan]: https://phpstan.org/ -[pmd]: https://pmd.github.io/ -[pragma-once]: linters/pragma-once/README.md -[prettier]: https://github.com/prettier/prettier#readme -[pre-commit-hooks]: https://pre-commit.com/hooks.html -[prisma]: https://github.com/prisma/prisma#readme -[psscriptanalyzer]: https://github.com/PowerShell/PSScriptAnalyzer -[pylint]: https://github.com/PyCQA/pylint#readme -[pyright]: https://github.com/microsoft/pyright -[regal]: https://github.com/StyraInc/regal#readme -[remark-lint]: https://github.com/remarkjs/remark-lint#readme -[renovate]: https://github.com/renovatebot/renovate#readme -[rome]: https://github.com/rome/tools#readme -[rubocop]: https://github.com/rubocop/rubocop#readme -[ruff]: https://trunk.io/linters/python/ruff -[rufo]: https://github.com/ruby-formatter/rufo#readme -[rustfmt]: https://github.com/rust-lang/rustfmt#readme -[scalafmt]: https://github.com/scalameta/scalafmt#readme -[semgrep]: https://github.com/returntocorp/semgrep#readme -[shellcheck]: https://trunk.io/linters/shell/shellcheck -[shfmt]: https://github.com/mvdan/sh#readme -[sort-package-json]: https://github.com/keithamus/sort-package-json#readme -[sql-formatter]: https://github.com/sql-formatter-org/sql-formatter#readme -[sqlfluff]: https://github.com/sqlfluff/sqlfluff#readme -[sqlfmt]: https://github.com/tconbeer/sqlfmt#readme -[standardrb]: https://github.com/testdouble/standard#readme -[stringslint]: https://github.com/dral3x/StringsLint#readme -[stylelint]: https://github.com/stylelint/stylelint#readme -[stylua]: https://github.com/JohnnyMorganz/StyLua/tree/main -[sourcery]: https://sourcery.ai/ -[svgo]: https://trunk.io/linters/nodejs/svgo -[swiftformat]: https://github.com/nicklockwood/SwiftFormat#readme -[swiftlint]: https://github.com/realm/SwiftLint#readme -[taplo]: https://github.com/tamasfe/taplo#readme -[terrascan]: https://github.com/tenable/terrascan#readme -[terraform]: https://developer.hashicorp.com/terraform/cli/code -[tofu]: https://opentofu.org/ -[terragrunt]: https://terragrunt.gruntwork.io/docs/getting-started/quick-start/ -[tflint]: https://github.com/terraform-linters/tflint#readme -[tfsec]: https://github.com/aquasecurity/tfsec -[trivy]: https://trunk.io/linters/security/trivy -[trufflehog]: https://trunk.io/linters/security/trufflehog -[trunk-toolbox]: https://github.com/trunk-io/toolbox#readme -[txtpbfmt]: https://github.com/protocolbuffers/txtpbfmt#readme -[vale]: https://vale.sh/docs/ -[yamllint]: https://trunk.io/linters/yaml/yamllint -[yapf]: https://github.com/google/yapf#readme· -<br/>· -" - at Object.<anonymous> (/home/chris/Projects/plugins/tests/repo_tests/readme_inclusion.test.ts:32:39) - at Promise.then.completed (/home/chris/Projects/plugins/node_modules/jest-circus/build/utils.js:298:28) - at new Promise (<anonymous>) - at callAsyncCircusFn (/home/chris/Projects/plugins/node_modules/jest-circus/build/utils.js:231:10) - at _callCircusTest (/home/chris/Projects/plugins/node_modules/jest-circus/build/run.js:316:40) - at processTicksAndRejections (node:internal/process/task_queues:95:5) - at _runTest (/home/chris/Projects/plugins/node_modules/jest-circus/build/run.js:252:3) - at _runTestsForDescribeBlock (/home/chris/Projects/plugins/node_modules/jest-circus/build/run.js:126:9) - at _runTestsForDescribeBlock (/home/chris/Projects/plugins/node_modules/jest-circus/build/run.js:121:9) - at run (/home/chris/Projects/plugins/node_modules/jest-circus/build/run.js:71:3) - at runAndTransformResultsToJestFormat (/home/chris/Projects/plugins/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) - at jestAdapter (/home/chris/Projects/plugins/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) - at runTestInternal (/home/chris/Projects/plugins/node_modules/jest-runner/build/runTest.js:367:16) - at runTest (/home/chris/Projects/plugins/node_modules/jest-runner/build/runTest.js:444:34) - at Object.worker (/home/chris/Projects/plugins/node_modules/jest-runner/build/testWorker.js:106:12) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Error: expect(received).toMatchInlineSnapshot(snapshot) - -Snapshot name: `Global config health check validate auto-enabled linters 1` - -- Snapshot - 1 -+ Received + 1 - -@@ -13,11 +13,11 @@ - "golangci-lint", - "hadolint", - "haml-lint", - "isort", - "ktlint", -- "markdownlint", -+ "markdownlint-cli2", - "nixpkgs-fmt", - "osv-scanner", - "oxipng", - "prettier", - "ruff", - at Object.<anonymous> (/home/chris/Projects/plugins/tests/repo_tests/config_check.test.ts:138:32) - at processTicksAndRejections (node:internal/process/task_queues:95:5) - - - \ No newline at end of file From 1e72ea60b4ea0672d275ba05ee890806b5b95b92 Mon Sep 17 00:00:00 2001 From: Chris Clearwater Date: Thu, 26 Sep 2024 11:39:15 -0700 Subject: [PATCH 4/6] --- README.md | 106 +++++++++++++++++++++++++++--------------------------- 1 file changed, 53 insertions(+), 53 deletions(-) diff --git a/README.md b/README.md index 0ba047947..25f76be6c 100644 --- a/README.md +++ b/README.md @@ -38,59 +38,59 @@ Enable the following tools via: trunk check enable {linter} ``` -| Technology | Linters | -| --------------- | -------------------------------------------------------------------------------------------------------------------- | -| All | [codespell], [cspell], [gitleaks], [git-diff-check], [pre-commit-hooks], [trunk-toolbox], [vale] | -| Ansible | [ansible-lint] | -| Apex | [pmd] | -| Bash | [shellcheck], [shfmt] | -| Bazel, Starlark | [buildifier] | -| C, C++ | [clang-format], [clang-tidy], [include-what-you-use], [pragma-once] | -| C# | [dotnet-format] | -| CircleCI Config | [circleci] | -| Cloudformation | [cfnlint], [checkov] | -| CMake | [cmake-format] | -| CSS, SCSS | [stylelint], [prettier] | -| Cue | [cue-fmt] | -| Dart | [dart] | -| Docker | [hadolint], [checkov] | -| Dotenv | [dotenv-linter] | -| GitHub | [actionlint] | -| Go | [gofmt], [gofumpt], [goimports], [gokart], [golangci-lint], [golines], [semgrep] | -| GraphQL | [graphql-schema-linter], [prettier] | -| HAML | [haml-lint] | -| HTML Templates | [djlint] | -| Java | [google-java-format], [pmd], [semgrep] | -| Javascript | [biome], [deno], [eslint], [prettier], [rome], [semgrep] | -| JSON | [biome], [deno], [eslint], [prettier], [semgrep] | -| Kotlin | [detekt], [ktlint] | -| Kubernetes | [kube-linter] | -| Lua | [stylua] | -| Markdown | [deno], [markdownlint], [markdownlint-cli2], [markdown-link-check], [markdown-table-prettify], [prettier], [remark-lint] | -| Nix | [nixpkgs-fmt] | -| package.json | [sort-package-json] | -| Perl | [perlcritic], [perltidy] | -| PHP | [php-cs-fixer], [phpstan] | -| PNG | [oxipng] | -| PowerShell | [psscriptanalyzer] | -| Prisma | [prisma] | -| Protobuf | [buf] (breaking, lint, and format), [clang-format], [clang-tidy] | -| Python | [autopep8], [bandit], [black], [flake8], [isort], [mypy], [pylint], [pyright], [semgrep], [yapf], [ruff], [sourcery] | -| Rego | [regal], [opa] | -| Renovate | [renovate] | -| Ruby | [brakeman], [rubocop], [rufo], [semgrep], [standardrb] | -| Rust | [clippy], [rustfmt] | -| Scala | [scalafmt] | -| Security | [checkov], [dustilock], [nancy], [osv-scanner], [tfsec], [trivy], [trufflehog], [terrascan] | -| SQL | [sqlfluff], [sqlfmt], [sql-formatter], [squawk] | -| SVG | [svgo] | -| Swift | [stringslint], [swiftlint], [swiftformat] | -| Terraform | [terraform] (validate and fmt), [checkov], [tflint], [tfsec], [terrascan], [tofu] | -| Terragrunt | [terragrunt] | -| Textproto | [txtpbfmt] | -| TOML | [taplo] | -| Typescript | [deno], [eslint], [prettier], [rome], [semgrep] | -| YAML | [prettier], [semgrep], [yamllint] | +| Technology | Linters | +| --------------- | ------------------------------------------------------------------------------------------------------------------------ | +| All | [codespell], [cspell], [gitleaks], [git-diff-check], [pre-commit-hooks], [trunk-toolbox], [vale] | +| Ansible | [ansible-lint] | +| Apex | [pmd] | +| Bash | [shellcheck], [shfmt] | +| Bazel, Starlark | [buildifier] | +| C, C++ | [clang-format], [clang-tidy], [include-what-you-use], [pragma-once] | +| C# | [dotnet-format] | +| CircleCI Config | [circleci] | +| Cloudformation | [cfnlint], [checkov] | +| CMake | [cmake-format] | +| CSS, SCSS | [stylelint], [prettier] | +| Cue | [cue-fmt] | +| Dart | [dart] | +| Docker | [hadolint], [checkov] | +| Dotenv | [dotenv-linter] | +| GitHub | [actionlint] | +| Go | [gofmt], [gofumpt], [goimports], [gokart], [golangci-lint], [golines], [semgrep] | +| GraphQL | [graphql-schema-linter], [prettier] | +| HAML | [haml-lint] | +| HTML Templates | [djlint] | +| Java | [google-java-format], [pmd], [semgrep] | +| Javascript | [biome], [deno], [eslint], [prettier], [rome], [semgrep] | +| JSON | [biome], [deno], [eslint], [prettier], [semgrep] | +| Kotlin | [detekt], [ktlint] | +| Kubernetes | [kube-linter] | +| Lua | [stylua] | +| Markdown | [deno], [markdownlint], [markdownlint-cli2], [markdown-link-check], [markdown-table-prettify], [prettier], [remark-lint] | +| Nix | [nixpkgs-fmt] | +| package.json | [sort-package-json] | +| Perl | [perlcritic], [perltidy] | +| PHP | [php-cs-fixer], [phpstan] | +| PNG | [oxipng] | +| PowerShell | [psscriptanalyzer] | +| Prisma | [prisma] | +| Protobuf | [buf] (breaking, lint, and format), [clang-format], [clang-tidy] | +| Python | [autopep8], [bandit], [black], [flake8], [isort], [mypy], [pylint], [pyright], [semgrep], [yapf], [ruff], [sourcery] | +| Rego | [regal], [opa] | +| Renovate | [renovate] | +| Ruby | [brakeman], [rubocop], [rufo], [semgrep], [standardrb] | +| Rust | [clippy], [rustfmt] | +| Scala | [scalafmt] | +| Security | [checkov], [dustilock], [nancy], [osv-scanner], [tfsec], [trivy], [trufflehog], [terrascan] | +| SQL | [sqlfluff], [sqlfmt], [sql-formatter], [squawk] | +| SVG | [svgo] | +| Swift | [stringslint], [swiftlint], [swiftformat] | +| Terraform | [terraform] (validate and fmt), [checkov], [tflint], [tfsec], [terrascan], [tofu] | +| Terragrunt | [terragrunt] | +| Textproto | [txtpbfmt] | +| TOML | [taplo] | +| Typescript | [deno], [eslint], [prettier], [rome], [semgrep] | +| YAML | [prettier], [semgrep], [yamllint] | [actionlint]: https://trunk.io/linters/infra/actionlint [ansible-lint]: https://github.com/ansible/ansible-lint#readme From 9c8f1bc51d2e42e9b0fb77f5e6380c25df75eb0d Mon Sep 17 00:00:00 2001 From: Chris Clearwater Date: Thu, 26 Sep 2024 13:02:28 -0700 Subject: [PATCH 5/6] --- linters/markdownlint-cli2/.markdownlint.yaml | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 linters/markdownlint-cli2/.markdownlint.yaml diff --git a/linters/markdownlint-cli2/.markdownlint.yaml b/linters/markdownlint-cli2/.markdownlint.yaml deleted file mode 100644 index b40ee9d7a..000000000 --- a/linters/markdownlint-cli2/.markdownlint.yaml +++ /dev/null @@ -1,2 +0,0 @@ -# Prettier friendly markdownlint config (all formatting rules disabled) -extends: markdownlint/style/prettier From 6a76128b1e6abb64a096ed815331078824040555 Mon Sep 17 00:00:00 2001 From: Chris Clearwater Date: Thu, 26 Sep 2024 13:53:09 -0700 Subject: [PATCH 6/6] --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 25f76be6c..ad42f489a 100644 --- a/README.md +++ b/README.md @@ -137,6 +137,7 @@ trunk check enable {linter} [ktlint]: https://github.com/pinterest/ktlint#readme [kube-linter]: https://github.com/stackrox/kube-linter#readme [markdownlint]: https://github.com/DavidAnson/markdownlint#readme +[markdownlint-cli2]: https://github.com/DavidAnson/markdownlint-cli2#readme [markdown-table-prettify]: https://github.com/darkriszty/MarkdownTablePrettify-VSCodeExt#readme [markdown-link-check]: https://github.com/tcort/markdown-link-check#readme [mypy]: https://github.com/python/mypy#readme