stdlib-js / stdlib-js/stdlib

Fix C lint errors

Open Beginner friendly
#13,417 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
6k
Forks
1.3k
Avg merge
1d 3h
Merged PRs (30d)
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 #".

Contributor guide

Open the contributing guide

Research direction

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.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
75/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.