2.3.40. Semantics¶

This ruleset focuses on human interpretation of the code. It reviews special values of literals, and named structures.

Total : 35 analysis

  • Ambiguous Array Index

  • Constants With Strange Names

  • Function Called With Other Case Than Defined

  • Variables With One Letter Names

  • One Letter Functions

  • Property Variable Confusion

  • PHP Keywords As Names

  • Strange Names In Classes

  • Class Function Confusion

  • Strange Name For Variables

  • Strange Name For Constants

  • Ambiguous Static

  • Ambiguous Visibilities

  • Could Be Constant

  • Similar Integers

  • Duplicate Literal

  • Parameter Hiding

  • Weird Array Index

  • Wrong Typehinted Name

  • Semantic Typing

  • Fn Argument Variable Confusion

  • Prefix And Suffixes With Typehint

  • Static Global Variables Confusion

  • Possible Alias Confusion

  • Mismatch Parameter And Type

  • Wrong Locale

  • Overload Existing Names

  • Same Name For Property And Method

  • Ambiguous Types With Variables

  • Method Property Confusion

  • Too Many Chained Calls

  • No Variable Needed

  • No Initial S In Variable Names

  • Array Access On Literal Array

  • Don’t Use The Type As Variable Name

2.3.40.1. Specs¶

Short name

Semantics

Available in

Entreprise Edition, Exakat Cloud

Exakat

Navigation

  • Introduction
  • Release Note

GETTING STARTED

  • Standard installation
  • Docker installation
  • Tutorials

USER GUIDE

  • Overview
  • PHP Version
  • Library & Framework Support
  • Configuration
  • Scoping analysis
  • Rule
  • Report
  • Cobbler

REFERENCE GUIDE

  • 1. Rules
  • 2. Rulesets
  • 3. Reports
  • 4. Cobblers
  • 5. Real Code Cases

ADMINISTRATOR GUIDE

  • Installation
  • Upgrading
  • Configuration
  • Commands

OTHERS

  • Frequently Asked Questions
  • Glossary
  • Annex

Related Topics

  • Documentation overview
    • 2. Rulesets
      • Previous: 2.3.39. Security
      • Next: 2.3.41. Suggestions
©2015-2025, Damien Seguy - Exakat. | Powered by Sphinx 9.0.4 & Alabaster 1.0.0 | Page source