You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/contributing/FAQ.md
+33-6
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,8 @@ limitations under the License.
27
27
-[How can I set up my development environment to contribute to stdlib?](#setup-dev-environment)
28
28
-[How can I install cppcheck?](#install-cppcheck)
29
29
-[I am seeing different return values in the JavaScript and C implementation for the same implementation.](#js-vs-c-return-values)
30
-
-[What should I do if Markdown linting on my commits fails because my headings exceed the maximum permissible length?](#markdown-heading-length)
30
+
-[What should I do if linting on my commits fails because my headings or lines exceed the maximum permissible length?](#markdown-heading-length)
31
+
-[What should I do if JavaScript linting on my commits fails because my function exceeds the maximum permissible number of parameters?](#max-params)
31
32
-[I have opened a pull request, where can I seek feedback?](#pr-feedback)
32
33
-[I need to generate fixtures for my tests. How can I do that, and what are the best references for inspiration?](#generate-fixtures)
33
34
-[I am facing a `Shadowed declaration` linting error in my C files, how can I fix it?](#shadowed-declaration)
@@ -64,8 +65,6 @@ There are primarily two options for setting up your development environment to c
64
65
65
66
Note: The dev container does not yet support ARM64 architectures. For more information, or if you're interested in adding ARM64 support, you can visit this [issue][devcontainer-issue].
66
67
67
-
TODO: Modify the dev container setup link to the exact file link once it is merged.
68
-
69
68
<aname="install-cppcheck"></a>
70
69
71
70
## How can I install cppcheck?
@@ -101,15 +100,37 @@ If they pass, adjust the tolerance and add a note to the C tests indicating that
101
100
102
101
<aname="markdown-heading-length"></a>
103
102
104
-
## What should I do if Markdown linting on my commits fails because my headings exceed the maximum permissible length?
103
+
## What should I do if linting on my commits fails because my headings or lines exceed the maximum permissible length?
104
+
105
+
Consider whether the heading/line can be shortened by renaming variables (e.g., changing `strideX` to `sx`). If shortening is not possible, disable the lint rule at the top level using:
106
+
107
+
- For JavaScript files:
105
108
106
-
Consider whether the heading can be shortened by renaming variables (e.g., changing `strideX` to `sx`). If shortening is not possible, disable the lint rule at the top level using:
109
+
```javascript
110
+
// eslint-disable-line max-len
111
+
```
112
+
113
+
[Reference Comment][javascript-len-ref]
114
+
115
+
- For Markdown files:
107
116
108
117
```markdown
109
118
<!-- lint disable maximum-heading-length -->
110
119
```
111
120
112
-
TODO: Can we add a reference PR link?
121
+
[Reference Comment][markdown-len-ref]
122
+
123
+
<aname="markdown-heading-length"></a>
124
+
125
+
## What should I do if JavaScript linting on my commits fails because my function exceeds the maximum permissible number of parameters?
126
+
127
+
Consider whether the number of parameters can be reduced. If reduction is not possible, disable the lint rule at the top level using:
128
+
129
+
```javascript
130
+
// eslint-disable-line max-params
131
+
```
132
+
133
+
[Reference Comment][javascript-params-ref]
113
134
114
135
<aname="pr-feedback"></a>
115
136
@@ -386,6 +407,12 @@ For more `make` commands, refer to the [documentation][benchmark] on running ben
0 commit comments