|
| 1 | +# How to License |
| 2 | + |
| 3 | +This project is licensed under the BSD 3-Clause License - see the [LICENSE](LICENSE) file for details. |
| 4 | + |
| 5 | +## License Headers |
| 6 | + |
| 7 | +All source files should include the appropriate license header. For this project, use the BSD 3-Clause License header: |
| 8 | + |
| 9 | +```javascript |
| 10 | +/* |
| 11 | + * Copyright (c) 2025, Salesforce Platform |
| 12 | + * All rights reserved. |
| 13 | + * |
| 14 | + * Redistribution and use in source and binary forms, with or without |
| 15 | + * modification, are permitted provided that the following conditions are met: |
| 16 | + * |
| 17 | + * 1. Redistributions of source code must retain the above copyright notice, this |
| 18 | + * list of conditions and the following disclaimer. |
| 19 | + * |
| 20 | + * 2. Redistributions in binary form must reproduce the above copyright notice, |
| 21 | + * this list of conditions and the following disclaimer in the documentation |
| 22 | + * and/or other materials provided with the distribution. |
| 23 | + * |
| 24 | + * 3. Neither the name of the copyright holder nor the names of its |
| 25 | + * contributors may be used to endorse or promote products derived from |
| 26 | + * this software without specific prior written permission. |
| 27 | + * |
| 28 | + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| 29 | + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 30 | + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 31 | + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
| 32 | + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| 33 | + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| 34 | + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
| 35 | + * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
| 36 | + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 37 | + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 38 | + */ |
| 39 | +``` |
| 40 | + |
| 41 | +## Adding License Headers to Files |
| 42 | + |
| 43 | +When adding new source files to this project, please include the appropriate license header at the top of the file. |
| 44 | + |
| 45 | +## Third-Party Dependencies |
| 46 | + |
| 47 | +When adding third-party dependencies to this project, ensure they are compatible with the BSD 3-Clause License. Common compatible licenses include: |
| 48 | + |
| 49 | +- MIT License |
| 50 | +- Apache License 2.0 |
| 51 | +- BSD 2-Clause License |
| 52 | +- BSD 3-Clause License |
| 53 | +- ISC License |
| 54 | + |
| 55 | +If you need to add a dependency with a different license, please consult with the project maintainers to ensure compatibility. |
| 56 | + |
| 57 | +## License Compliance |
| 58 | + |
| 59 | +All contributors to this project must ensure that their contributions comply with the project's license terms. This includes: |
| 60 | + |
| 61 | +1. Ensuring all code is original or properly licensed |
| 62 | +2. Including appropriate license headers in source files |
| 63 | +3. Documenting any third-party dependencies and their licenses |
| 64 | +4. Following the terms of the BSD 3-Clause License for all contributions |
| 65 | + |
| 66 | +For questions about licensing, please contact the project maintainers or refer to the [LICENSE](LICENSE) file. |
0 commit comments