Code Quality - Code analysis

Card Puncher Data Processing


Code analysis is an application that scans code and reports :

  • problems
  • or improvement

The application performing code analysis is a linter (a parser/lexer program)

Example: Bad variable name writing

Bad name writing is a problem that occurs when the developer makes a mistake in the variable name.


  • The variable has been written: $contextpath and not $contextPath with an uppercase letter P
  • The variable is then unused
  • The linter will report it and colors the variable characters in grey.

Code Analysis Variable Unused Name Error

Because this language is dynamic (no variable and type declaration), it allows for the declaration of variables everywhere and will not create any problems when it runs.


  • code inspections
  • intention actions.

Documentation / Reference

Discover More
Card Puncher Data Processing
Code Shipping - Definition File (Declaration File, Stubs)

dynamic languages does not have any type system (by default). (a variable may store any kind of value. To overcome this situation, developers create definition files that defines a library in terms of...
Card Puncher Data Processing
IDEA Plugin Dev - PSI Element

A PSI element is an element of a PSI tree. It can have child PSI elements. PSI elements and operations on the level of individual PSI elements are used to explore the internal structure of source code....
Code Analysis Variable Unused Name Error
Language - Linter (Code Analysis, Validation)

A linter is a tool that: statically analyze code finds problems in them may enforce a coding style. syntax highlighting Bad name writing is a problem that occurs when the developer makes...
Card Puncher Data Processing
Php - Stubs

PHP is a dynamic language. It does not have a type system (by default) and therefore, a variable stores any kind of value (if the type is not declared). To overcome this situation, developers may create...

Share this page:
Follow us:
Task Runner