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

Remove workspace lints from templates #4598

Merged
merged 7 commits into from
May 28, 2024

Conversation

rzadp
Copy link
Contributor

@rzadp rzadp commented May 27, 2024

This detaches the templates from monorepo's workspace lints, so the lints for the templates can evolve separately as needed.

Currently the templates re-use the monorepo's lints which looks weird.

cc @kianenigma @gupnik

@rzadp rzadp requested review from a team as code owners May 27, 2024 12:08
@rzadp rzadp added the R0-silent Changes should not be mentioned in any release notes label May 27, 2024
@bkchr
Copy link
Member

bkchr commented May 27, 2024

Currently the templates re-use the monorepo's lints which looks weird.

Why does it looks weird? IMO the problem is that this then maybe breaks clippy for them because there is maybe code that we accept, but default clippy rejects.

@rzadp
Copy link
Contributor Author

rzadp commented May 27, 2024

Why does it looks weird?

Actually it's the comments that look weird and out of place (to me).
Comments like One case where we do 0 + - it becomes untrue in the individual template repositories, because it does not happen in the templates.

Perhaps we should keep the lints, but strip the comments?


there is maybe code that we accept, but default clippy rejects.

That's not the case, because with this change, the templates are processed with default clippy inside the monorepo as well - as evidenced by this red check above.

So if the clippy job is green in the monorepo, it will be green in individual repos as well - unless I'm missing something.

@paritytech-cicd-pr
Copy link

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: cargo-clippy
Logs: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/6315702

@bkchr
Copy link
Member

bkchr commented May 27, 2024

So if the clippy job is green in the monorepo, it will be green in individual repos as well - unless I'm missing something.

Yeah good point, didn't thought about this.

@rzadp rzadp enabled auto-merge May 28, 2024 07:18
@rzadp rzadp requested a review from EgorPopelyaev May 28, 2024 07:23
@rzadp rzadp added this pull request to the merge queue May 28, 2024
Merged via the queue into master with commit 09f07d5 May 28, 2024
150 of 152 checks passed
@rzadp rzadp deleted the rzadp/templates-remove-workspace-lints branch May 28, 2024 08:03
ordian added a commit that referenced this pull request May 30, 2024
* master: (93 commits)
  Fix broken windows build (#4636)
  Beefy client generic on aduthority Id (#1816)
  pallet-staking: Put tests behind `cfg(debug_assertions)` (#4620)
  Broker new price adapter (#4521)
  Change `XcmDryRunApi::dry_run_extrinsic` to take a call instead (#4621)
  Update README.md (#4623)
  Publish `chain-spec-builder` (#4518)
  Add omni bencher & chain-spec-builder bins to release (#4557)
  Moves runtime macro out of experimental flag (#4249)
  Filter workspace dependencies in the templates (#4599)
  parachain-inherent: Make `para_id` more prominent (#4555)
  Add metric to measure the time it takes to gather enough assignments (#4587)
  Improve On_demand_assigner events (#4339)
  Conditional `required` checks (#4544)
  [CI] Deny adding git deps (#4572)
  [subsytem-bench] Remove redundant banchmark_name param (#4540)
  Add availability-recovery from systematic chunks (#1644)
  Remove workspace lints from templates (#4598)
  `sc-chain-spec`: deprecated code removed (#4410)
  [subsystem-benchmarks] Add statement-distribution benchmarks (#3863)
  ...
hitchhooker pushed a commit to ibp-network/polkadot-sdk that referenced this pull request Jun 5, 2024
This detaches the templates from monorepo's workspace lints, so the
lints for the templates can evolve separately as needed.

Currently the templates [re-use the monorepo's
lints](https://github.com/paritytech/polkadot-sdk-minimal-template/blob/bd8afe66ec566d61f36b0e3d731145741a9e9e19/Cargo.toml#L16-L43)
which looks weird.

cc @kianenigma @gupnik
TarekkMA pushed a commit to moonbeam-foundation/polkadot-sdk that referenced this pull request Aug 2, 2024
This detaches the templates from monorepo's workspace lints, so the
lints for the templates can evolve separately as needed.

Currently the templates [re-use the monorepo's
lints](https://github.com/paritytech/polkadot-sdk-minimal-template/blob/bd8afe66ec566d61f36b0e3d731145741a9e9e19/Cargo.toml#L16-L43)
which looks weird.

cc @kianenigma @gupnik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R0-silent Changes should not be mentioned in any release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants