Skip to content

Latest commit

 

History

History
53 lines (39 loc) · 1.46 KB

check-send-result.md

File metadata and controls

53 lines (39 loc) · 1.46 KB
warning layout title
This is a dynamically generated file. Do not edit manually.
default
check-send-result | Solhint

check-send-result

Recommended Badge Category Badge Default Severity Badge warn

The {"extends": "solhint:recommended"} property in a configuration file enables this rule.

Description

Check result of "send" call.

Options

This rule accepts a string option of rule severity. Must be one of "error", "warn", "off". Default to warn.

Example Config

{
  "rules": {
    "check-send-result": "warn"
  }
}

Examples

👍 Examples of correct code for this rule

result of "send" call checked with if statement

if(x.send(55)) {}

👎 Examples of incorrect code for this rule

result of "send" call ignored

x.send(55);

Version

This rule was introduced in Solhint 2.0.0-alpha.0

Resources