Skip to content

Commit 242141d

Browse files
committed
feat(lint): correcting linting for editorconfig
1 parent bba69a7 commit 242141d

File tree

13 files changed

+106
-105
lines changed

13 files changed

+106
-105
lines changed

lib/node_modules/@stdlib/random/base/tinymt32/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ var rand = tinymt32.factory({
8383
});
8484

8585
var r = rand();
86-
// returns 3008825266
86+
// returns 3211122912
8787
```
8888

8989
To return a generator having a specific initial state, set the generator `state` option.

lib/node_modules/@stdlib/random/base/tinymt32/benchmark/c/Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ c_targets := benchmark.out
9696
# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`)
9797
# @param {string} [C_COMPILER] - C compiler
9898
# @param {string} [CFLAGS] - C compiler flags
99-
# @{(string|void)} [fPIC] - compiler flag indicating whether to generate position independent code
99+
# @param {(string|void)} [fPIC] - compiler flag indicating whether to generate position independent code
100100
#
101101
# @example
102102
# make
@@ -113,12 +113,12 @@ all: $(c_targets)
113113
#
114114
# @private
115115
# @param {string} SOURCE_FILES - list of C source files
116-
# @{(string|void)} INCLUDE - list of includes (e.g., `-I /foo/bar -I /beep/boop`)
117-
# @{(string|void)} LIBRARIES - list of libraries (e.g., `-lpthread -lblas`)
118-
# @{(string|void)} LIBPATH - list of library paths (e.g., `-L /foo/bar -L /beep/boop`)
116+
# @param {(string|void)} INCLUDE - list of includes (e.g., `-I /foo/bar -I /beep/boop`)
117+
# @param {(string|void)} LIBRARIES - list of libraries (e.g., `-lpthread -lblas`)
118+
# @param {(string|void)} LIBPATH - list of library paths (e.g., `-L /foo/bar -L /beep/boop`)
119119
# @param {string} CC - C compiler
120120
# @param {string} CFLAGS - C compiler flags
121-
# @{(string|void)} fPIC - compiler flag indicating whether to generate position independent code
121+
# @param {(string|void)} fPIC - compiler flag indicating whether to generate position independent code
122122
#/
123123
$(c_targets): %.out: %.c
124124
$(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES)

lib/node_modules/@stdlib/random/base/tinymt32/benchmark/c/benchmark.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2018 The Stdlib Authors.
4+
* Copyright (c) 2025 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
{
2-
"options": {},
3-
"fields": [
4-
{
5-
"field": "src",
6-
"resolve": true,
7-
"relative": true
8-
},
9-
{
10-
"field": "include",
11-
"resolve": true,
12-
"relative": true
13-
},
14-
{
15-
"field": "libraries",
16-
"resolve": false,
17-
"relative": false
18-
},
19-
{
20-
"field": "libpath",
21-
"resolve": true,
22-
"relative": false
23-
}
24-
],
25-
"confs": [
26-
{
27-
"src": [
28-
"./src/main.c"
29-
],
30-
"include": [
31-
"./include"
32-
],
33-
"libraries": [],
34-
"libpath": [],
35-
"dependencies": [
36-
"@stdlib/random/base/shared"
37-
]
38-
}
39-
]
2+
"options": {},
3+
"fields": [
4+
{
5+
"field": "src",
6+
"resolve": true,
7+
"relative": true
8+
},
9+
{
10+
"field": "include",
11+
"resolve": true,
12+
"relative": true
13+
},
14+
{
15+
"field": "libraries",
16+
"resolve": false,
17+
"relative": false
18+
},
19+
{
20+
"field": "libpath",
21+
"resolve": true,
22+
"relative": false
23+
}
24+
],
25+
"confs": [
26+
{
27+
"src": [
28+
"./src/main.c"
29+
],
30+
"include": [
31+
"./include"
32+
],
33+
"libraries": [],
34+
"libpath": [],
35+
"dependencies": [
36+
"@stdlib/random/base/shared"
37+
]
38+
}
39+
]
4040
}

lib/node_modules/@stdlib/random/base/tinymt32/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"example": "./examples",
2121
"include": "./include",
2222
"lib": "./lib",
23+
"src": "./src",
2324
"test": "./test"
2425
},
2526
"types": "./docs/types",

lib/node_modules/@stdlib/random/base/tinymt32/src/main.c

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -259,22 +259,22 @@ static inline void tinymt32_free( struct BasePRNGObject *obj ) {
259259
*/
260260
static inline void next_state( stdlib_base_random_tinymt32_state_t *random ) {
261261
uint32_t x;
262-
uint32_t y;
263-
264-
y = random->state[3];
265-
x = (random->state[0] & TINYMT32_MASK)
266-
^ random->state[1]
267-
^ random->state[2];
268-
x ^= (x << TINYMT32_SH0);
269-
y ^= (y >> TINYMT32_SH0) ^ x;
270-
random->state[0] = random->state[1];
271-
random->state[1] = random->state[2];
272-
random->state[2] = x ^ (y << TINYMT32_SH1);
273-
random->state[3] = y;
274-
int32_t const a = -((int32_t)(y & 1)) & (int32_t)random->mat1;
275-
int32_t const b = -((int32_t)(y & 1)) & (int32_t)random->mat2;
276-
random->state[1] ^= (uint32_t)a;
277-
random->state[2] ^= (uint32_t)b;
262+
uint32_t y;
263+
264+
y = random->state[3];
265+
x = (random->state[0] & TINYMT32_MASK)
266+
^ random->state[1]
267+
^ random->state[2];
268+
x ^= (x << TINYMT32_SH0);
269+
y ^= (y >> TINYMT32_SH0) ^ x;
270+
random->state[0] = random->state[1];
271+
random->state[1] = random->state[2];
272+
random->state[2] = x ^ (y << TINYMT32_SH1);
273+
random->state[3] = y;
274+
int32_t const a = -((int32_t)(y & 1)) & (int32_t)random->mat1;
275+
int32_t const b = -((int32_t)(y & 1)) & (int32_t)random->mat2;
276+
random->state[1] ^= (uint32_t)a;
277+
random->state[2] ^= (uint32_t)b;
278278
}
279279

280280
/**

lib/node_modules/@stdlib/random/base/tinymt32/test/fixtures/c/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#/
22
# @license Apache-2.0
33
#
4-
# Copyright (c) 2018 The Stdlib Authors.
4+
# Copyright (c) 2025 The Stdlib Authors.
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.

lib/node_modules/@stdlib/random/base/tinymt32/test/fixtures/c/float64_array_seed.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

lib/node_modules/@stdlib/random/base/tinymt32/test/fixtures/c/float64_integer_seed.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

lib/node_modules/@stdlib/random/base/tinymt32/test/fixtures/c/runner.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2018 The Stdlib Authors.
4+
* Copyright (c) 2025 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)