Skip to content

Use --library-manager=false as default #119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/configuration/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var defaultRuleModes = map[projecttype.Type]map[rulemode.Type]bool{
rulemode.Strict: false,
rulemode.Specification: true,
rulemode.Permissive: false,
rulemode.LibraryManagerSubmission: true,
rulemode.LibraryManagerSubmission: false,
rulemode.LibraryManagerIndexed: false,
rulemode.Official: false,
},
Expand Down
11 changes: 8 additions & 3 deletions test/test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,18 @@ def test_version(run_command):
def test_arduino_lint_official(run_command):
project_path = test_data_path.joinpath("ARDUINO_LINT_OFFICIAL")

result = run_command(cmd=[project_path])
# Test default to ARDUINO_LINT_OFFICIAL="false"
result = run_command(cmd=["--library-manager", "submit", project_path])
assert not result.ok

result = run_command(cmd=[project_path], custom_env={"ARDUINO_LINT_OFFICIAL": "true"})
result = run_command(
cmd=["--library-manager", "submit", project_path], custom_env={"ARDUINO_LINT_OFFICIAL": "true"}
)
assert result.ok

result = run_command(cmd=[project_path], custom_env={"ARDUINO_LINT_OFFICIAL": "false"})
result = run_command(
cmd=["--library-manager", "submit", project_path], custom_env={"ARDUINO_LINT_OFFICIAL": "false"}
)
assert not result.ok

result = run_command(cmd=[project_path], custom_env={"ARDUINO_LINT_OFFICIAL": "foo"})
Expand Down