-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature: yaml lint #1068
feature: yaml lint #1068
Conversation
sheeeng
commented
Sep 23, 2021
- Use YAML Lint in GitHub Actions.
- Fix YAML Lint issues.
Codecov Report
@@ Coverage Diff @@
## master #1068 +/- ##
=======================================
Coverage 78.16% 78.16%
=======================================
Files 6 6
Lines 403 403
=======================================
Hits 315 315
Misses 58 58
Partials 30 30 Continue to review full report at Codecov.
|
e5a8d6c
to
28330ca
Compare
Fixed once again with the correct upstream master branch. $ git remote add upstream [email protected]:jhaals/yopass.git
$ git remote --verbose show upstream
* remote upstream
Fetch URL: [email protected]:jhaals/yopass.git
Push URL: [email protected]:jhaals/yopass.git
$ git fetch --all --prune && git pull --rebase --prune upstream master |
@@ -47,7 +54,7 @@ jobs: | |||
- uses: cypress-io/github-action@v2 | |||
with: | |||
start: yarn start | |||
wait-on: 'http://localhost:3000' | |||
wait-on: "http://localhost:3000" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are there a specific reason to why double quotes are favoured?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is true that YAML Specification does not indicate whether double quotes or single quotes are preferred. You can decide on which one this project should use.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jhaals, please let me know if double quotes or single quotes is the one that you preferred in this project. I will reflect that in later changes. Have a nice weekend.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the quick turnaround @sheeeng!
I'd say let's go with single quotes and then 🚢 this PR :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jhaals, I have quickly checked that both widely used redhat.vscode-yaml (6,629,666 installs) and esbenp.prettier-vscode (15,769,891 installs) VSCode extensions have double quotes for saving YAML files automatically. These two VSCode extensions comes handy while working with YAML files. Thus, the double quotes changes were included in this PR. Sorry for the late information.
Please confirm that you still prefer single quotes and I will modify the lint rules accordingly.
"[yaml]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"_commented_editor.defaultFormatter": "redhat.vscode-yaml"
},
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the additional context, I don't have strong preferences in this case so let's go with this
a05ac3d
to
bbd069a
Compare