Acton
Linting rules

E004: deprecated-symbol-use

Checks for usage of deprecated symbols in code.

Metadata

  • Code: E004
  • Rule: deprecated-symbol-use
  • Status: Stable since v0.0.1
  • Quick fix: not available

What it does

Checks for usage of deprecated symbols in code.

Why is this bad?

Using deprecated symbols can lead to compatibility issues, unexpected behavior, or reliance on outdated APIs. Such symbols may be removed in future versions.

Example

@deprecated
fun oldFunction() {
    // some deprecated logic
}

fun main() {
    oldFunction();
E004: usage of deprecated symbol
}
Source code

Last updated on

On this page