-
Notifications
You must be signed in to change notification settings - Fork 451
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Move linting into ink repo #1361
Conversation
🦑 📈 ink! Example Contracts ‒ Changes Report 📉 🦑
These are the results when building the
Link to the run | Last update: Tue Aug 23 21:25:12 CEST 2022 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ❤️
Co-authored-by: Alexander Samusev <41779041+alvicsam@users.noreply.github.com>
Co-authored-by: Alexander Samusev <41779041+alvicsam@users.noreply.github.com>
Codecov Report
@@ Coverage Diff @@
## master #1361 +/- ##
=======================================
Coverage 71.96% 71.96%
=======================================
Files 177 177
Lines 5928 5928
=======================================
Hits 4266 4266
Misses 1662 1662 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
[package.metadata.rust-analyzer] | ||
rustc_private = true | ||
|
||
[workspace] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. The driver does not build without that. All the examples in the dylint repo have this, too.
This crate uses [`dylint`](https://github.com/trailofbits/dylint) to define custom | ||
linting rules for [ink!](https://github.com/paritytech/ink); | ||
|
||
It is not part of the workspace because it needs a custom linker to be built. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was about to ask if we could include this in the ink! workspace, haha
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com>
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com>
* Move linting into ink repo * Fix CI * Apply suggestions from code review Co-authored-by: Alexander Samusev <41779041+alvicsam@users.noreply.github.com> * Update .gitlab-ci.yml Co-authored-by: Alexander Samusev <41779041+alvicsam@users.noreply.github.com> * Update linting/Cargo.toml Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com> * Update linting/Cargo.toml Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com> Co-authored-by: Alexander Samusev <41779041+alvicsam@users.noreply.github.com> Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com>
* Move linting into ink repo * Fix CI * Apply suggestions from code review Co-authored-by: Alexander Samusev <41779041+alvicsam@users.noreply.github.com> * Update .gitlab-ci.yml Co-authored-by: Alexander Samusev <41779041+alvicsam@users.noreply.github.com> * Update linting/Cargo.toml Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com> * Update linting/Cargo.toml Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com> Co-authored-by: Alexander Samusev <41779041+alvicsam@users.noreply.github.com> Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com>
In preparation for the changes to
cargo contract
which will make the lints being build as part of the contract build we move it here. The lints are tightly coupled to the ink! code. There is no reason why they should exist in thecargo contract
repo.