-
Notifications
You must be signed in to change notification settings - Fork 3
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
fixed commit #10
fixed commit #10
Conversation
This is in WiP and will be able to be merged soon. |
514a386
to
b55e138
Compare
Sorrry @afrittoli i will rework it i changed everything because of this message ´taiki-e/install-action@protoc, dtolnay/rust-toolchain@beta, and swatinem/rust-cache@v2 are not allowed to be used in cdevents/sdk-rust. Actions in this workflow must be: within a repository owned by cdevents, created by GitHub, or matching the following: wagoid/commitlint-github-action@*.´ https://github.com/cdevents/sdk-rust/actions/runs/7576295830. |
I can enable any action we need in the repo config, by default non-GitHub-maintained actions are disallowed for security reasons. |
Thanks for the latest updates, it's looking good! I think for the commit check to pass it would be easier if you squashed all commits to one, and updated the commit message. It would be nice if you could set the PT title and description to something with a bit more context too 🙏 |
1540a2b
to
65688f2
Compare
yes sure i will |
561de9e
to
fe2929c
Compare
.github/workflows/linter.yaml
Outdated
- name: Install rust toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: nightly | ||
components: clippy, rustfmt | ||
- name: Install development tools | ||
uses: taiki-e/install-action@protoc | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: just, cargo-deny, dprint | ||
tool: cargo-deny, dprint |
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.
Maybe we could switch to mise
(formerly rtx
) to handle the installation on local env and on ci?
(in this PR or the next one)
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.
By default cd-event resctrict the use of public actions so they have to be added after some inspection. I use this to have as small image size as possible.
tools/dprint/dprint.json
Outdated
"**/*.toml", | ||
"**/*.yaml", | ||
"**/*.rs" |
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.
warning: with prettiers
we should also provide the config for IDE/Editor to be in sync or for other linter, formatters. By example:
- print didn't agree with my VsCode auto-formatter (BetterTOML + EditorConfig) on toml
- rust code is formatted with cargo fmt (default rules)
- If we use megalinter/superlinter they already provide a bunch of yaml, json,... linter)
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.
my problem with mega-superlinter is the size of the image which are too big. One thing we could do would be to use prettier as pre-commit for linter all files and then remove this.
tools/cargo-deny/deny.toml
Outdated
"Apache-2.0", | ||
"MIT", | ||
"BSD-2-Clause", |
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.
For my PR, more licenses will be needed (like CC0-1.0
) some by lib used by the generator, some by delivered sdk.
Do you think, we should use the same rules for both (as the generator is not distributed)?
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 but i don't know actually how the cd-event team would like to manage linsences but for me it is not a problem.
dca3103
to
da36718
Compare
Feat/add linter ci check cdevents#2 (cdevents#7) * added apache 2.0 license to all crates * semgrep and dprint for code formatting * cargo-deny for managing crates licenses Signed-off-by: rjtch <[email protected]>
* added apache 2.0 license to all crates * semgrep and dprint for code formatting * cargo-deny for managing crates licenses Signed-off-by: Hergy Fongue <[email protected]>
Signed-off-by: rjtch <[email protected]>
* added apache 2.0 license to all crates * semgrep and dprint for code formatting * cargo-deny for managing crates licenses Signed-off-by: Hergy Fongue <[email protected]>
Signed-off-by: Andrea Frittoli <[email protected]>
Signed-off-by: rjtch <[email protected]>
00ea982
to
5b7a2a2
Compare
Signed-off-by: rjtch <[email protected]>
Signed-off-by: rjtch <[email protected]>
Signed-off-by: rjtch <[email protected]>
b90d71f
to
aaf8e88
Compare
installed and caches steps for rust and rust