Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[skip changelog] Introduce linting and formatting for docs and config…
… files (#836) * [skip changelog] Add linting/formatting tasks and CI checks for docs and config files * [skip changelog] Format all docs and config files * [skip changelog] Update contributing documentation with formatting instructions * [skip changelog] Fix some Prettier configuration issues * [skip changelog] Format all config files * [skip changelog] Fix documentation indentation issue * [skip changelog] Removed files from .prettierignore * [skip changelog] Update docs/package_index_json-specification.md Co-authored-by: per1234 <[email protected]> * [skip changelog] Format PR and issues templates * [skip changelog] Format files after rebase * [skip changelog] Update .prettierrc and reformat everything Co-authored-by: per1234 <[email protected]>
- Loading branch information
Showing
with
1,320 additions
and 999 deletions.
- +1 −1 .dependabot/config.yml
- +1 −1 .editorconfig
- +3 −4 .github/ISSUE_TEMPLATE/bug_report.md
- +6 −11 .github/PULL_REQUEST_TEMPLATE.md
- +1 −1 .github/workflows/arduino-stats.yaml
- +14 −14 .github/workflows/docs.yaml
- +1 −1 .github/workflows/github-stats.yaml
- +3 −3 .github/workflows/i18n-nightly-push.yaml
- +3 −3 .github/workflows/i18n-weekly-pull.yaml
- +4 −5 .github/workflows/nightly.yaml
- +4 −5 .github/workflows/release.yaml
- +2 −2 .github/workflows/stale.yaml
- +1 −1 .github/workflows/test.yaml
- +33 −0 .github/workflows/verify-formatting.yaml
- +6 −12 .goreleaser.yml
- +5 −0 .prettierignore
- +12 −0 .prettierrc
- +14 −17 README.md
- +24 −1 Taskfile.yml
- +170 −147 docs/CONTRIBUTING.md
- +7 −9 docs/FAQ.md
- +29 −16 docs/command-line-completion.md
- +54 −74 docs/configuration.md
- +43 −62 docs/getting-started.md
- +8 −13 docs/index.md
- +58 −67 docs/installation.md
- +64 −89 docs/integration-options.md
- +152 −69 docs/library-specification.md
- +104 −84 docs/package_index_json-specification.md
- +288 −164 docs/platform-specification.md
- +90 −43 docs/sketch-build-process.md
- +56 −27 docs/sketch-specification.md
- +7 −6 i18n/README.md
- +45 −42 mkdocs.yml
- +1 −0 requirements_docs.txt
- +6 −5 test/README.md
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -7,4 +7,4 @@ update_configs: | ||
- match: | ||
update_type: "security" | ||
default_labels: | ||
- "component/dependencies" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -15,7 +15,7 @@ indent_size = 4 | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[*.yml,*.yaml,*.tmpl] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -1,26 +1,25 @@ | ||
--- | ||
name: 🐛 Bug Report | ||
about: If something isn't working as expected 🤔. | ||
--- | ||
|
||
## Bug Report | ||
|
||
### Current behavior | ||
|
||
<!-- Paste the full command you run --> | ||
|
||
<!-- Add a clear and concise description of the behavior. --> | ||
|
||
### Expected behavior | ||
|
||
<!-- Add a clear and concise description of what you expected to happen. --> | ||
|
||
### Environment | ||
|
||
- CLI version (output of `arduino-cli version`): | ||
- OS and platform: | ||
|
||
### Additional context | ||
|
||
<!-- (Optional) Add any other context about the problem here. --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -1,31 +1,26 @@ | ||
**Please check if the PR fulfills these requirements** | ||
|
||
- [ ] The PR has no duplicates (please search among the [Pull Requests](https://github.com/arduino/arduino-cli/pulls) | ||
before creating one) | ||
- [ ] The PR follows [our contributing guidelines](https://arduino.github.io/arduino-cli/CONTRIBUTING/#pull-requests) | ||
- [ ] Tests for the changes have been added (for bug fixes / features) | ||
- [ ] Docs have been added / updated (for bug fixes / features) | ||
|
||
* **What kind of change does this PR introduce?** | ||
<!-- Bug fix, feature, docs update, ... --> | ||
|
||
- **What is the current behavior?** | ||
<!-- You can also link to an open issue here --> | ||
|
||
* **What is the new behavior?** | ||
<!-- if this is a feature change --> | ||
|
||
- **Does this PR introduce a breaking change?** | ||
<!-- What changes might users need to make in their workflow or application due to this PR? --> | ||
|
||
* **Other information**: | ||
<!-- Any additional information that could help the review process --> | ||
|
||
--- | ||
|
||
See [how to contribute](https://arduino.github.io/arduino-cli/CONTRIBUTING/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -3,7 +3,7 @@ name: arduino-stats | ||
on: | ||
schedule: | ||
# run every day at 12:30:00 | ||
- cron: "30 12 * * *" | ||
|
||
jobs: | ||
push-stats: | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -3,7 +3,7 @@ name: github-stats | ||
on: | ||
schedule: | ||
# run every 30 minutes | ||
- cron: "*/30 * * * *" | ||
|
||
jobs: | ||
push-stats: | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -3,9 +3,9 @@ name: stale-bot | ||
on: | ||
schedule: | ||
# run every day at midnight | ||
- cron: "0 0 * * *" | ||
issue_comment: | ||
types: ["created"] | ||
|
||
jobs: | ||
stale-bot: | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -30,7 +30,7 @@ jobs: | ||
- name: Install Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: "1.14" | ||
|
||
- name: Install Go deps | ||
# Since 10/23/2019 pwsh is the default shell | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,33 @@ | ||
name: "Verify files formatting" | ||
|
||
on: | ||
push: | ||
paths: | ||
- "**/*.md" | ||
- "**/*.yml" | ||
- "**/*.yaml" | ||
- ".prettierrc" | ||
- ".prettierignore" | ||
pull_request: | ||
paths: | ||
- "**/*.md" | ||
- "**/*.yml" | ||
- "**/*.yaml" | ||
- ".prettierrc" | ||
- ".prettierignore" | ||
|
||
jobs: | ||
verify-formatting: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@master | ||
|
||
- name: Install Taskfile | ||
uses: Arduino/actions/setup-taskfile@master | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Verify formatting of all files | ||
run: task docs:check config:check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,5 @@ | ||
# IDE files | ||
.idea/ | ||
.vscode/ | ||
.vs/ | ||
.ionide/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,12 @@ | ||
{ | ||
"semi": false, | ||
"printWidth": 120, | ||
"overrides": [ | ||
{ | ||
"files": "*.md", | ||
"options": { | ||
"proseWrap": "always" | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.