diff --git a/.automation/test/repository_file/bad/.ls-lint.yml b/.automation/test/repository_file/bad/.ls-lint.yml new file mode 100644 index 00000000000..e69de29bb2d diff --git a/.automation/test/repository_file/good/.ls-lint.yml b/.automation/test/repository_file/good/.ls-lint.yml new file mode 100644 index 00000000000..e69de29bb2d diff --git a/megalinter/descriptors/file.megalinter-descriptor.yml b/megalinter/descriptors/file.megalinter-descriptor.yml deleted file mode 100644 index df547fcf558..00000000000 --- a/megalinter/descriptors/file.megalinter-descriptor.yml +++ /dev/null @@ -1,19 +0,0 @@ -descriptor_id: FILE -descriptor_type: format -descriptor_flavors: - - all_flavors - - all -linters: - # LS-LINT - - linter_name: ls-lint - linter_url: https://ls-lint.org/ - linter_repo: https://github.com/loeffel-io/ls-lint - linter_rules_url: https://ls-lint.org/2.2/configuration/the-rules.html - linter_banner_image_url: https://raw.githubusercontent.com/loeffel-io/ls-lint/master/assets/logo/ls-lint.png - config_file_name: ".ls-lint.yml" - examples: - - "ls-lint" - - "ls-lint --workdir src" - install: - npm: - - "@ls-lint/ls-lint" diff --git a/megalinter/descriptors/repository.megalinter-descriptor.yml b/megalinter/descriptors/repository.megalinter-descriptor.yml index 5b7c26e84cb..cd22d7dac99 100644 --- a/megalinter/descriptors/repository.megalinter-descriptor.yml +++ b/megalinter/descriptors/repository.megalinter-descriptor.yml @@ -339,6 +339,23 @@ linters: - COPY --from=kics /app/bin/assets /usr/bin/assets test_folder: repository_kics + # LS-LINT + - linter_name: ls-lint + linter_url: https://ls-lint.org/ + linter_repo: https://github.com/loeffel-io/ls-lint + linter_rules_url: https://ls-lint.org/2.2/configuration/the-rules.html + linter_banner_image_url: https://raw.githubusercontent.com/loeffel-io/ls-lint/master/assets/logo/ls-lint.png + active_only_if_file_found: + - ".ls-lint.yml" + config_file_name: ".ls-lint.yml" + examples: + - "ls-lint" + - "ls-lint --workdir src" + test_folder: repository_file + install: + npm: + - "@ls-lint/ls-lint" + # SECRETLINT - class: SecretLintLinter linter_name: secretlint