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
When contributing to ScanCode (such as code, bugs, documentation, etc.) you
15
15
agree to the Developer `Certificate of Origin <http://developercertificate.org/>`_
16
16
and the ScanCode license (see the `NOTICE <https://github.com/nexB/scancode-toolkit/blob/develop/NOTICE>`_ file).
17
-
The same approach is used by the Linux Kernel developers and several other projects.
17
+
The same approach is used by Linux Kernel developers and several other projects.
18
18
19
19
For commits, it is best to simply add a line like this to your commit message,
20
20
with your name and email::
21
21
22
22
Signed-off-by: Jane Doe <developer@example.com>
23
23
24
24
Please try to write a good commit message, see `good commit message wiki
25
-
<https://aboutcode.readthedocs.io/en/latest/contributing/writing_good_commit_messages.html>` for
25
+
<https://aboutcode.readthedocs.io/en/latest/contributing/writing_good_commit_messages.html>`_ for
26
26
details. In particular use the imperative for your commit subject: think that
27
27
you are giving an order to the codebase to update itself.
28
28
@@ -35,7 +35,7 @@ To send feedback or ask a question, `file an issue <issues_>`_
35
35
If you are proposing a feature:
36
36
37
37
* Explain how it would work.
38
-
* Keep the scope simple possible to make it easier to implement.
38
+
* Keep the scope as simple as possible to make it easier to implement.
39
39
* Remember that your contributions are welcomed to implement this feature!
40
40
41
41
@@ -54,23 +54,21 @@ For other questions, discussions, and chats, we have:
54
54
This is a busy place with a lot of CI and commit notifications that makes
55
55
actual chat sometimes difficult!
56
56
57
-
- a mailing list at `sourceforge <https://lists.sourceforge.net/lists/listinfo/aboutcode-discuss>`_
58
-
59
57
- a Gitter channel to discuss Documentation at https://gitter.im/aboutcode-org/gsod-season-of-docs
60
58
61
59
Bug reports
62
60
===========
63
61
64
62
When `reporting a bug`__ please include:
65
63
66
-
* Your operating system name, version and architecture (32 or 64 bits).
64
+
* Your operating system name, version, and architecture (32 or 64 bits).
67
65
* Your Python version.
68
66
* Your ScanCode version.
69
67
* Any additional details about your local setup that might be helpful to
70
68
diagnose this bug.
71
69
* Detailed steps to reproduce the bug, such as the commands you ran and a link
72
70
to the code you are scanning.
73
-
* The errors messages or failure trace if any.
71
+
* The error messages or failure trace if any.
74
72
* If helpful, you can add a screenshot as an issue attachment when relevant or
75
73
some extra file as a link to a `Gist <https://gist.github.com>`_.
76
74
@@ -83,11 +81,11 @@ any other general upgrades, etc. Even a minor typo fix is welcomed.
83
81
84
82
If something is missing in the documentation or if you found some part confusing,
85
83
please file an issue with your suggestions for improvement. Use the “Documentation Improvement”
86
-
template. Your help and contributions makes ScanCode docs better, we love hearing from you!
84
+
template. Your help and contribution make ScanCode docs better, we love hearing from you!
87
85
88
86
The ScanCode documentation is hosted at `scancode-toolkit.readthedocs.io <https://scancode-toolkit.readthedocs.io/en/latest/>`_.
89
87
90
-
If you want to contribute to Scancode Dcoumentation, you'll find `this guide here <https://scancode-toolkit.readthedocs.io/en/latest/contribute/contrib_doc.html>`_ helpful.
88
+
If you want to contribute to Scancode Documentation, you'll find `this guide here <https://scancode-toolkit.readthedocs.io/en/latest/contribute/contrib_doc.html>`_ helpful.
91
89
92
90
Development
93
91
===========
@@ -124,11 +122,13 @@ To set up ScanCode for local development:
124
122
3. Create a branch for local development::
125
123
126
124
git checkout -b name-of-your-bugfix-or-feature
125
+
126
+
4. Check out the Contributing to Code Development `documentation <https://scancode-toolkit.readthedocs.io/en/stable/contribute/contrib_dev.html>`_, as it contains more in-depth guide for contributing code and documentation.
127
127
128
-
4. To configure your local environment for development, locate to the main
129
-
directory of the local repository, run the configure script.
128
+
5. To configure your local environment for development, locate to the main
129
+
directory of the local repository, and run the configure script.
130
130
The configure script creates an isolated Python `virtual environment` in
131
-
your checkout directory, the Python `pip` tool, and installs the thirdparty
131
+
your checkout directory, the Python `pip` tool, and installs the third-party
132
132
libraries (from the `thirdparty/ directory`), setup the paths, etc.
133
133
See https://virtualenv.pypa.io/en/latest/ for more details.
134
134
@@ -157,10 +157,20 @@ To set up ScanCode for local development:
157
157
When you pull new code from git, rerun ./configure
158
158
159
159
160
-
5. Now you can make your code changes in your local clone.
160
+
6. Now you can make your code changes in your local clone.
161
161
Please create new unit tests for your code. We love tests!
162
162
163
-
6. When you are done with your changes, run all the tests.
163
+
7. An update to the ``CHANGELOG`` is required if any important changes are made that needs to be communicated such as:
164
+
165
+
* Changes in the API.
166
+
167
+
* Addition or deletion of CLI options.
168
+
169
+
* Addition of any new feature or any other miscellaneous changes to the program.
170
+
171
+
8. If there is a code change, a significant document, or any other changes, you must update the ``AUTHORS`` to include your own name.
172
+
173
+
9. When you are done with your changes, run all the tests.
164
174
Use this command::
165
175
166
176
py.test
@@ -169,7 +179,7 @@ To set up ScanCode for local development:
169
179
170
180
py.test -n6
171
181
172
-
If you are running this on a RedHatbased OS you may come across this
182
+
If you are running this on a RedHat-based OS you may come across this
173
183
failure::
174
184
175
185
OSError: libbz2.so.1.0: cannot open shared object file: No such file or directory
@@ -182,18 +192,18 @@ To set up ScanCode for local development:
182
192
183
193
See `this issue <https://github.com/nexB/scancode-toolkit/issues/443>`_ for more information.
184
194
185
-
7. Check the status of your local repository before commit, regarding files changed::
195
+
10. Check the status of your local repository before committing, regarding files changed::
186
196
187
-
git status
197
+
git status
188
198
189
199
190
-
8. Commit your changes and push your branch to your GitHub fork::
200
+
11. Commit your changes and push your branch to your GitHub fork::
0 commit comments