Skip to content

Commit 3913a9e

Browse files
committed
Disallow debug functions usage
1 parent 63cd01d commit 3913a9e

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,20 @@ Table::hasMany, Table::belongsToMany, Table::hasOne and AssociationCollection::l
134134
This rule check if the target behavior has a valid class when calling to Table::addBehavior and BehaviorRegistry::load.
135135

136136
### DisallowDebugFunctionsRule
137-
This rule disallow use of debug functions (dd, debug, debug_print_backtrace, debug_zval_dump, pr, print_r, stacktrace, var_dump and var_export).
137+
This rule disallow use of debug functions (`dd, debug, debug_print_backtrace, debug_zval_dump, pr, print_r, stacktrace, var_dump and var_export`).
138+
138139
The use of these functions in shipped code is discouraged because they can leak sensitive information or clutter output.
139140

141+
### DisallowDebugStaticCallRule
142+
This rule disallow use of debug methods. The use of these methods in shipped code is discouraged because they can leak sensitive information or clutter output.
143+
144+
Methods covered:
145+
146+
- Cake\Error\Debugger::dump
147+
- Cake\Error\Debugger::printVar
148+
- DebugKit\DebugSql::sql
149+
- DebugKit\DebugSql::sqld
150+
140151
### DisallowEntityArrayAccessRule
141152
This rule disallow array access to entity in favor of object notation, is easier to detect a wrong property and to refactor code.
142153

0 commit comments

Comments
 (0)