codespell.yaml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. name: Codespell
  2. on:
  3. push:
  4. tags:
  5. - v*
  6. branches:
  7. - master
  8. - release-*
  9. pull_request:
  10. branches:
  11. - master
  12. - release-*
  13. # cancel the in-progress workflow when PR is refreshed.
  14. concurrency:
  15. group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
  16. cancel-in-progress: true
  17. permissions:
  18. contents: read
  19. jobs:
  20. codespell:
  21. name: codespell
  22. runs-on: ubuntu-20.04
  23. steps:
  24. - uses: actions/checkout@v4
  25. with:
  26. fetch-depth: 0
  27. - name: codespell
  28. uses: codespell-project/actions-codespell@master
  29. with:
  30. # LICENSE: skip file because codespell wants to flag complies, which we may want to flag
  31. # in other places, so ignore the file itself assuming it is correct
  32. # crds.yaml, resources.yaml: CRD files are fully generated from content we control (should
  33. # be flagged elsewhere) and content we don't control (can't fix easily), so ignore
  34. skip: .git,*.png,*.jpg,*.svg,*.sum,./LICENSE,./deploy/examples/crds.yaml,./deploy/charts/rook-ceph/templates/resources.yaml
  35. # aks: Amazon Kubernetes Service
  36. # keyserver: flag to apt-key
  37. # atleast: codespell wants to flag any 'AtLeast' method
  38. # ser, ist: MIME types in pkg/operator/ceph/object/mime.go
  39. # ba: daemon ID test in pkg/operator/k8sutil/name_test.go
  40. # iam: Identity and Access Management, e.g., AWS IAM
  41. # te: udev persistent naming test in pkg/daemon/ceph/osd/daemon_test.go
  42. # parm: modinfo parameter
  43. # assigment: inherited from K8s TopologySpreadConstraints dependency
  44. # ro, RO: means read-only
  45. ignore_words_list: aks,keyserver,atleast,ser,ist,ba,iam,te,parm,assigment,ro,RO
  46. check_filenames: true
  47. check_hidden: true