Skip to content

Commit 02416e7

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 <accounts@perglass.com> * [skip changelog] Format PR and issues templates * [skip changelog] Format files after rebase * [skip changelog] Update .prettierrc and reformat everything Co-authored-by: per1234 <accounts@perglass.com>
1 parent 8449ac1 commit 02416e7

36 files changed

+1320
-999
lines changed

.dependabot/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ update_configs:
77
- match:
88
update_type: "security"
99
default_labels:
10-
- "component/dependencies"
10+
- "component/dependencies"

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ indent_size = 4
1515
indent_style = space
1616
indent_size = 4
1717

18-
[*.yml,*.tmpl]
18+
[*.yml,*.yaml,*.tmpl]
1919
indent_style = space
2020
indent_size = 2
2121

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,25 @@
11
---
22
name: 🐛 Bug Report
33
about: If something isn't working as expected 🤔.
4-
54
---
65

76
## Bug Report
87

98
### Current behavior
10-
<!-- Paste the full command you run -->
119

10+
<!-- Paste the full command you run -->
1211

1312
<!-- Add a clear and concise description of the behavior. -->
1413

15-
1614
### Expected behavior
17-
<!-- Add a clear and concise description of what you expected to happen. -->
1815

16+
<!-- Add a clear and concise description of what you expected to happen. -->
1917

2018
### Environment
2119

2220
- CLI version (output of `arduino-cli version`):
2321
- OS and platform:
2422

2523
### Additional context
24+
2625
<!-- (Optional) Add any other context about the problem here. -->

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,26 @@
11
**Please check if the PR fulfills these requirements**
2-
- [ ] The PR has no duplicates (please search among the [Pull Requests](https://github.com/arduino/arduino-cli/pulls) before creating one)
2+
3+
- [ ] The PR has no duplicates (please search among the [Pull Requests](https://github.com/arduino/arduino-cli/pulls)
4+
before creating one)
35
- [ ] The PR follows [our contributing guidelines](https://arduino.github.io/arduino-cli/CONTRIBUTING/#pull-requests)
46
- [ ] Tests for the changes have been added (for bug fixes / features)
57
- [ ] Docs have been added / updated (for bug fixes / features)
68

7-
89
* **What kind of change does this PR introduce?**
910
<!-- Bug fix, feature, docs update, ... -->
1011

11-
12-
* **What is the current behavior?**
12+
- **What is the current behavior?**
1313
<!-- You can also link to an open issue here -->
1414

15-
1615
* **What is the new behavior?**
1716
<!-- if this is a feature change -->
1817

19-
20-
21-
* **Does this PR introduce a breaking change?**
18+
- **Does this PR introduce a breaking change?**
2219
<!-- What changes might users need to make in their workflow or application due to this PR? -->
2320

24-
25-
2621
* **Other information**:
2722
<!-- Any additional information that could help the review process -->
2823

29-
3024
---
25+
3126
See [how to contribute](https://arduino.github.io/arduino-cli/CONTRIBUTING/)

.github/workflows/arduino-stats.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: arduino-stats
33
on:
44
schedule:
55
# run every day at 12:30:00
6-
- cron: '30 12 * * *'
6+
- cron: "30 12 * * *"
77

88
jobs:
99
push-stats:

.github/workflows/docs.yaml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,27 @@ on:
44
pull_request:
55
paths:
66
# existing docs
7-
- 'docs/**'
7+
- "docs/**"
88
# changes to the cli reference generator
9-
- 'docsgen/**'
9+
- "docsgen/**"
1010
# potential changes to commands documentation
11-
- 'cli/**'
11+
- "cli/**"
1212
# potential changes to gRPC documentation
13-
- 'rpc/**'
13+
- "rpc/**"
1414
# changes to the workflow itself
15-
- '.github/workflows/docs.yaml'
15+
- ".github/workflows/docs.yaml"
1616
push:
1717
branches:
1818
- master
1919
# release branches have names like 0.8.x, 0.9.x, ...
20-
- '[0-9]+.[0-9]+.x'
20+
- "[0-9]+.[0-9]+.x"
2121
# At this day, GitHub doesn't support YAML anchors, d'oh!
2222
paths:
23-
- 'docs/**'
24-
- 'docsgen/**'
25-
- 'cli/**'
26-
- 'rpc/**'
27-
- '.github/workflows/docs.yaml'
23+
- "docs/**"
24+
- "docsgen/**"
25+
- "cli/**"
26+
- "rpc/**"
27+
- ".github/workflows/docs.yaml"
2828

2929
jobs:
3030
build:
@@ -42,7 +42,7 @@ jobs:
4242
- name: Setup Go
4343
uses: actions/setup-go@v2-beta
4444
with:
45-
go-version: '1.14'
45+
go-version: "1.14"
4646

4747
- name: Install Go dependencies
4848
run: |
@@ -57,8 +57,8 @@ jobs:
5757
- name: Setup Python
5858
uses: actions/setup-python@v1
5959
with:
60-
python-version: '3.6'
61-
architecture: 'x64'
60+
python-version: "3.6"
61+
architecture: "x64"
6262

6363
- name: Cache dependencies
6464
uses: actions/cache@v1

.github/workflows/github-stats.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: github-stats
33
on:
44
schedule:
55
# run every 30 minutes
6-
- cron: '*/30 * * * *'
6+
- cron: "*/30 * * * *"
77

88
jobs:
99
push-stats:

.github/workflows/i18n-nightly-push.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: i18n-nightly-push
33
on:
44
schedule:
55
# run every day at 1AM
6-
- cron: '0 1 * * *'
6+
- cron: "0 1 * * *"
77

88
jobs:
99
push-to-transifex:
@@ -15,7 +15,7 @@ jobs:
1515
- name: Install Go
1616
uses: actions/setup-go@v2
1717
with:
18-
go-version: '1.14'
18+
go-version: "1.14"
1919

2020
- name: Install Taskfile
2121
uses: Arduino/actions/setup-taskfile@master
@@ -27,4 +27,4 @@ jobs:
2727
env:
2828
TRANSIFEX_PROJECT: ${{ secrets.TRANSIFEX_PROJECT }}
2929
TRANSIFEX_RESOURCE: ${{ secrets.TRANSIFEX_RESOURCE }}
30-
TRANSIFEX_API_KEY: ${{ secrets.TRANSIFEX_API_KEY }}
30+
TRANSIFEX_API_KEY: ${{ secrets.TRANSIFEX_API_KEY }}

.github/workflows/i18n-weekly-pull.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: i18n-weekly-pull
33
on:
44
schedule:
55
# run every monday at 2AM
6-
- cron: '0 2 * * 1'
6+
- cron: "0 2 * * 1"
77

88
jobs:
99
pull-from-transifex:
@@ -15,7 +15,7 @@ jobs:
1515
- name: Install Go
1616
uses: actions/setup-go@v2
1717
with:
18-
go-version: '1.14'
18+
go-version: "1.14"
1919

2020
- name: Install Go deps
2121
run: |
@@ -38,4 +38,4 @@ jobs:
3838
with:
3939
commit-message: Updated translation files
4040
title: Updated translation files
41-
branch: i18n/translations-update
41+
branch: i18n/translations-update

.github/workflows/nightly.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ name: nightly
33
on:
44
schedule:
55
# run every day at 1AM
6-
- cron: '0 1 * * *'
6+
- cron: "0 1 * * *"
77

88
jobs:
9-
109
create-nightly-artifacts:
1110
runs-on: ubuntu-latest
1211

@@ -94,9 +93,9 @@ jobs:
9493
- name: upload
9594
uses: docker://plugins/s3
9695
env:
97-
PLUGIN_SOURCE: 'dist/*'
98-
PLUGIN_TARGET: '/arduino-cli/nightly'
99-
PLUGIN_STRIP_PREFIX: 'dist/'
96+
PLUGIN_SOURCE: "dist/*"
97+
PLUGIN_TARGET: "/arduino-cli/nightly"
98+
PLUGIN_STRIP_PREFIX: "dist/"
10099
PLUGIN_BUCKET: ${{ secrets.DOWNLOADS_BUCKET }}
101100
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
102101
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

0 commit comments

Comments
 (0)