You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since use-ink/cargo-contract#1076 we require contracts to be annotated with a no_mainouter attribute. We added a feature in cargo_contract to check for the error use-ink/cargo-contract#1113, but it involves some brittle code to intercept and redirect the stderr output of cargo-contract in order to catch the specific error.
If it is possible to check for attributes, it would be preferable to do this as a lint.
The text was updated successfully, but these errors were encountered:
* feat(linter): Add `no_main` lint
Closes#1976
* feat(lint): Run lint only for onchain compilation targets
Otherwise contracts could be built for e2e tests with the `std` feature.
* chore(lint): Linting message
* chore(lint): Remove the `fail` test
All the tests are built locally for the host architecture, therefore the
lint is not applied to them.
* chore: Add CHANGELOG entry
* fix: Remove fail test from Cargo.toml
* fix(lint): Comments, lint message
* fix(lint): Run `no_main` on e2e tests
* fix: fmt
* fix: bless tests after fmt fix
Since use-ink/cargo-contract#1076 we require contracts to be annotated with a
no_main
outer attribute. We added a feature incargo_contract
to check for the error use-ink/cargo-contract#1113, but it involves some brittle code to intercept and redirect thestderr
output ofcargo-contract
in order to catch the specific error.If it is possible to check for attributes, it would be preferable to do this as a lint.
The text was updated successfully, but these errors were encountered: