Add vera rules to check consecutive and trailing empty lines (#3540)
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai@inf.u-szeged.hu
This commit is contained in:
@@ -19,7 +19,6 @@
|
||||
|
||||
#include "ecma-builtin-helpers-macro-defines.inc.h"
|
||||
|
||||
|
||||
#if ENABLED (JERRY_ES2015)
|
||||
|
||||
SIMPLE_VALUE (LIT_MAGIC_STRING_COPY_WITHIN,
|
||||
|
||||
@@ -1292,7 +1292,6 @@ ecma_builtin_array_prototype_object_splice (const ecma_value_t args[], /**< argu
|
||||
return get_value;
|
||||
}
|
||||
|
||||
|
||||
if (ecma_is_value_found (get_value))
|
||||
{
|
||||
/* 9.c.ii */
|
||||
@@ -1944,7 +1943,6 @@ ecma_builtin_array_prototype_object_map (ecma_value_t arg1, /**< callbackfn */
|
||||
mapped_value,
|
||||
ECMA_PROPERTY_CONFIGURABLE_ENUMERABLE_WRITABLE);
|
||||
|
||||
|
||||
ecma_free_value (mapped_value);
|
||||
ecma_free_value (current_value);
|
||||
#if ENABLED (JERRY_ES2015)
|
||||
|
||||
@@ -183,7 +183,6 @@ ecma_date_parse_month_name (const lit_utf8_byte_t **str_p, /**< pointer to the c
|
||||
return 0;
|
||||
} /* ecma_date_parse_month_name */
|
||||
|
||||
|
||||
/**
|
||||
* Calculate MakeDate(MakeDay(yr, m, dt), MakeTime(h, min, s, milli)) for Date constructor and UTC
|
||||
*
|
||||
|
||||
@@ -387,7 +387,6 @@ ecma_builtin_global_object_parse_float (const lit_utf8_byte_t *string_buff, /**<
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Set end position to the end of whole part. */
|
||||
end_p = str_curr_p;
|
||||
if (str_curr_p < str_end_p)
|
||||
@@ -425,7 +424,6 @@ ecma_builtin_global_object_parse_float (const lit_utf8_byte_t *string_buff, /**<
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (str_curr_p < str_end_p)
|
||||
{
|
||||
current = *str_curr_p++;
|
||||
|
||||
@@ -146,7 +146,6 @@ OBJECT_VALUE (LIT_MAGIC_STRING_REFLECT_UL,
|
||||
ECMA_PROPERTY_CONFIGURABLE_WRITABLE)
|
||||
#endif /* ENABLED (JERRY_ES2015_BUILTIN_REFLECT) */
|
||||
|
||||
|
||||
#if ENABLED (JERRY_BUILTIN_JSON)
|
||||
/* ECMA-262 v5, 15.1.5.2 */
|
||||
OBJECT_VALUE (LIT_MAGIC_STRING_JSON_U,
|
||||
|
||||
@@ -72,4 +72,3 @@ ecma_builtin_helper_error_dispatch_call (ecma_standard_error_t error_type, /**<
|
||||
* @}
|
||||
* @}
|
||||
*/
|
||||
|
||||
|
||||
@@ -220,7 +220,6 @@ ecma_builtin_helper_get_to_locale_string_at_index (ecma_object_t *obj_p, /**< th
|
||||
|
||||
ecma_value_t index_obj_value = ecma_op_to_object (index_value);
|
||||
|
||||
|
||||
if (ECMA_IS_VALUE_ERROR (index_obj_value))
|
||||
{
|
||||
ecma_free_value (index_value);
|
||||
@@ -265,7 +264,6 @@ cleanup:
|
||||
return ret_string_p;
|
||||
} /* ecma_builtin_helper_get_to_locale_string_at_index */
|
||||
|
||||
|
||||
/**
|
||||
* The Object.keys and Object.getOwnPropertyNames routine's common part.
|
||||
*
|
||||
|
||||
@@ -444,7 +444,6 @@ ecma_builtin_math_dispatch_routine (uint16_t builtin_routine_id, /**< built-in w
|
||||
arguments_number);
|
||||
}
|
||||
|
||||
|
||||
JERRY_ASSERT (builtin_routine_id == ECMA_MATH_OBJECT_RANDOM);
|
||||
|
||||
return ecma_builtin_math_object_random ();
|
||||
|
||||
@@ -50,7 +50,6 @@ enum
|
||||
ECMA_OBJECT_PROTOTYPE_PROPERTY_IS_ENUMERABLE,
|
||||
};
|
||||
|
||||
|
||||
#define BUILTIN_INC_HEADER_NAME "ecma-builtin-object-prototype.inc.h"
|
||||
#define BUILTIN_UNDERSCORED_ID object_prototype
|
||||
#include "ecma-builtin-internal-routines-template.inc.h"
|
||||
|
||||
@@ -180,7 +180,6 @@ ecma_set_prototype_of (ecma_value_t o_value, /**< O */
|
||||
ECMA_SET_NON_NULL_POINTER (v_cp, ecma_get_object_from_value (v_value));
|
||||
}
|
||||
|
||||
|
||||
/* 3., 4. */
|
||||
if (v_cp == o_p->u2.prototype_cp)
|
||||
{
|
||||
|
||||
@@ -133,7 +133,6 @@ ecma_builtin_promise_perform_race (ecma_value_t iterator, /**< the iterator for
|
||||
JERRY_ASSERT (ecma_is_value_object (iterator)
|
||||
&& ecma_is_value_object (capability));
|
||||
|
||||
|
||||
ecma_object_t *capability_obj_p = ecma_get_object_from_value (capability);
|
||||
/* 1. */
|
||||
while (true)
|
||||
@@ -290,7 +289,6 @@ ecma_builtin_promise_all_handler (const ecma_value_t function, /**< the function
|
||||
argv[0],
|
||||
false);
|
||||
|
||||
|
||||
/* 9-10. */
|
||||
ecma_value_t ret = ECMA_VALUE_UNDEFINED;
|
||||
if (ecma_builtin_promise_remaining_inc_or_dec (remaining, false) == 0)
|
||||
|
||||
@@ -77,7 +77,6 @@ ecma_builtin_string_iterator_prototype_object_next (ecma_value_t this_val) /**<
|
||||
|
||||
JERRY_ASSERT (ecma_is_value_string (iterated_value));
|
||||
|
||||
|
||||
ecma_string_t *string_p = ecma_get_string_from_value (iterated_value);
|
||||
|
||||
/* 6. */
|
||||
|
||||
@@ -715,7 +715,6 @@ ecma_builtin_string_prototype_object_slice (ecma_string_t *get_string_val, /**<
|
||||
return ecma_make_string_value (new_str_p);
|
||||
} /* ecma_builtin_string_prototype_object_slice */
|
||||
|
||||
|
||||
/**
|
||||
* The String.prototype object's 'split' routine
|
||||
*
|
||||
|
||||
@@ -362,7 +362,6 @@ BUILTIN_ROUTINE (ECMA_BUILTIN_ID_FLOAT64ARRAY,
|
||||
float64array)
|
||||
#endif /* ENABLED (JERRY_NUMBER_TYPE_FLOAT64) */
|
||||
|
||||
|
||||
BUILTIN (ECMA_BUILTIN_ID_INT8ARRAY_PROTOTYPE,
|
||||
ECMA_OBJECT_TYPE_GENERAL,
|
||||
ECMA_BUILTIN_ID_TYPEDARRAY_PROTOTYPE,
|
||||
|
||||
@@ -332,7 +332,6 @@ ecma_builtin_typedarray_prototype_for_each (ecma_value_t this_arg, /**< this arg
|
||||
TYPEDARRAY_ROUTINE_FOREACH);
|
||||
} /* ecma_builtin_typedarray_prototype_for_each */
|
||||
|
||||
|
||||
#if ENABLED (JERRY_ES2015)
|
||||
|
||||
/**
|
||||
@@ -1743,7 +1742,6 @@ ecma_builtin_typedarray_prototype_index_of (ecma_value_t this_arg, /**< this arg
|
||||
: (uint32_t) (info.length + num_var));
|
||||
}
|
||||
|
||||
|
||||
ecma_number_t search_num = ecma_get_number_from_value (args[0]);
|
||||
|
||||
ecma_typedarray_getter_fn_t getter_cb = ecma_get_typedarray_getter_fn (info.id);
|
||||
|
||||
Reference in New Issue
Block a user