stdlib-js / stdlib-js/stdlib

Fix C lint errors

Ouverte Adaptée aux débutants
#13,417 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
JavaScript
Étoiles
6k
Forks
1.3k
Merge moyen
1 j 3 h
PR mergées (30 j)
611

Description

## C Linting Failures

Linting failures were detected in the automated lint workflow run.

### Workflow Details

- Run: https://github.com/stdlib-js/stdlib/actions/runs/29132267579
- Type: C Linting
- Date: 2026-07-11 00:37:01 UTC

### Error Details

```
lib/node_modules/@stdlib/ndarray/base/assert/is-contiguous/src/main.c:51:95: style: Parameter 'shape' can be declared as pointer to const [constParameterPointer]
int8_t stdlib_ndarray_is_contiguous( enum STDLIB_NDARRAY_DTYPE dtype, int64_t ndims, int64_t *shape, int64_t *strides, int64_t offset ) {
^
lib/node_modules/@stdlib/ndarray/base/assert/is-contiguous/src/main.c:51:111: style: Parameter 'strides' can be declared as pointer to const [constParameterPointer]
int8_t stdlib_ndarray_is_contiguous( enum STDLIB_NDARRAY_DTYPE dtype, int64_t ndims, int64_t *shape, int64_t *strides, int64_t offset ) {
^
```

### Pull Request Instructions

- Please use the following PR title format:
"chore: fix C lint errors (issue #)".
- Reference this issue in the "Related Issues" section of the PR body as "resolves #".

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Start with lib/node_modules/@stdlib/ndarray/base/assert/is-contiguous/src/main.c at the stdlib_ndarray_is_contiguous signature identified in workflow run 29132267579. Review the reported shape and strides constParameterPointer warnings, then run the C lint workflow or its local equivalent; done means the reported lint errors no longer occur.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
c
Domaine
tooling
Type d'issue
Bug
Difficulté
2/5
Temps estimé
1-3 heures
Activité
Calme
Clarté
Clairement spécifiée
Accessibilité débutants
75/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.