diff --git a/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/custom_errors.rs b/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/custom_errors.rs index 2012bd1e..1ee562de 100644 --- a/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/custom_errors.rs +++ b/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/custom_errors.rs @@ -76,8 +76,8 @@ impl RuleType for CustomErrors { .to_string(), category: "best-practises".to_string(), example_config: "{\"id\": \"custom-errors\", \"severity\": \"WARNING\"}".to_string(), - 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(), - test_link: "https://github.com/astrodevs-labs/osmium/tree/dev/toolchains/solidity/core/crates/linter-lib/testdata/CustomErrors".to_string(), + 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(), + test_link: "https://github.com/astrodevs-labs/osmium/tree/main/toolchains/solidity/core/crates/linter-lib/testdata/CustomErrors".to_string(), options: vec![], examples: Examples { good: vec![ diff --git a/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/explicit_types.rs b/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/explicit_types.rs index 52abba65..73011b68 100644 --- a/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/explicit_types.rs +++ b/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/explicit_types.rs @@ -124,8 +124,8 @@ impl RuleType for ExplicitTypes { .to_string(), category: "best-practices".to_string(), example_config: "{\"id\": \"explicit-types\", \"severity\": \"WARNING\", \"data\": \"explicit\"}".to_string(), - 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(), - test_link: "https://github.com/astrodevs-labs/osmium/tree/dev/toolchains/solidity/core/crates/linter-lib/testdata/ExplicitTypes".to_string(), + 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(), + test_link: "https://github.com/astrodevs-labs/osmium/tree/main/toolchains/solidity/core/crates/linter-lib/testdata/ExplicitTypes".to_string(), options: vec![Options { description: "Options need to be one of \"explicit\", \"implicit\"".to_string(), default: "explicit".to_string(), diff --git a/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/function_max_lines.rs b/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/function_max_lines.rs index 9a15bf19..e76f8d5a 100644 --- a/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/function_max_lines.rs +++ b/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/function_max_lines.rs @@ -59,8 +59,8 @@ impl RuleType for FunctionMaxLines { .to_string(), category: "best-practices".to_string(), example_config: "{\"id\": \"function-max-lines\", \"severity\": \"WARNING\", \"data\": 20}".to_string(), - 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(), - test_link: "https://github.com/astrodevs-labs/osmium/tree/dev/toolchains/solidity/core/crates/linter-lib/testdata/FunctionMaxLines".to_string(), + 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(), + test_link: "https://github.com/astrodevs-labs/osmium/tree/main/toolchains/solidity/core/crates/linter-lib/testdata/FunctionMaxLines".to_string(), options: vec![Options { description: "Maximum allowed lines count per function ".to_string(), default: "50".to_string(), diff --git a/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/max_line_length.rs b/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/max_line_length.rs index c3c273cd..c3fff2f4 100644 --- a/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/max_line_length.rs +++ b/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/max_line_length.rs @@ -62,8 +62,8 @@ impl RuleType for MaxLineLength { description: "Line length must be no more than maxlen.".to_string(), category: "best-practices".to_string(), example_config: "{\"id\": \"max-line-length\", \"severity\": \"WARNING\", \"data\": 80}".to_string(), - 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(), - test_link: "https://github.com/astrodevs-labs/osmium/tree/dev/toolchains/solidity/core/crates/linter-lib/testdata/MaxLineLength".to_string(), + 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(), + test_link: "https://github.com/astrodevs-labs/osmium/tree/main/toolchains/solidity/core/crates/linter-lib/testdata/MaxLineLength".to_string(), options: vec![Options { description: "Maximum allowed number of characters per line".to_string(), default: "120".to_string(), diff --git a/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/max_states_count.rs b/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/max_states_count.rs index 78326290..c7af4dce 100644 --- a/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/max_states_count.rs +++ b/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/max_states_count.rs @@ -76,8 +76,8 @@ impl RuleType for MaxStatesCount { description: "Contract has \"some count\" states declarations but allowed no more than maxstates.".to_string(), category: "best-practices".to_string(), example_config: " {\"id\": \"max-states-count\", \"severity\": \"WARNING\", \"data\": [15]}".to_string(), - 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(), - test_link: "https://github.com/astrodevs-labs/osmium/tree/dev/toolchains/solidity/core/crates/linter-lib/testdata/MaxStatesCount".to_string(), + 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(), + test_link: "https://github.com/astrodevs-labs/osmium/tree/main/toolchains/solidity/core/crates/linter-lib/testdata/MaxStatesCount".to_string(), options: vec![Options{description: "Maximum allowed states declarations".to_string(), default: "15".to_string(),}], examples: Examples { diff --git a/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/no_console.rs b/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/no_console.rs index a5b4bc5d..f1962e4b 100644 --- a/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/no_console.rs +++ b/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/no_console.rs @@ -99,8 +99,8 @@ impl RuleType for NoConsole { description: "No console.log/logInt/logBytesX/logString/etc & No hardhat and forge-std console.sol import statements.".to_string(), category: "best-practices".to_string(), example_config: "{\"id\": \"no-console\", \"severity\": \"WARNING\"}".to_string(), - 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(), - test_link: "https://github.com/astrodevs-labs/osmium/tree/dev/toolchains/solidity/core/crates/linter-lib/testdata/NoConsole".to_string(), + 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(), + test_link: "https://github.com/astrodevs-labs/osmium/tree/main/toolchains/solidity/core/crates/linter-lib/testdata/NoConsole".to_string(), options: vec![], examples: Examples { good: vec![], diff --git a/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/no_empty_block.rs b/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/no_empty_block.rs index 1017af34..c8a5295d 100644 --- a/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/no_empty_block.rs +++ b/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/no_empty_block.rs @@ -42,8 +42,8 @@ impl RuleType for NoEmptyBlock { description: "Code block has zero statements inside. Exceptions apply.".to_string(), category: "best-practices".to_string(), example_config: "{\"id\": \"no-empty-block\", \"severity\": \"WARNING\"}".to_string(), - 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(), - test_link: "https://github.com/astrodevs-labs/osmium/tree/dev/toolchains/solidity/core/crates/linter-lib/testdata/NoEmptyBlock".to_string(), + 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(), + test_link: "https://github.com/astrodevs-labs/osmium/tree/main/toolchains/solidity/core/crates/linter-lib/testdata/NoEmptyBlock".to_string(), options: vec![], examples: Examples { good: vec![ diff --git a/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/no_global_import.rs b/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/no_global_import.rs index 1fc0af68..489b00e0 100644 --- a/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/no_global_import.rs +++ b/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/no_global_import.rs @@ -42,8 +42,8 @@ impl RuleType for NoGlobalImport { .to_string(), category: "best-practices".to_string(), example_config: "{\"id\": \"no-global-import\", \"severity\": \"WARNING\"}".to_string(), - source_link: "https://github.com/astrodevs-labs/osmium/blob/dev/toolchains/solidity/core/crates/linter-lib/src/rules/best_practices/no_global_import.rs".to_string(), - test_link: "https://github.com/astrodevs-labs/osmium/tree/dev/toolchains/solidity/core/crates/linter-lib/testdata/NoGlobalImport".to_string(), + source_link: "https://github.com/astrodevs-labs/osmium/blob/main/toolchains/solidity/core/crates/linter-lib/src/rules/best_practices/no_global_import.rs".to_string(), + test_link: "https://github.com/astrodevs-labs/osmium/tree/main/toolchains/solidity/core/crates/linter-lib/testdata/NoGlobalImport".to_string(), options: vec![], examples: Examples { good: vec![ diff --git a/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/one_contract_per_file.rs b/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/one_contract_per_file.rs index 36427658..4930ff28 100644 --- a/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/one_contract_per_file.rs +++ b/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/one_contract_per_file.rs @@ -61,8 +61,8 @@ impl RuleType for OneContractPerFile { description: "Imported object name is not being used by the contract.".to_string(), category: "best-practices".to_string(), example_config: "{\"id\": \"one-contract-per-file\", \"severity\": \"WARNING\"}".to_string(), - source_link: "https://github.com/astrodevs-labs/osmium/blob/dev/toolchains/solidity/core/crates/linter-lib/src/rules/best_practices/one_contract_per_file.rs".to_string(), - test_link: "https://github.com/astrodevs-labs/osmium/tree/dev/toolchains/solidity/core/crates/linter-lib/testdata/OneContractPerFile".to_string(), + source_link: "https://github.com/astrodevs-labs/osmium/blob/main/toolchains/solidity/core/crates/linter-lib/src/rules/best_practices/one_contract_per_file.rs".to_string(), + test_link: "https://github.com/astrodevs-labs/osmium/tree/main/toolchains/solidity/core/crates/linter-lib/testdata/OneContractPerFile".to_string(), options: vec![], examples: Examples { good: vec![Example { diff --git a/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/payable_fallback.rs b/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/payable_fallback.rs index a27e9496..78d2bfed 100644 --- a/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/payable_fallback.rs +++ b/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/payable_fallback.rs @@ -45,8 +45,8 @@ impl RuleType for PayableFallback { .to_string(), category: "best-practices".to_string(), example_config: "{\"id\": \"payable-fallback\", \"severity\": \"WARNING\"}".to_string(), - source_link: "https://github.com/astrodevs-labs/osmium/blob/dev/toolchains/solidity/core/crates/linter-lib/src/rules/best_practices/payable_fallback.rs".to_string(), - test_link: "https://github.com/astrodevs-labs/osmium/tree/dev/toolchains/solidity/core/crates/linter-lib/testdata/PayableFallback".to_string(), + source_link: "https://github.com/astrodevs-labs/osmium/blob/main/toolchains/solidity/core/crates/linter-lib/src/rules/best_practices/payable_fallback.rs".to_string(), + test_link: "https://github.com/astrodevs-labs/osmium/tree/main/toolchains/solidity/core/crates/linter-lib/testdata/PayableFallback".to_string(), options: vec![], examples: Examples { good: vec![Example { diff --git a/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/reason_string.rs b/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/reason_string.rs index 5e0fbe5a..c21791e0 100644 --- a/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/reason_string.rs +++ b/toolchains/solidity/core/crates/linter-lib/src/rules/best_practises/reason_string.rs @@ -135,8 +135,8 @@ impl RuleType for ReasonString { description: "Require or revert statement must have a reason string and check that each reason string is at most N characters long.".to_string(), category: "best-practices".to_string(), example_config: " {\"id\": \"reason-string\", \"severity\": \"WARNING\", \"data\": 20}".to_string(), - source_link: "https://github.com/astrodevs-labs/osmium/blob/dev/toolchains/solidity/core/crates/linter-lib/src/rules/best_practices/reason_string.rs".to_string(), - test_link: "https://github.com/astrodevs-labs/osmium/tree/dev/toolchains/solidity/core/crates/linter-lib/testdata/ReasonString".to_string(), + source_link: "https://github.com/astrodevs-labs/osmium/blob/main/toolchains/solidity/core/crates/linter-lib/src/rules/best_practices/reason_string.rs".to_string(), + test_link: "https://github.com/astrodevs-labs/osmium/tree/main/toolchains/solidity/core/crates/linter-lib/testdata/ReasonString".to_string(), options: vec![Options{description: "A JSON object with a single property \"maxLength\" specifying the max number of characters per reason string.".to_string(), default: "{\"maxLength\":32}".to_string()}], examples: Examples { diff --git a/toolchains/solidity/core/crates/linter-lib/src/rules/naming/const_name_snakecase.rs b/toolchains/solidity/core/crates/linter-lib/src/rules/naming/const_name_snakecase.rs index 8f5d842e..64ccad2b 100644 --- a/toolchains/solidity/core/crates/linter-lib/src/rules/naming/const_name_snakecase.rs +++ b/toolchains/solidity/core/crates/linter-lib/src/rules/naming/const_name_snakecase.rs @@ -75,8 +75,8 @@ impl RuleType for ConstNameSnakeCase { description: "Constant name must be in capitalized SNAKE_CASE. (Does not check IMMUTABLES, use immutable-vars-naming)".to_string(), category: "naming".to_string(), example_config: " {\"id\": \"const-name-snakecase\", \"severity\": \"WARNING\"}".to_string(), - source_link: "https://github.com/astrodevs-labs/osmium/blob/dev/toolchains/solidity/core/crates/linter-lib/src/rules/naming/const_name_snakecase.rs".to_string(), - test_link: "https://github.com/astrodevs-labs/osmium/tree/dev/toolchains/solidity/core/crates/linter-lib/testdata/ConstNameSnakecase".to_string(), + source_link: "https://github.com/astrodevs-labs/osmium/blob/main/toolchains/solidity/core/crates/linter-lib/src/rules/naming/const_name_snakecase.rs".to_string(), + test_link: "https://github.com/astrodevs-labs/osmium/tree/main/toolchains/solidity/core/crates/linter-lib/testdata/ConstNameSnakecase".to_string(), options: vec![], examples: Examples { good: vec![], diff --git a/toolchains/solidity/core/crates/linter-lib/src/rules/naming/contract_name_camelcase.rs b/toolchains/solidity/core/crates/linter-lib/src/rules/naming/contract_name_camelcase.rs index 589ea8f7..0c76da7b 100644 --- a/toolchains/solidity/core/crates/linter-lib/src/rules/naming/contract_name_camelcase.rs +++ b/toolchains/solidity/core/crates/linter-lib/src/rules/naming/contract_name_camelcase.rs @@ -64,8 +64,8 @@ impl RuleType for ContractNameCamelCase { description: "Contract name must be in CamelCase.".to_string(), category: "naming".to_string(), example_config: "{\"id\": \"contract-name-camelcase\", \"severity\": \"WARNING\"}".to_string(), - source_link: "https://github.com/astrodevs-labs/osmium/blob/dev/toolchains/solidity/core/crates/linter-lib/src/rules/naming/contract_name_camelcase.rs".to_string(), - test_link: "https://github.com/astrodevs-labs/osmium/tree/dev/toolchains/solidity/core/crates/linter-lib/testdata/ContractNameCamelcase".to_string(), + source_link: "https://github.com/astrodevs-labs/osmium/blob/main/toolchains/solidity/core/crates/linter-lib/src/rules/naming/contract_name_camelcase.rs".to_string(), + test_link: "https://github.com/astrodevs-labs/osmium/tree/main/toolchains/solidity/core/crates/linter-lib/testdata/ContractNameCamelcase".to_string(), options: vec![], examples: Examples { good: vec![], diff --git a/toolchains/solidity/core/crates/linter-lib/src/rules/naming/event_name_camelcase.rs b/toolchains/solidity/core/crates/linter-lib/src/rules/naming/event_name_camelcase.rs index 5841e841..859da766 100644 --- a/toolchains/solidity/core/crates/linter-lib/src/rules/naming/event_name_camelcase.rs +++ b/toolchains/solidity/core/crates/linter-lib/src/rules/naming/event_name_camelcase.rs @@ -85,8 +85,8 @@ impl RuleType for EventNameCamelCase { description: "Event name must be in CamelCase.".to_string(), category: "naming".to_string(), example_config: "{\"id\": \"event-name-camelcase\", \"severity\": \"WARNING\"}".to_string(), - source_link: "https://github.com/astrodevs-labs/osmium/blob/dev/toolchains/solidity/core/crates/linter-lib/src/rules/naming/event_name_camelcase.rs".to_string(), - test_link: "https://github.com/astrodevs-labs/osmium/tree/dev/toolchains/solidity/core/crates/linter-lib/testdata/EventNameCamelcase".to_string(), + source_link: "https://github.com/astrodevs-labs/osmium/blob/main/toolchains/solidity/core/crates/linter-lib/src/rules/naming/event_name_camelcase.rs".to_string(), + test_link: "https://github.com/astrodevs-labs/osmium/tree/main/toolchains/solidity/core/crates/linter-lib/testdata/EventNameCamelcase".to_string(), options: vec![], examples: Examples { good: vec![], diff --git a/toolchains/solidity/core/crates/linter-lib/src/rules/naming/foundry_test_functions.rs b/toolchains/solidity/core/crates/linter-lib/src/rules/naming/foundry_test_functions.rs index 62ea04d1..c9f821e0 100644 --- a/toolchains/solidity/core/crates/linter-lib/src/rules/naming/foundry_test_functions.rs +++ b/toolchains/solidity/core/crates/linter-lib/src/rules/naming/foundry_test_functions.rs @@ -108,8 +108,8 @@ impl RuleType for FoundryTestFunctions { .to_string(), category: "naming".to_string(), example_config: "{\"id\": \"foundry-test-functions\", \"severity\": \"WARNING\", \"data\": [\"setUp\"]}".to_string(), - source_link: "https://github.com/astrodevs-labs/osmium/blob/dev/toolchains/solidity/core/crates/linter-lib/src/rules/naming/foundry_test_functions.rs".to_string(), - test_link: "https://github.com/astrodevs-labs/osmium/tree/dev/toolchains/solidity/core/crates/linter-lib/testdata/FoundryTestFunctions".to_string(), + source_link: "https://github.com/astrodevs-labs/osmium/blob/main/toolchains/solidity/core/crates/linter-lib/src/rules/naming/foundry_test_functions.rs".to_string(), + test_link: "https://github.com/astrodevs-labs/osmium/tree/main/toolchains/solidity/core/crates/linter-lib/testdata/FoundryTestFunctions".to_string(), options: vec![Options { description: "Array of function to be skipped".to_string(), default: "[]".to_string(), diff --git a/toolchains/solidity/core/crates/linter-lib/src/rules/naming/func_name_mixedcase.rs b/toolchains/solidity/core/crates/linter-lib/src/rules/naming/func_name_mixedcase.rs index b3e50ce4..6acac49f 100644 --- a/toolchains/solidity/core/crates/linter-lib/src/rules/naming/func_name_mixedcase.rs +++ b/toolchains/solidity/core/crates/linter-lib/src/rules/naming/func_name_mixedcase.rs @@ -72,8 +72,8 @@ impl RuleType for FuncNameMixedCase { description: "Function name must be in mixedCase.".to_string(), category: "naming".to_string(), example_config: "{\"id\": \"func-name-mixedcase\", \"severity\": \"WARNING\"}".to_string(), - source_link: "https://github.com/astrodevs-labs/osmium/blob/dev/toolchains/solidity/core/crates/linter-lib/src/rules/naming/func_name_mixedcase.rs".to_string(), - test_link: "https://github.com/astrodevs-labs/osmium/tree/dev/toolchains/solidity/core/crates/linter-lib/testdata/FuncNameMixedcase".to_string(), + source_link: "https://github.com/astrodevs-labs/osmium/blob/main/toolchains/solidity/core/crates/linter-lib/src/rules/naming/func_name_mixedcase.rs".to_string(), + test_link: "https://github.com/astrodevs-labs/osmium/tree/main/toolchains/solidity/core/crates/linter-lib/testdata/FuncNameMixedcase".to_string(), options: vec![], examples: Examples { good: vec![], diff --git a/toolchains/solidity/core/crates/linter-lib/src/rules/naming/func_param_name_mixedcase.rs b/toolchains/solidity/core/crates/linter-lib/src/rules/naming/func_param_name_mixedcase.rs index a43b8a76..7df4c845 100644 --- a/toolchains/solidity/core/crates/linter-lib/src/rules/naming/func_param_name_mixedcase.rs +++ b/toolchains/solidity/core/crates/linter-lib/src/rules/naming/func_param_name_mixedcase.rs @@ -71,8 +71,8 @@ impl RuleType for FuncParamNameMixedCase { description: "Function param name must be in mixedCase.".to_string(), category: "naming".to_string(), example_config: "{\"id\": \"func-param-name-mixedcase\", \"severity\": \"WARNING\"}".to_string(), - source_link: "https://github.com/astrodevs-labs/osmium/blob/dev/toolchains/solidity/core/crates/linter-lib/src/rules/naming/func_param_name_mixedcase.rs".to_string(), - test_link: "https://github.com/astrodevs-labs/osmium/tree/dev/toolchains/solidity/core/crates/linter-lib/testdata/FuncParamNameMixedcase".to_string(), + source_link: "https://github.com/astrodevs-labs/osmium/blob/main/toolchains/solidity/core/crates/linter-lib/src/rules/naming/func_param_name_mixedcase.rs".to_string(), + test_link: "https://github.com/astrodevs-labs/osmium/tree/main/toolchains/solidity/core/crates/linter-lib/testdata/FuncParamNameMixedcase".to_string(), options: vec![], examples: Examples { good: vec![], diff --git a/toolchains/solidity/core/crates/linter-lib/src/rules/naming/modifier_name_mixedcase.rs b/toolchains/solidity/core/crates/linter-lib/src/rules/naming/modifier_name_mixedcase.rs index 8e0b2fb4..a9b58988 100644 --- a/toolchains/solidity/core/crates/linter-lib/src/rules/naming/modifier_name_mixedcase.rs +++ b/toolchains/solidity/core/crates/linter-lib/src/rules/naming/modifier_name_mixedcase.rs @@ -88,8 +88,8 @@ impl RuleType for ModifierNameMixedcase { description: "Modifier name must be in mixedCase.".to_string(), category: "naming".to_string(), example_config: "{\"id\": \"modifier-name-mixedcase\", \"severity\": \"WARNING\", \"data\": []}".to_string(), - source_link: "https://github.com/astrodevs-labs/osmium/blob/dev/toolchains/solidity/core/crates/linter-lib/src/rules/naming/modifier_name_mixedcase.rs".to_string(), - test_link: "https://github.com/astrodevs-labs/osmium/tree/dev/toolchains/solidity/core/crates/linter-lib/testdata/ModifierNameMixedcase".to_string(), + source_link: "https://github.com/astrodevs-labs/osmium/blob/main/toolchains/solidity/core/crates/linter-lib/src/rules/naming/modifier_name_mixedcase.rs".to_string(), + test_link: "https://github.com/astrodevs-labs/osmium/tree/main/toolchains/solidity/core/crates/linter-lib/testdata/ModifierNameMixedcase".to_string(), options: vec![], examples: Examples { good: vec![], diff --git a/toolchains/solidity/core/crates/linter-lib/src/rules/naming/named_parameters_mapping.rs b/toolchains/solidity/core/crates/linter-lib/src/rules/naming/named_parameters_mapping.rs index 8ff1711b..50eabfc6 100644 --- a/toolchains/solidity/core/crates/linter-lib/src/rules/naming/named_parameters_mapping.rs +++ b/toolchains/solidity/core/crates/linter-lib/src/rules/naming/named_parameters_mapping.rs @@ -100,8 +100,8 @@ impl RuleType for NamedParametersMapping { description: "Solidity v0.8.18 introduced named parameters on the mappings definition.".to_string(), category: "naming".to_string(), example_config: "{\"id\": \"named-parameters-mapping\", \"severity\": \"WARNING\"}".to_string(), - source_link: "https://github.com/astrodevs-labs/osmium/blob/dev/toolchains/solidity/core/crates/linter-lib/src/rules/naming/named_parameters_mapping.rs".to_string(), - test_link: "https://github.com/astrodevs-labs/osmium/tree/dev/toolchains/solidity/core/crates/linter-lib/testdata/NamedParametersMapping".to_string(), + source_link: "https://github.com/astrodevs-labs/osmium/blob/main/toolchains/solidity/core/crates/linter-lib/src/rules/naming/named_parameters_mapping.rs".to_string(), + test_link: "https://github.com/astrodevs-labs/osmium/tree/main/toolchains/solidity/core/crates/linter-lib/testdata/NamedParametersMapping".to_string(), options: vec![], examples: Examples { good: vec![ diff --git a/toolchains/solidity/core/crates/linter-lib/src/rules/naming/private_vars_leading_underscore.rs b/toolchains/solidity/core/crates/linter-lib/src/rules/naming/private_vars_leading_underscore.rs index 45a47e0f..94486656 100644 --- a/toolchains/solidity/core/crates/linter-lib/src/rules/naming/private_vars_leading_underscore.rs +++ b/toolchains/solidity/core/crates/linter-lib/src/rules/naming/private_vars_leading_underscore.rs @@ -158,8 +158,8 @@ impl RuleType for PrivateVarsLeadingUnderscore { description: "Non-external functions and state variables should start with a single underscore. Others, shouldn't".to_string(), category: "naming".to_string(), example_config: " {\"id\": \"private-vars-leading-underscore\", \"severity\": \"WARNING\", \"data\": {\"strict\": true}}".to_string(), - source_link: "https://github.com/astrodevs-labs/osmium/blob/dev/toolchains/solidity/core/crates/linter-lib/src/rules/naming/private_vars_leading_underscore.rs".to_string(), - test_link: "https://github.com/astrodevs-labs/osmium/tree/dev/toolchains/solidity/core/crates/linter-lib/testdata/PrivateVarsLeadingUnderscore".to_string(), + source_link: "https://github.com/astrodevs-labs/osmium/blob/main/toolchains/solidity/core/crates/linter-lib/src/rules/naming/private_vars_leading_underscore.rs".to_string(), + test_link: "https://github.com/astrodevs-labs/osmium/tree/main/toolchains/solidity/core/crates/linter-lib/testdata/PrivateVarsLeadingUnderscore".to_string(), options: vec![Options { description: "A JSON object with a single property \"strict\" specifying if the rule should apply to ALL non state variables. Default: { strict: false }.".to_string(), default: "{\"strict\":false}".to_string(), diff --git a/toolchains/solidity/core/crates/linter-lib/src/rules/naming/use_forbidden_name.rs b/toolchains/solidity/core/crates/linter-lib/src/rules/naming/use_forbidden_name.rs index d7184325..97b9d03b 100644 --- a/toolchains/solidity/core/crates/linter-lib/src/rules/naming/use_forbidden_name.rs +++ b/toolchains/solidity/core/crates/linter-lib/src/rules/naming/use_forbidden_name.rs @@ -69,8 +69,8 @@ impl RuleType for UseForbiddenName { description: "Avoid to use letters 'I', 'l', 'O' as identifiers.".to_string(), category: "naming".to_string(), example_config: "{\"id\": \"use-forbidden-name\", \"severity\": \"WARNING\", \"data\": []}".to_string(), - source_link: "https://github.com/astrodevs-labs/osmium/blob/dev/toolchains/solidity/core/crates/linter-lib/src/rules/naming/use_forbidden_name.rs".to_string(), - test_link: "https://github.com/astrodevs-labs/osmium/tree/dev/toolchains/solidity/core/crates/linter-lib/testdata/UseForbiddenName".to_string(), + source_link: "https://github.com/astrodevs-labs/osmium/blob/main/toolchains/solidity/core/crates/linter-lib/src/rules/naming/use_forbidden_name.rs".to_string(), + test_link: "https://github.com/astrodevs-labs/osmium/tree/main/toolchains/solidity/core/crates/linter-lib/testdata/UseForbiddenName".to_string(), options: vec![], examples: Examples { good: vec![], diff --git a/toolchains/solidity/core/crates/linter-lib/src/rules/naming/var_name_mixedcase.rs b/toolchains/solidity/core/crates/linter-lib/src/rules/naming/var_name_mixedcase.rs index 54d1a4ee..dd112ff4 100644 --- a/toolchains/solidity/core/crates/linter-lib/src/rules/naming/var_name_mixedcase.rs +++ b/toolchains/solidity/core/crates/linter-lib/src/rules/naming/var_name_mixedcase.rs @@ -76,8 +76,8 @@ impl RuleType for VarNameMixedCase { description: "Variable name must be in mixedCase. (Does not check IMMUTABLES, use immutable-vars-naming)".to_string(), category: "naming".to_string(), example_config: "{\"id\": \"var-name-mixedcase\", \"severity\": \"WARNING\"}".to_string(), - source_link: "https://github.com/astrodevs-labs/osmium/blob/dev/toolchains/solidity/core/crates/linter-lib/src/rules/naming/var_name_mixedcase.rs".to_string(), - test_link: "https://github.com/astrodevs-labs/osmium/tree/dev/toolchains/solidity/core/crates/linter-lib/testdata/VarNameMixedcase".to_string(), + source_link: "https://github.com/astrodevs-labs/osmium/blob/main/toolchains/solidity/core/crates/linter-lib/src/rules/naming/var_name_mixedcase.rs".to_string(), + test_link: "https://github.com/astrodevs-labs/osmium/tree/main/toolchains/solidity/core/crates/linter-lib/testdata/VarNameMixedcase".to_string(), options: vec![], examples: Examples { good: vec![], diff --git a/toolchains/solidity/core/crates/linter-lib/src/rules/order/import_on_top.rs b/toolchains/solidity/core/crates/linter-lib/src/rules/order/import_on_top.rs index d7cf3ece..c8ecbd29 100644 --- a/toolchains/solidity/core/crates/linter-lib/src/rules/order/import_on_top.rs +++ b/toolchains/solidity/core/crates/linter-lib/src/rules/order/import_on_top.rs @@ -77,8 +77,8 @@ impl RuleType for ImportOnTop { description: "Import statements must be on top.".to_string(), category: "order".to_string(), example_config: "{\"id\": \"import-on-top\", \"severity\": \"WARNING\"}".to_string(), - source_link: "https://github.com/astrodevs-labs/osmium/blob/dev/toolchains/solidity/core/crates/linter-lib/src/rules/order/import_on_top.rs".to_string(), - test_link: "https://github.com/astrodevs-labs/osmium/tree/dev/toolchains/solidity/core/crates/linter-lib/testdata/ImportOnTop".to_string(), + source_link: "https://github.com/astrodevs-labs/osmium/blob/main/toolchains/solidity/core/crates/linter-lib/src/rules/order/import_on_top.rs".to_string(), + test_link: "https://github.com/astrodevs-labs/osmium/tree/main/toolchains/solidity/core/crates/linter-lib/testdata/ImportOnTop".to_string(), options: vec![], examples: Examples { good: vec![], diff --git a/toolchains/solidity/core/crates/linter-lib/src/rules/order/ordering.rs b/toolchains/solidity/core/crates/linter-lib/src/rules/order/ordering.rs index 1849329b..296105b5 100644 --- a/toolchains/solidity/core/crates/linter-lib/src/rules/order/ordering.rs +++ b/toolchains/solidity/core/crates/linter-lib/src/rules/order/ordering.rs @@ -523,8 +523,8 @@ impl RuleType for Ordering { description: "Check order of elements in file and inside each contract, according to the style guide.".to_string(), category: "order".to_string(), example_config: "{\"id\": \"ordering\", \"severity\": \"WARNING\"}".to_string(), - source_link: "https://github.com/astrodevs-labs/osmium/blob/dev/toolchains/solidity/core/crates/linter-lib/src/rules/order/ordering.rs".to_string(), - test_link: "https://github.com/astrodevs-labs/osmium/tree/dev/toolchains/solidity/core/crates/linter-lib/testdata/Ordering".to_string(), + source_link: "https://github.com/astrodevs-labs/osmium/blob/main/toolchains/solidity/core/crates/linter-lib/src/rules/order/ordering.rs".to_string(), + test_link: "https://github.com/astrodevs-labs/osmium/tree/main/toolchains/solidity/core/crates/linter-lib/testdata/Ordering".to_string(), options: vec![], examples: Examples { good: vec![], diff --git a/toolchains/solidity/core/crates/linter-lib/src/rules/order/visibility_modifier_order.rs b/toolchains/solidity/core/crates/linter-lib/src/rules/order/visibility_modifier_order.rs index 8c21fd49..427174dd 100644 --- a/toolchains/solidity/core/crates/linter-lib/src/rules/order/visibility_modifier_order.rs +++ b/toolchains/solidity/core/crates/linter-lib/src/rules/order/visibility_modifier_order.rs @@ -44,8 +44,8 @@ impl RuleType for VisibilityModiferOrder { description: "Visibility modifier must be first in list of modifiers.".to_string(), category: "order".to_string(), example_config: "{\"id\": \"visibility-modifier-order\", \"severity\": \"WARNING\"}".to_string(), - source_link: "https://github.com/astrodevs-labs/osmium/blob/dev/toolchains/solidity/core/crates/linter-lib/src/rules/order/visibility_modifier_order.rs".to_string(), - test_link: "https://github.com/astrodevs-labs/osmium/tree/dev/toolchains/solidity/core/crates/linter-lib/testdata/VisibilityModifierOrder".to_string(), + source_link: "https://github.com/astrodevs-labs/osmium/blob/main/toolchains/solidity/core/crates/linter-lib/src/rules/order/visibility_modifier_order.rs".to_string(), + test_link: "https://github.com/astrodevs-labs/osmium/tree/main/toolchains/solidity/core/crates/linter-lib/testdata/VisibilityModifierOrder".to_string(), options: vec![], examples: Examples { good: vec![], diff --git a/toolchains/solidity/core/crates/linter-lib/src/rules/security/avoid_tx_origin.rs b/toolchains/solidity/core/crates/linter-lib/src/rules/security/avoid_tx_origin.rs index 70659fc3..43e5bea8 100644 --- a/toolchains/solidity/core/crates/linter-lib/src/rules/security/avoid_tx_origin.rs +++ b/toolchains/solidity/core/crates/linter-lib/src/rules/security/avoid_tx_origin.rs @@ -84,8 +84,8 @@ impl RuleType for AvoidTxOrigin { description: "Avoid to use tx.origin.".to_string(), category: "security".to_string(), example_config: " {\"id\": \"avoid-tx-origin\", \"severity\": \"WARNING\"}".to_string(), - source_link: "https://github.com/astrodevs-labs/osmium/blob/dev/toolchains/solidity/core/crates/linter-lib/src/rules/security/avoid_tx_origin.rs".to_string(), - test_link: "https://github.com/astrodevs-labs/osmium/tree/dev/toolchains/solidity/core/crates/linter-lib/testdata/AvoidTxOrigin".to_string(), + source_link: "https://github.com/astrodevs-labs/osmium/blob/main/toolchains/solidity/core/crates/linter-lib/src/rules/security/avoid_tx_origin.rs".to_string(), + test_link: "https://github.com/astrodevs-labs/osmium/tree/main/toolchains/solidity/core/crates/linter-lib/testdata/AvoidTxOrigin".to_string(), options: vec![], examples: Examples { good: vec![], diff --git a/toolchains/solidity/core/crates/linter-lib/src/rules/security/func_visibility.rs b/toolchains/solidity/core/crates/linter-lib/src/rules/security/func_visibility.rs index 09a6febf..c53d25e5 100644 --- a/toolchains/solidity/core/crates/linter-lib/src/rules/security/func_visibility.rs +++ b/toolchains/solidity/core/crates/linter-lib/src/rules/security/func_visibility.rs @@ -85,8 +85,8 @@ impl RuleType for FuncVisibility { description: "Explicitly mark visibility in function.".to_string(), category: "security".to_string(), example_config: "{\"id\": \"func-visibility\", \"severity\": \"WARNING\", \"data\": {\"ignoreConstructors\": false}}".to_string(), - source_link: "https://github.com/astrodevs-labs/osmium/blob/dev/toolchains/solidity/core/crates/linter-lib/src/rules/security/func_visibility.rs".to_string(), - test_link: "https://github.com/astrodevs-labs/osmium/tree/dev/toolchains/solidity/core/crates/linter-lib/testdata/FuncVisibility".to_string(), + source_link: "https://github.com/astrodevs-labs/osmium/blob/main/toolchains/solidity/core/crates/linter-lib/src/rules/security/func_visibility.rs".to_string(), + test_link: "https://github.com/astrodevs-labs/osmium/tree/main/toolchains/solidity/core/crates/linter-lib/testdata/FuncVisibility".to_string(), options: vec![Options { description: "A JSON object with a single property \"ignoreConstructors\" specifying if the rule should ignore constructors. (Note: This is required to be true for Solidity >=0.7.0 and false for <0.7.0)".to_string(), default: "{\"ignoreConstructors\":false}".to_string(), diff --git a/toolchains/solidity/core/crates/linter-lib/src/rules/security/no_inline_assembly.rs b/toolchains/solidity/core/crates/linter-lib/src/rules/security/no_inline_assembly.rs index 923c6609..0741ca26 100644 --- a/toolchains/solidity/core/crates/linter-lib/src/rules/security/no_inline_assembly.rs +++ b/toolchains/solidity/core/crates/linter-lib/src/rules/security/no_inline_assembly.rs @@ -60,8 +60,8 @@ impl RuleType for NoInlineAssembly { .to_string(), category: "security".to_string(), example_config: "{\"id\": \"no-inline-assembly\", \"severity\": \"WARNING\"}".to_string(), - source_link: "https://github.com/astrodevs-labs/osmium/blob/dev/toolchains/solidity/core/crates/linter-lib/src/rules/security/no_inline_assembly.rs".to_string(), - test_link: "https://github.com/astrodevs-labs/osmium/tree/dev/toolchains/solidity/core/crates/linter-lib/testdata/NoInlineAssembly".to_string(), + source_link: "https://github.com/astrodevs-labs/osmium/blob/main/toolchains/solidity/core/crates/linter-lib/src/rules/security/no_inline_assembly.rs".to_string(), + test_link: "https://github.com/astrodevs-labs/osmium/tree/main/toolchains/solidity/core/crates/linter-lib/testdata/NoInlineAssembly".to_string(), options: vec![], examples: Examples { good: vec![], diff --git a/toolchains/solidity/core/crates/linter-lib/src/rules/security/not_rely_on_time.rs b/toolchains/solidity/core/crates/linter-lib/src/rules/security/not_rely_on_time.rs index 57651a0c..2febac0c 100644 --- a/toolchains/solidity/core/crates/linter-lib/src/rules/security/not_rely_on_time.rs +++ b/toolchains/solidity/core/crates/linter-lib/src/rules/security/not_rely_on_time.rs @@ -85,8 +85,8 @@ impl RuleType for NotRelyOnTime { description: "Avoid making time-based decisions in your business logic.".to_string(), category: "security".to_string(), example_config: "{\"id\": \"not-rely-on-time\", \"severity\": \"WARNING\"}".to_string(), - source_link: "https://github.com/astrodevs-labs/osmium/blob/dev/toolchains/solidity/core/crates/linter-lib/src/rules/security/not_rely_on_time.rs".to_string(), - test_link: "https://github.com/astrodevs-labs/osmium/tree/dev/toolchains/solidity/core/crates/linter-lib/testdata/NotRelyOnTime".to_string(), + source_link: "https://github.com/astrodevs-labs/osmium/blob/main/toolchains/solidity/core/crates/linter-lib/src/rules/security/not_rely_on_time.rs".to_string(), + test_link: "https://github.com/astrodevs-labs/osmium/tree/main/toolchains/solidity/core/crates/linter-lib/testdata/NotRelyOnTime".to_string(), options: vec![], examples: Examples { good: vec![], diff --git a/toolchains/solidity/core/crates/linter-lib/src/rules/security/state_visibility.rs b/toolchains/solidity/core/crates/linter-lib/src/rules/security/state_visibility.rs index 4196b301..1ae0e57f 100644 --- a/toolchains/solidity/core/crates/linter-lib/src/rules/security/state_visibility.rs +++ b/toolchains/solidity/core/crates/linter-lib/src/rules/security/state_visibility.rs @@ -62,8 +62,8 @@ impl RuleType for StateVisibility { description: "Explicitly mark visibility of state.".to_string(), category: "security".to_string(), example_config: "{\"id\": \"state-visibility\", \"severity\": \"WARNING\", \"data\": []}".to_string(), - source_link: "https://github.com/astrodevs-labs/osmium/blob/dev/toolchains/solidity/core/crates/linter-lib/src/rules/security/state_visibility.rs".to_string(), - test_link: "https://github.com/astrodevs-labs/osmium/tree/dev/toolchains/solidity/core/crates/linter-lib/testdata/".to_string(), + source_link: "https://github.com/astrodevs-labs/osmium/blob/main/toolchains/solidity/core/crates/linter-lib/src/rules/security/state_visibility.rs".to_string(), + test_link: "https://github.com/astrodevs-labs/osmium/tree/main/toolchains/solidity/core/crates/linter-lib/testdata/".to_string(), options: vec![], examples: Examples { good: vec![Example {