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

Use cargo-license-template #1022

Merged
merged 3 commits into from Sep 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/format.yml
Expand Up @@ -31,6 +31,12 @@ jobs:
override: true
components: rustfmt

- name: Install cargo-license-template
uses: actions-rs/cargo@v1
with:
command: install
args: cargo-license-template

- name: Install dprint
run: npm install -g dprint
#run: cargo install dprint # installing from source is slow, ~5 minutes
Expand Down Expand Up @@ -64,3 +70,6 @@ jobs:
- name: Cargo.toml fmt check
run:
dprint check

- name: cargo-license-template check
run: cargo license-template --template .license_template --ignore .license_template_ignore --verbose
1 change: 1 addition & 0 deletions .license_template_ignore
@@ -0,0 +1 @@
libjose/tests/fixtures/*.rs
2 changes: 1 addition & 1 deletion bindings/wasm/src/iota/iota_verification_method.rs
@@ -1,4 +1,4 @@
// Copyright 2020-2022 Stiftung
// Copyright 2020-2022 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

use identity_iota::crypto::PublicKey;
Expand Down
3 changes: 3 additions & 0 deletions examples/utils/utils.rs
@@ -1,3 +1,6 @@
// Copyright 2020-2022 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

use std::path::PathBuf;

use anyhow::Context;
Expand Down
1 change: 0 additions & 1 deletion rustfmt.toml
@@ -1,6 +1,5 @@
comment_width = 120
format_code_in_doc_comments = true
license_template_path = ".license_template"
max_width = 120
normalize_comments = false
normalize_doc_attributes = false
Expand Down