Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 439c93d

Browse files
authored
Merge pull request #125 from arduino/per1234/check-to-rule
Use "rule" term instead of "check"
2 parents 20180bd + 24cc895 commit 439c93d

File tree

289 files changed

+3750
-3750
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

289 files changed

+3750
-3750
lines changed

‎.prettierignore‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
.ionide/
66

77
# Test files
8-
/internal/check/checkdata/schema/testdata/input/invalid-schema.json
9-
/internal/check/checkdata/testdata/packageindexes/invalid-JSON/package_foo_index.json
10-
/internal/check/checkfunctions/testdata/packageindexes/invalid-JSON/package_foo_index.json
11-
/internal/check/checkfunctions/testdata/sketches/InvalidJSONMetadataFile/sketch.json
8+
/internal/rule/schema/testdata/input/invalid-schema.json
9+
/internal/project/projectdata/testdata/packageindexes/invalid-JSON/package_foo_index.json
10+
/internal/rule/rulefunction/testdata/packageindexes/invalid-JSON/package_foo_index.json
11+
/internal/rule/rulefunction/testdata/sketches/InvalidJSONMetadataFile/sketch.json

‎Taskfile.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ tasks:
1717
desc: Generate Go code
1818
cmds:
1919
- go get -u "github.com/go-bindata/go-bindata/...@v3.1.1"
20-
- go-bindata -nocompress -nometadata -o "./internal/check/checkdata/schema/schemadata/bindata.go" --pkg schemadata --prefix "./etc/schemas/" "./etc/schemas/"
21-
- go-bindata -nocompress -nometadata -o "./internal/check/checkdata/schema/testdata/bindata.go" --pkg testdata --prefix "./internal/check/checkdata/schema/testdata/input/" "./internal/check/checkdata/schema/testdata/input/"
20+
- go-bindata -nocompress -nometadata -o "./internal/rule/schema/schemadata/bindata.go" --pkg schemadata --prefix "./etc/schemas/" "./etc/schemas/"
21+
- go-bindata -nocompress -nometadata -o "./internal/rule/schema/testdata/bindata.go" --pkg testdata --prefix "./internal/rule/schema/testdata/input/" "./internal/rule/schema/testdata/input/"
2222
- go get -u golang.org/x/tools/cmd/stringer@v0.0.0-20201211192254-72fbef54948b
2323
- go generate ./...
2424
- task: go:format
@@ -268,5 +268,5 @@ vars:
268268

269269
WORKFLOW_SCHEMA_PATH: "$(mktemp -t gha-workflow-schema-XXXXXXXXXX.json)"
270270

271-
CODESPELL_SKIP_OPTION: '--skip "./.git,go.mod,go.sum,./arduino-lint,./arduino-lint.exe,./internal/check/checkfunctions/testdata/libraries/MisspelledSentenceParagraphValue/library.properties,./site"'
271+
CODESPELL_SKIP_OPTION: '--skip "./.git,go.mod,go.sum,./arduino-lint,./arduino-lint.exe,./internal/rule/rulefunction/testdata/libraries/MisspelledSentenceParagraphValue/library.properties,./site"'
272272
CODESPELL_IGNORE_WORDS_OPTION: "--ignore-words ./etc/codespell-ignore-words-list.txt"

‎docs/CONTRIBUTING.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ By default, all tests for all arduino-lint's Go packages are run. To run unit te
124124
packages, you can set the `TARGETS` environment variable, e.g.:
125125

126126
```
127-
TARGETS=./internal/check task go:test-unit
127+
TARGETS=./internal/rule task go:test-unit
128128
```
129129

130130
Alternatively, to run only some specific test(s), you can specify a regex to match against the test function name, e.g.:

‎docs/index.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
**arduino-lint** is a command line tool that checks for common problems with [Arduino](https://www.arduino.cc/)
22
projects.
33

4-
Its focus is on the structure, metadata, and configuration of Arduino projects, rather than the code. Checks cover
4+
Its focus is on the structure, metadata, and configuration of Arduino projects, rather than the code. Rules cover
55
[specification](https://arduino.github.io/arduino-cli/latest/library-specification) compliance, Library Manager
66
submission [requirements](https://github.com/arduino/Arduino/wiki/Library-Manager-FAQ), and best practices.
77

‎internal/check/check.go‎

Lines changed: 0 additions & 99 deletions
This file was deleted.

‎internal/check/checkconfigurations/checkconfigurations_test.go‎

Lines changed: 0 additions & 97 deletions
This file was deleted.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /