From a60be268f575f52c277f4902dc718cb269e6784a Mon Sep 17 00:00:00 2001 From: meili-bot <74670311+meili-bot@users.noreply.github.com> Date: Wed, 14 Jun 2023 11:12:59 -0300 Subject: [PATCH] Create .yamllint.yml --- .code-samples.meilisearch.yaml | 6 +++--- .github/dependabot.yml | 36 +++++++++++++++++----------------- .github/workflows/tests.yml | 9 +++++++++ .yamllint.yml | 9 +++++++++ CONTRIBUTING.md | 4 ++++ 5 files changed, 43 insertions(+), 21 deletions(-) create mode 100644 .yamllint.yml diff --git a/.code-samples.meilisearch.yaml b/.code-samples.meilisearch.yaml index 9b7ce2fa..8f5248ac 100644 --- a/.code-samples.meilisearch.yaml +++ b/.code-samples.meilisearch.yaml @@ -898,7 +898,7 @@ typo_tolerance_guide_3: |- disable_on_words: Some(vec!["shrek".to_string()]), min_word_size_for_typos: Some(min_word_size_for_typos), }; - + let task: TaskInfo = client .index("movies") .set_typo_tolerance(&typo_tolerance) @@ -1337,7 +1337,7 @@ faceted_search_2: |- .build(); let search_query_3 = SearchQuery::new(&books) .with_facets(Selectors::Some(&["genres"])) - .with_filter("language = English OR language = French") + .with_filter("language = English OR language = French") .build(); let books_response = client @@ -1632,7 +1632,7 @@ multi_search_1: |- .build(); let search_query_2 = SearchQuery::new(&movie) .with_query("nemo") - .with_limit(5) + .with_limit(5) .build(); let movie_response = client diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 36ef5657..caa85718 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,21 +1,21 @@ version: 2 updates: -- package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "monthly" - labels: - - 'skip-changelog' - - 'dependencies' - rebase-strategy: disabled + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "monthly" + labels: + - 'skip-changelog' + - 'dependencies' + rebase-strategy: disabled -- package-ecosystem: cargo - directory: "/" - schedule: - interval: daily - time: "04:00" - open-pull-requests-limit: 10 - labels: - - skip-changelog - - dependencies - rebase-strategy: disabled + - package-ecosystem: cargo + directory: "/" + schedule: + interval: daily + time: "04:00" + open-pull-requests-limit: 10 + labels: + - skip-changelog + - dependencies + rebase-strategy: disabled diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d673ad08..9ed510e5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -69,3 +69,12 @@ jobs: run: | rustup target add wasm32-unknown-unknown cargo check -p web_app --target wasm32-unknown-unknown + yaml-lint: + name: Yaml linting check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Yaml lint check + uses: ibiqlik/action-yamllint@v3 + with: + config_file: .yamllint.yml diff --git a/.yamllint.yml b/.yamllint.yml new file mode 100644 index 00000000..0292b934 --- /dev/null +++ b/.yamllint.yml @@ -0,0 +1,9 @@ +extends: default +ignore: | + node_modules +rules: + comments-indentation: disable + line-length: disable + document-start: disable + brackets: disable + truthy: disable diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e179d7fb..84438ccc 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -124,6 +124,10 @@ sh scripts/check-readme.sh --diff If it's not, the CI will fail on your PR. +### Yaml lint + +To check if your `yaml` files are correctly formatted, you need to [install yamllint](https://yamllint.readthedocs.io/en/stable/quickstart.html#installing-yamllint) and then run `yamllint .` + ## Git Guidelines ### Git Branches