Skip to content

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

Diff for: .prettierignore

+4-4
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

Diff for: Taskfile.yml

+3-3
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/[email protected]"
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/[email protected]
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"

Diff for: docs/CONTRIBUTING.md

+1-1
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.:

Diff for: docs/index.md

+1-1
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

Diff for: internal/check/check.go

-99
This file was deleted.

Diff for: internal/check/checkconfigurations/checkconfigurations_test.go

-97
This file was deleted.

0 commit comments

Comments
 (0)