diff --git a/.github/workflows/vale.yml b/.github/workflows/vale.yml index 55bf36f229f..5feaaa12a20 100644 --- a/.github/workflows/vale.yml +++ b/.github/workflows/vale.yml @@ -68,13 +68,13 @@ jobs: separator: ' ' version: '2.27.0' - - name: Post summary comment - if: ${{ steps.changed-files.outputs.any_changed == 'true' }} - run: | - COMMENT="❗️Oh no, some Vale linting found issues! Please check the **Files change** tab for detailed results and make the necessary updates." - COMMENT+=$'\n' - COMMENT+=$'\n\n' - COMMENT+="➡️ Link to detailed report: [Files changed](${{ github.event.pull_request.html_url }}/files)" - gh pr comment ${{ github.event.pull_request.number }} --body "$COMMENT" - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# - name: Post summary comment +# if: ${{ steps.changed-files.outputs.any_changed == 'true' }} +# run: | +# COMMENT="❗️Oh no, some Vale linting found issues! Please check the **Files change** tab for detailed results and make the necessary updates." +# COMMENT+=$'\n' +# COMMENT+=$'\n\n' +# COMMENT+="➡️ Link to detailed report: [Files changed](${{ github.event.pull_request.html_url }}/files)" +# gh pr comment ${{ github.event.pull_request.number }} --body "$COMMENT" +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/styles/custom/LatinAbbreviations.yml b/styles/custom/LatinAbbreviations.yml index f5962273440..44a3c9d6e8c 100644 --- a/styles/custom/LatinAbbreviations.yml +++ b/styles/custom/LatinAbbreviations.yml @@ -1,21 +1,15 @@ +# LatinAbbreviations.yml extends: substitution -message: "Avoid latin abbreviations: '%s'. Consider using '%s' instead." +message: "Avoid Latin abbreviations: '%s'. Consider using '%s' instead." level: warning -ignorecase: false swap: - - e.g.: for example - - eg: for example - - e.g: for example - - i.e.: for example - - i.e.: that is - - etc.: and so on - - N.B.: Note - -action: - name: replace - params: - - for example - - that is - - and so on - - Note + 'e.g.': 'for example' + 'e.g': 'for example' + 'eg': 'for example' + 'i.e.': 'that is' + 'i.e': 'that is' + 'etc.': 'and so on' + 'etc': 'and so on' + 'N.B.': 'Note' + 'NB': 'Note' diff --git a/styles/custom/Metrics.yml b/styles/custom/Metrics.yml deleted file mode 100644 index e319f78cac8..00000000000 --- a/styles/custom/Metrics.yml +++ /dev/null @@ -1,8 +0,0 @@ -extends: metric -message: "Try to keep the Flesch-Kincaid grade level (%s) below 8." -link: https://en.wikipedia.org/wiki/Flesch%E2%80%93Kincaid_readability_tests - -formula: | - (0.39 * (words / sentences)) + (11.8 * (syllables / words)) - 15.59 - -condition: "> 8.0"