From 62252bc649e9e3de76b83961ee3a53712f4fb347 Mon Sep 17 00:00:00 2001 From: Dhruv-Varshney-Developer Date: Sat, 27 Jul 2024 22:52:01 +0530 Subject: [PATCH] Spelling of "semver" fixed to "server". --- docs/rules.md | 2 +- docs/rules/security/compiler-version.md | 4 ++-- e2e/06-formatters/helpers/helpers.js | 2 +- e2e/formatters-test.js | 2 +- lib/rules/security/compiler-version.js | 6 +++--- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/rules.md b/docs/rules.md index 8c644b5f..c98dda7a 100644 --- a/docs/rules.md +++ b/docs/rules.md @@ -84,7 +84,7 @@ title: "Rule Index of Solhint" | [avoid-throw](./rules/security/avoid-throw.md) | "throw" is deprecated, avoid to use it. | $~~~~~~~~$✔️ | | | [avoid-tx-origin](./rules/security/avoid-tx-origin.md) | Avoid to use tx.origin. | $~~~~~~~~$✔️ | | | [check-send-result](./rules/security/check-send-result.md) | Check result of "send" call. | $~~~~~~~~$✔️ | | -| [compiler-version](./rules/security/compiler-version.md) | Compiler version must satisfy a semver requirement. | $~~~~~~~~$✔️ | | +| [compiler-version](./rules/security/compiler-version.md) | Compiler version must satisfy a server requirement. | $~~~~~~~~$✔️ | | | [func-visibility](./rules/security/func-visibility.md) | Explicitly mark visibility in function. | $~~~~~~~~$✔️ | | | [mark-callable-contracts](./rules/security/mark-callable-contracts.md) | Explicitly mark all external contracts as trusted or untrusted. | | $~~~~~~~$✔️ | | [multiple-sends](./rules/security/multiple-sends.md) | Avoid multiple calls of "send" method in single transaction. | $~~~~~~~~$✔️ | | diff --git a/docs/rules/security/compiler-version.md b/docs/rules/security/compiler-version.md index d7bc39de..3f652a39 100644 --- a/docs/rules/security/compiler-version.md +++ b/docs/rules/security/compiler-version.md @@ -12,7 +12,7 @@ title: "compiler-version | Solhint" ## Description -Compiler version must satisfy a semver requirement. +Compiler version must satisfy a server requirement. ## Options This rule accepts an array of options: @@ -20,7 +20,7 @@ This rule accepts an array of options: | Index | Description | Default Value | | ----- | ----------------------------------------------------- | ------------- | | 0 | Rule severity. Must be one of "error", "warn", "off". | error | -| 1 | Semver requirement | ^0.8.0 | +| 1 | server requirement | ^0.8.0 | ### Example Config diff --git a/e2e/06-formatters/helpers/helpers.js b/e2e/06-formatters/helpers/helpers.js index 8376310f..c6a88759 100644 --- a/e2e/06-formatters/helpers/helpers.js +++ b/e2e/06-formatters/helpers/helpers.js @@ -3,7 +3,7 @@ const foo1Output = [ line: 2, column: 1, severity: 'Error', - message: 'Compiler version >=0.6.0 does not satisfy the ^0.8.0 semver requirement', + message: 'Compiler version >=0.6.0 does not satisfy the ^0.8.0 server requirement', ruleId: 'compiler-version', fix: null, filePath: 'contracts/Foo.sol', diff --git a/e2e/formatters-test.js b/e2e/formatters-test.js index 0b955587..a9dc275c 100644 --- a/e2e/formatters-test.js +++ b/e2e/formatters-test.js @@ -507,7 +507,7 @@ describe('e2e', function () { { level: 'error', message: { - text: 'Compiler version >=0.6.0 does not satisfy the ^0.8.0 semver requirement', + text: 'Compiler version >=0.6.0 does not satisfy the ^0.8.0 server requirement', }, locations: [ { diff --git a/lib/rules/security/compiler-version.js b/lib/rules/security/compiler-version.js index 955a53bd..3fc82697 100644 --- a/lib/rules/security/compiler-version.js +++ b/lib/rules/security/compiler-version.js @@ -9,7 +9,7 @@ const meta = { type: 'security', docs: { - description: `Compiler version must satisfy a semver requirement.`, + description: `Compiler version must satisfy a server requirement.`, category: 'Security Rules', options: [ { @@ -17,7 +17,7 @@ const meta = { default: DEFAULT_SEVERITY, }, { - description: `Semver requirement`, + description: `server requirement`, default: DEFAULT_SEMVER, }, ], @@ -57,7 +57,7 @@ class CompilerVersionChecker extends BaseChecker { ) { this.warn( node, - `Compiler version ${node.value} does not satisfy the ${this.requirement} semver requirement` + `Compiler version ${node.value} does not satisfy the ${this.requirement} server requirement` ) } }