lib/wpxf/modules/exploit/xss/reflected/events_made_easy_reflected_xss_shell_upload.rb
Assignment Branch Condition size for form_fields is too high. [36/15] Open
Open
def form_fields
{
'event_status' => [1, 2, 5].sample,
'event_contactperson_id' => -1,
'event_seats' => 0,
- Read upRead up
- Exclude checks
This cop checks that the ABC size of methods is not higher than the configured maximum. The ABC size is based on assignments, branches (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric
Method form_fields
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def form_fields
{
'event_status' => [1, 2, 5].sample,
'event_contactperson_id' => -1,
'event_seats' => 0,