Skip to content
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

Make linting opt in with --lint #799

Merged
merged 9 commits into from
Oct 27, 2022
Merged

Make linting opt in with --lint #799

merged 9 commits into from
Oct 27, 2022

Conversation

ascjones
Copy link
Collaborator

Since the release of ink 4.0, lints are optional and currently there are no lints which are run from the ink! repo.

This PR replaces --skip-linting with the inverse --lint to make linting opt-in by default instead of opt out. That way if/when we do add lints to ink there will be no changes required here.

@@ -250,7 +252,7 @@ impl CheckCommand {
unstable_flags,
optimization_passes: OptimizationPasses::Zero,
keep_debug_symbols: false,
skip_linting: false,
lint: false,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check command now defaults to not running lints.

Copy link
Collaborator

@cmichi cmichi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@ascjones ascjones merged commit e2e804b into master Oct 27, 2022
@ascjones ascjones deleted the aj/linting-opt-in branch October 27, 2022 10:50
@ascjones ascjones mentioned this pull request Oct 27, 2022
@ascjones ascjones mentioned this pull request Feb 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants