Skip to content
This repository was archived by the owner on Jul 3, 2024. It is now read-only.

Commit 7a2adf9

Browse files
refactor: added licences, changed format scripts and removed useless logs
1 parent 78e99b8 commit 7a2adf9

File tree

10 files changed

+9
-10
lines changed

10 files changed

+9
-10
lines changed

libs/ast-extractor/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "osmium-libs-solidity-ast-extractor"
33
description = "Extracts the AST from a Solidity file"
4-
license = "GPL-3.0"
4+
license = "GPL-3.0-or-later"
55
repository = "https://github.com/astrodevs-labs/osmium"
66
version = "0.1.0"
77
edition = "2021"

libs/ast-extractor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"packageManager": "yarn@3.6.1",
44
"scripts": {
55
"build": "cargo build --release",
6-
"format": "cargo fmt",
6+
"format": "cargo fmt --check --all",
77
"test": "cargo test",
88
"lint": "cargo clippy --all-targets --all-features -- -D warnings",
99
"publish": "cargo package && cargo publish"

libs/lsp-handler/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "osmium-libs-lsp-handler"
33
description = "Dispatch LSP messages to all hooked handlers"
4-
license = "GPL-3.0"
4+
license = "GPL-3.0-or-later"
55
repository = "https://github.com/astrodevs-labs/osmium"
66
version = "0.0.1"
77
edition = "2021"

libs/lsp-handler/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@osmium-libs/lsp-handler",
33
"scripts": {
44
"build": "cargo build --release",
5-
"format": "cargo fmt",
5+
"format": "cargo fmt --check --all",
66
"test": "cargo test",
77
"lint": "cargo clippy --all-targets --all-features -- -D warnings",
88
"publish": "cargo package && cargo publish"

libs/lsp-server-wrapper/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[package]
22
name = "lsp-server-wrapper"
3+
license = "GPL-3.0-or-later"
34
version = "0.1.0"
45
edition = "2021"
56

libs/lsp-server-wrapper/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@osmium-libs/lsp-server-wrapper",
33
"scripts": {
44
"build": "cargo build --release",
5-
"format": "cargo fmt",
5+
"format": "cargo fmt --check --all",
66
"test": "cargo test",
77
"lint": "cargo clippy --all-targets --all-features -- -D warnings"
88
}

toolchains/solidity/core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ resolver = "2"
66
version = "0.3.0"
77
edition = "2021"
88
authors = ["Osmium Solidity Contributors"]
9-
license = "MIT OR Apache-2.0"
9+
license = "GPL-3.0-or-later"
1010
exclude = ["benches/", "tests/"]
1111

1212
[workspace.metadata.docs.rs]

toolchains/solidity/core/crates/extension/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[package]
22
name = "extension"
33
version = "0.1.0"
4+
license = "GPL-3.0-or-later"
45
edition = "2021"
56

67
[lib]

toolchains/solidity/core/crates/linter-server/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[package]
22
name = "linter-server"
3+
license = "GPL-3.0-or-later"
34
version = "0.0.2"
45
edition = "2021"
56

toolchains/solidity/extension/src/server.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,16 @@ const sendNotification = (method: string, params: any) => {
3636
const extension = create_extension(sendRequest, sendNotification);
3737

3838
connection.onInitialize((params: InitializeParams) => {
39-
console.log(`onInitialize: ${params.rootUri}`);
4039
return extension.onRequest('initialize', params);
4140
});
4241

4342
connection.onRequest((method: string, params: any) => {
44-
console.log(`onRequest: ${method}`);
4543
connection.console.log(`onRequest: ${method}`);
4644

4745
return extension.onRequest(method, params);
4846
});
4947

5048
connection.onNotification((method: string, params: any) => {
51-
console.log(`onNotification: ${method}`);
52-
connection.console.log(`onNotification: ${method}`);
5349
extension.onNotification(method, params);
5450
});
5551

0 commit comments

Comments
 (0)