antfu / case-police

🚨 Make the case correct, PLEASE!
MIT License
1.15k stars 80 forks source link

False positive for curl command in sh file #136

Closed jasikpark closed 2 years ago

jasikpark commented 2 years ago

Describe the bug

RESPONSE=$(curl -sSL -H "${AUTH_HEADER}" -H "${HEADER}" --user "${GITHUB_ACTOR}" -X GET --data "${DATA}" ${PULLS_URL}) case-police tells me that sSL should be SSL though this is a curl shorthand rather than a word

Reproduction

https://stackblitz.com/edit/vitejs-vite-5bjczq?file=run.sh

System Info

System:
    OS: Linux 5.15 Ubuntu 20.04.4 LTS (Focal Fossa)
    CPU: (16) x64 AMD EPYC 7B13
    Memory: 19.95 GB / 62.81 GB
    Container: Yes
    Shell: 5.0.17 - /bin/bash
  Binaries:
    Node: 16.16.0 - ~/.nvm/versions/node/v16.16.0/bin/node
    Yarn: 1.22.17 - ~/.nvm/versions/node/v16.16.0/bin/yarn
    npm: 8.11.0 - ~/.nvm/versions/node/v16.16.0/bin/npm

Used Package Manager

yarn

Validations

jasikpark commented 2 years ago

I suppose that's one way to fix it :p