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

Commit 099ec93

Browse files
chore(solidity/core/linter-lib): update documentation link
1 parent 1225fcb commit 099ec93

34 files changed

+68
-68
lines changed

toolchains/solidity/core/Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
name = "solidhunter"
33
description = "Fast solidity linter cli"
44
repository = "https://github.com/astrodevs-labs/osmium"
5-
version = "0.2.3"
5+
version = "0.2.4"
66
edition = "2021"
77
license = "GPL-3.0-or-later"
88
authors = ["AstroDevs-Labs"]
99
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1010

1111
[dependencies]
12-
solidhunter-lib = { path = "../linter-lib", version = "0.2.1" }
12+
solidhunter-lib = { path = "../linter-lib", version = "0.2.2" }
1313
clap = { version = "4.0.29", features = ["derive"] }
1414
colored = "2"
1515
serde = { version = "1.0.149", features = ["derive"] }

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "solidhunter-lib"
33
description = "Solidhunter/Osmium solidity linter library"
44
repository = "https://github.com/astrodevs-labs/osmium"
5-
version = "0.2.1"
5+
version = "0.2.2"
66
edition = "2021"
77
authors = ["Astrodevs Labs"]
88
license = "GPL-3.0-or-later"

toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/custom_errors.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ impl RuleType for CustomErrors {
7676
.to_string(),
7777
category: "best-practises".to_string(),
7878
example_config: "{\"id\": \"custom-errors\", \"severity\": \"WARNING\"}".to_string(),
79-
source_link: "https://github.com/astrodevs-labs/osmium/blob/dev/toolchains/solidity/core/crates/linter-lib/src/rules/best_practices/custom_errors.rs".to_string(),
80-
test_link: "https://github.com/astrodevs-labs/osmium/tree/dev/toolchains/solidity/core/crates/linter-lib/testdata/CustomErrors".to_string(),
79+
source_link: "https://github.com/astrodevs-labs/osmium/blob/main/toolchains/solidity/core/crates/linter-lib/src/rules/best_practices/custom_errors.rs".to_string(),
80+
test_link: "https://github.com/astrodevs-labs/osmium/tree/main/toolchains/solidity/core/crates/linter-lib/testdata/CustomErrors".to_string(),
8181
options: vec![],
8282
examples: Examples {
8383
good: vec![

toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/explicit_types.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ impl RuleType for ExplicitTypes {
124124
.to_string(),
125125
category: "best-practices".to_string(),
126126
example_config: "{\"id\": \"explicit-types\", \"severity\": \"WARNING\", \"data\": \"explicit\"}".to_string(),
127-
source_link: "https://github.com/astrodevs-labs/osmium/blob/dev/toolchains/solidity/core/crates/linter-lib/src/rules/best_practices/explicit_types.rs".to_string(),
128-
test_link: "https://github.com/astrodevs-labs/osmium/tree/dev/toolchains/solidity/core/crates/linter-lib/testdata/ExplicitTypes".to_string(),
127+
source_link: "https://github.com/astrodevs-labs/osmium/blob/main/toolchains/solidity/core/crates/linter-lib/src/rules/best_practices/explicit_types.rs".to_string(),
128+
test_link: "https://github.com/astrodevs-labs/osmium/tree/main/toolchains/solidity/core/crates/linter-lib/testdata/ExplicitTypes".to_string(),
129129
options: vec![Options {
130130
description: "Options need to be one of \"explicit\", \"implicit\"".to_string(),
131131
default: "explicit".to_string(),

toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/function_max_lines.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ impl RuleType for FunctionMaxLines {
5959
.to_string(),
6060
category: "best-practices".to_string(),
6161
example_config: "{\"id\": \"function-max-lines\", \"severity\": \"WARNING\", \"data\": 20}".to_string(),
62-
source_link: "https://github.com/astrodevs-labs/osmium/blob/dev/toolchains/solidity/core/crates/linter-lib/src/rules/best_practices/function_max_lines.rs".to_string(),
63-
test_link: "https://github.com/astrodevs-labs/osmium/tree/dev/toolchains/solidity/core/crates/linter-lib/testdata/FunctionMaxLines".to_string(),
62+
source_link: "https://github.com/astrodevs-labs/osmium/blob/main/toolchains/solidity/core/crates/linter-lib/src/rules/best_practices/function_max_lines.rs".to_string(),
63+
test_link: "https://github.com/astrodevs-labs/osmium/tree/main/toolchains/solidity/core/crates/linter-lib/testdata/FunctionMaxLines".to_string(),
6464
options: vec![Options {
6565
description: "Maximum allowed lines count per function ".to_string(),
6666
default: "50".to_string(),

toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/max_line_length.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ impl RuleType for MaxLineLength {
6262
description: "Line length must be no more than maxlen.".to_string(),
6363
category: "best-practices".to_string(),
6464
example_config: "{\"id\": \"max-line-length\", \"severity\": \"WARNING\", \"data\": 80}".to_string(),
65-
source_link: "https://github.com/astrodevs-labs/osmium/blob/dev/toolchains/solidity/core/crates/linter-lib/src/rules/best_practices/max_line_length.rs".to_string(),
66-
test_link: "https://github.com/astrodevs-labs/osmium/tree/dev/toolchains/solidity/core/crates/linter-lib/testdata/MaxLineLength".to_string(),
65+
source_link: "https://github.com/astrodevs-labs/osmium/blob/main/toolchains/solidity/core/crates/linter-lib/src/rules/best_practices/max_line_length.rs".to_string(),
66+
test_link: "https://github.com/astrodevs-labs/osmium/tree/main/toolchains/solidity/core/crates/linter-lib/testdata/MaxLineLength".to_string(),
6767
options: vec![Options {
6868
description: "Maximum allowed number of characters per line".to_string(),
6969
default: "120".to_string(),

toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/max_states_count.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ impl RuleType for MaxStatesCount {
7676
description: "Contract has \"some count\" states declarations but allowed no more than maxstates.".to_string(),
7777
category: "best-practices".to_string(),
7878
example_config: " {\"id\": \"max-states-count\", \"severity\": \"WARNING\", \"data\": [15]}".to_string(),
79-
source_link: "https://github.com/astrodevs-labs/osmium/blob/dev/toolchains/solidity/core/crates/linter-lib/src/rules/best_practices/max_states_count.rs".to_string(),
80-
test_link: "https://github.com/astrodevs-labs/osmium/tree/dev/toolchains/solidity/core/crates/linter-lib/testdata/MaxStatesCount".to_string(),
79+
source_link: "https://github.com/astrodevs-labs/osmium/blob/main/toolchains/solidity/core/crates/linter-lib/src/rules/best_practices/max_states_count.rs".to_string(),
80+
test_link: "https://github.com/astrodevs-labs/osmium/tree/main/toolchains/solidity/core/crates/linter-lib/testdata/MaxStatesCount".to_string(),
8181
options: vec![Options{description: "Maximum allowed states declarations".to_string(),
8282
default: "15".to_string(),}],
8383
examples: Examples {

toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/no_console.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ impl RuleType for NoConsole {
9999
description: "No console.log/logInt/logBytesX/logString/etc & No hardhat and forge-std console.sol import statements.".to_string(),
100100
category: "best-practices".to_string(),
101101
example_config: "{\"id\": \"no-console\", \"severity\": \"WARNING\"}".to_string(),
102-
source_link: "https://github.com/astrodevs-labs/osmium/blob/dev/toolchains/solidity/core/crates/linter-lib/src/rules/best_practices/no_console.rs".to_string(),
103-
test_link: "https://github.com/astrodevs-labs/osmium/tree/dev/toolchains/solidity/core/crates/linter-lib/testdata/NoConsole".to_string(),
102+
source_link: "https://github.com/astrodevs-labs/osmium/blob/main/toolchains/solidity/core/crates/linter-lib/src/rules/best_practices/no_console.rs".to_string(),
103+
test_link: "https://github.com/astrodevs-labs/osmium/tree/main/toolchains/solidity/core/crates/linter-lib/testdata/NoConsole".to_string(),
104104
options: vec![],
105105
examples: Examples {
106106
good: vec![],

toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/no_empty_block.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ impl RuleType for NoEmptyBlock {
4242
description: "Code block has zero statements inside. Exceptions apply.".to_string(),
4343
category: "best-practices".to_string(),
4444
example_config: "{\"id\": \"no-empty-block\", \"severity\": \"WARNING\"}".to_string(),
45-
source_link: "https://github.com/astrodevs-labs/osmium/blob/dev/toolchains/solidity/core/crates/linter-lib/src/rules/best_practices/no_empty_block.rs".to_string(),
46-
test_link: "https://github.com/astrodevs-labs/osmium/tree/dev/toolchains/solidity/core/crates/linter-lib/testdata/NoEmptyBlock".to_string(),
45+
source_link: "https://github.com/astrodevs-labs/osmium/blob/main/toolchains/solidity/core/crates/linter-lib/src/rules/best_practices/no_empty_block.rs".to_string(),
46+
test_link: "https://github.com/astrodevs-labs/osmium/tree/main/toolchains/solidity/core/crates/linter-lib/testdata/NoEmptyBlock".to_string(),
4747
options: vec![],
4848
examples: Examples {
4949
good: vec![

0 commit comments

Comments
 (0)