Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d521897

Browse files
committedDec 20, 2020
Make all packages internal
The Go packages of this project were written solely for the use within the project. Making them internal avoids them unintentionally becoming part of the public API, resulting in a greatly increased potential maintenance and support burden and limitations on further development work. It would be interesting to identify the components of the internal API that might be useful to others and expose them intentionally as they reach a state of relative stability. However, for now the public API should be considered only the command line interface and the JSON report structure.
1 parent 54e1502 commit d521897

File tree

321 files changed

+165
-165
lines changed

Some content is hidden

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

321 files changed

+165
-165
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-
/check/checkdata/schema/testdata/input/invalid-schema.json
9-
/check/checkdata/testdata/packageindexes/invalid-JSON/package_foo_index.json
10-
/check/checkfunctions/testdata/packageindexes/invalid-JSON/package_foo_index.json
11-
/check/checkfunctions/testdata/sketches/InvalidJSONMetadataFile/sketch.json
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

‎Taskfile.yml

Lines changed: 4 additions & 4 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 "./check/checkdata/schema/schemadata/bindata.go" --pkg schemadata --prefix "./etc/schemas/" "./etc/schemas/"
21-
- go-bindata -nocompress -nometadata -o "./check/checkdata/schema/testdata/bindata.go" --pkg testdata --prefix "./check/checkdata/schema/testdata/input/" "./check/checkdata/schema/testdata/input/"
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/"
2222
- go get -u golang.org/x/tools/cmd/stringer@v0.0.0-20201211192254-72fbef54948b
2323
- go generate ./...
2424
- task: go:format
@@ -255,7 +255,7 @@ vars:
255255
TIMESTAMP:
256256
sh: echo "$(date -u +"%Y-%m-%dT%H:%M:%SZ")"
257257
LDFLAGS: >
258-
-ldflags '-X github.com/arduino/arduino-lint/configuration.commit={{.COMMIT}} -X github.com/arduino/arduino-lint/configuration.buildTimestamp={{.TIMESTAMP}}'
258+
-ldflags '-X github.com/arduino/arduino-lint/internal/configuration.commit={{.COMMIT}} -X github.com/arduino/arduino-lint/internal/configuration.buildTimestamp={{.TIMESTAMP}}'
259259
GOFLAGS: "-timeout 10m -v -coverpkg=./... -covermode=atomic"
260260

261261
GOLINTFLAGS: "-min_confidence 0.8 -set_exit_status"
@@ -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,./check/checkfunctions/testdata/libraries/MisspelledSentenceParagraphValue/library.properties,./site"'
271+
CODESPELL_SKIP_OPTION: '--skip "./.git,go.mod,go.sum,./arduino-lint,./arduino-lint.exe,./internal/check/checkfunctions/testdata/libraries/MisspelledSentenceParagraphValue/library.properties,./site"'
272272
CODESPELL_IGNORE_WORDS_OPTION: "--ignore-words ./etc/codespell-ignore-words-list.txt"

0 commit comments

Comments
 (0)
Please sign in to comment.