2.3.10. Coding conventions¶

This ruleset centralizes all analysis related to coding conventions. Sometimes, those are easy to extract with static analysis, and so here they are. No all o them are available.

Total : 29 analysis

  • No Plus One

  • All Uppercase Variables

  • Use With Fully Qualified Name

  • Non-lowercase Keywords

  • Echo Or Print

  • Constant Comparison

  • Closing Tags

  • One Letter Functions

  • Wrong Class Name Case

  • Bracketless Blocks

  • Use const

  • Unusual Case For PHP Functions

  • Interpolation

  • Empty Slots In Arrays

  • Multiple Classes In One File

  • Return With Parenthesis

  • Should Be Single Quote

  • Yoda Comparison

  • Mixed Concat And Interpolation

  • Order Of Declaration

  • Heredoc Delimiter

  • Mistaken Concatenation

  • Don’t Be Too Manual

  • Similar Integers

  • Wrong Function Name Case

  • Wrong Case Namespaces

  • Wrong Typed Name

  • Multiple Property Declaration On One Line

  • Useless Trailing Comma

2.3.10.1. Specs¶

Short name

Coding Conventions

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.9. Classdependencies
      • Next: 2.3.11. CompatibilityPHP53
©2015-2025, Damien Seguy - Exakat. | Powered by Sphinx 8.2.3 & Alabaster 1.0.0 | Page source