Skip to content

Commit a78c8d4

Browse files
authored
Add vera rules to check consecutive and trailing empty lines (#3540)
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [email protected]
1 parent 563a5d9 commit a78c8d4

File tree

63 files changed

+68
-87
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+68
-87
lines changed

jerry-core/api/jerry-snapshot.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1758,7 +1758,6 @@ jerry_get_literals_from_snapshot (const uint32_t *snapshot_p, /**< input snapsho
17581758
#endif /* ENABLED (JERRY_SNAPSHOT_SAVE) */
17591759
} /* jerry_get_literals_from_snapshot */
17601760

1761-
17621761
/**
17631762
* Generate snapshot function from specified source and arguments
17641763
*

jerry-core/api/jerry.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2885,7 +2885,6 @@ jerry_objects_foreach_by_native_info (const jerry_object_native_info_t *native_i
28852885

28862886
ecma_native_pointer_t *native_pointer_p;
28872887

2888-
28892888
jmem_cpointer_t iter_cp = JERRY_CONTEXT (ecma_gc_objects_cp);
28902889

28912890
while (iter_cp != JMEM_CP_NULL)

jerry-core/config.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,6 @@
455455
# define JERRY_ATTR_GLOBAL_HEAP
456456
#endif /* !defined (JERRY_ATTR_GLOBAL_HEAP) */
457457

458-
459458
/**
460459
* Sanity check for macros to see if the values are 0 or 1
461460
*
@@ -653,7 +652,6 @@
653652
# error "Invalid value for 'JERRY_VM_EXEC_STOP' macro."
654653
#endif
655654

656-
657655
#define ENABLED(FEATURE) ((FEATURE) == 1)
658656
#define DISABLED(FEATURE) ((FEATURE) != 1)
659657

jerry-core/debugger/debugger.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,7 +1150,6 @@ jerry_debugger_receive (jerry_debugger_uint8_data_t **message_data_p) /**< [out]
11501150
}
11511151
} /* jerry_debugger_receive */
11521152

1153-
11541153
#undef JERRY_DEBUGGER_CHECK_PACKET_SIZE
11551154

11561155
/**
@@ -1214,7 +1213,6 @@ jerry_debugger_send_type (jerry_debugger_header_type_t type) /**< message type *
12141213
jerry_debugger_send (sizeof (jerry_debugger_send_type_t));
12151214
} /* jerry_debugger_send_type */
12161215

1217-
12181216
/**
12191217
* Send the type signal to the client.
12201218
*

jerry-core/ecma/base/ecma-helpers-string.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,6 @@ ecma_append_chars_to_string (ecma_string_t *string1_p, /**< base ecma-string */
676676
cesu8_string2_p,
677677
cesu8_string2_size);
678678

679-
680679
if (magic_string_id != LIT_MAGIC_STRING__COUNT)
681680
{
682681
ecma_deref_ecma_string (string1_p);

jerry-core/ecma/base/ecma-module.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ ecma_module_create_normalized_path (const uint8_t *char_p, /**< module specifier
7979
ECMA_MODULE_MAX_PATH,
8080
(char *) module_path_p);
8181

82-
8382
if (normalized_size > 0)
8483
{
8584
/* Convert the normalized path to cesu8. */

jerry-core/ecma/base/ecma-property-hashmap.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,6 @@ ecma_property_hashmap_insert (ecma_object_t *object_p, /**< object */
245245
uint32_t mask = hashmap_p->max_property_count - 1;
246246
entry_index &= mask;
247247

248-
249248
#ifndef JERRY_NDEBUG
250249
/* See the comment for this variable in ecma_property_hashmap_create. */
251250
uint32_t start_entry_index = entry_index;

jerry-core/ecma/base/ecma-property-hashmap.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ void ecma_property_hashmap_insert (ecma_object_t *object_p, ecma_string_t *name_
7272
ecma_property_hashmap_delete_status ecma_property_hashmap_delete (ecma_object_t *object_p, jmem_cpointer_t name_cp,
7373
ecma_property_t *property_p);
7474

75-
7675
ecma_property_t *ecma_property_hashmap_find (ecma_property_hashmap_t *hashmap_p, ecma_string_t *name_p,
7776
jmem_cpointer_t *property_real_name_cp);
7877
#endif /* ENABLED (JERRY_PROPRETY_HASHMAP) */

jerry-core/ecma/builtin-objects/ecma-builtin-array-prototype-unscopables.inc.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
#include "ecma-builtin-helpers-macro-defines.inc.h"
2121

22-
2322
#if ENABLED (JERRY_ES2015)
2423

2524
SIMPLE_VALUE (LIT_MAGIC_STRING_COPY_WITHIN,

jerry-core/ecma/builtin-objects/ecma-builtin-array-prototype.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1292,7 +1292,6 @@ ecma_builtin_array_prototype_object_splice (const ecma_value_t args[], /**< argu
12921292
return get_value;
12931293
}
12941294

1295-
12961295
if (ecma_is_value_found (get_value))
12971296
{
12981297
/* 9.c.ii */
@@ -1944,7 +1943,6 @@ ecma_builtin_array_prototype_object_map (ecma_value_t arg1, /**< callbackfn */
19441943
mapped_value,
19451944
ECMA_PROPERTY_CONFIGURABLE_ENUMERABLE_WRITABLE);
19461945

1947-
19481946
ecma_free_value (mapped_value);
19491947
ecma_free_value (current_value);
19501948
#if ENABLED (JERRY_ES2015)

0 commit comments

Comments
 (0)