ACR Rules

  1. Home
  2. Docs
  3. ACR Rules
  4. Reliability (41)
  5. Returned variables should be used

Returned variables should be used

Introduced in version: 1.3 (29 Jan 2020)

Variables returned from micro/nanoflow calls and java(script) action calls should be used. If a variable is not used it should be marked as not used or given a name that starts with a given prefix e.g. notused (configurable)

Noncompliant example:

Compliant example:

or

or

Disclaimer: We expect that this rule will trigger violations which are “false positives” i.e. violations that are not really something that needs your attention. In our view, the cost of a false positive is not as high as the cost of missing a bug. A false positive is easy to whitelist. On the other hand, a bug that ACR fails to detect can have large repercussions and costs in terms of development time and customer satisfaction. Therefore we will keep this rule as is in the hopes of catching bugs and accepting the occasional false positive.