mirror of
https://github.com/sockspls/badfish
synced 2025-04-29 16:23:09 +00:00

clang-format-18 is available in ubuntu noble(24.04), if you are on a version lower than that you can use the update script from llvm. https://apt.llvm.org/ Windows users should be able to download and use clang-format from their release builds https://github.com/llvm/llvm-project/releases or get the latest from msys2 https://packages.msys2.org/package/mingw-w64-x86_64-clang. macOS users can resort to "brew install clang-format". closes https://github.com/official-stockfish/Stockfish/pull/5365 No functional change
97 lines
3.7 KiB
Markdown
97 lines
3.7 KiB
Markdown
# Contributing to Stockfish
|
|
|
|
Welcome to the Stockfish project! We are excited that you are interested in
|
|
contributing. This document outlines the guidelines and steps to follow when
|
|
making contributions to Stockfish.
|
|
|
|
## Table of Contents
|
|
|
|
- [Building Stockfish](#building-stockfish)
|
|
- [Making Contributions](#making-contributions)
|
|
- [Reporting Issues](#reporting-issues)
|
|
- [Submitting Pull Requests](#submitting-pull-requests)
|
|
- [Code Style](#code-style)
|
|
- [Community and Communication](#community-and-communication)
|
|
- [License](#license)
|
|
|
|
## Building Stockfish
|
|
|
|
In case you do not have a C++ compiler installed, you can follow the
|
|
instructions from our wiki.
|
|
|
|
- [Ubuntu][ubuntu-compiling-link]
|
|
- [Windows][windows-compiling-link]
|
|
- [macOS][macos-compiling-link]
|
|
|
|
## Making Contributions
|
|
|
|
### Reporting Issues
|
|
|
|
If you find a bug, please open an issue on the
|
|
[issue tracker][issue-tracker-link]. Be sure to include relevant information
|
|
like your operating system, build environment, and a detailed description of the
|
|
problem.
|
|
|
|
_Please note that Stockfish's development is not focused on adding new features.
|
|
Thus any issue regarding missing features will potentially be closed without
|
|
further discussion._
|
|
|
|
### Submitting Pull Requests
|
|
|
|
- Functional changes need to be tested on fishtest. See
|
|
[Creating my First Test][creating-my-first-test] for more details.
|
|
The accompanying pull request should include a link to the test results and
|
|
the new bench.
|
|
|
|
- Non-functional changes (e.g. refactoring, code style, documentation) do not
|
|
need to be tested on fishtest, unless they might impact performance.
|
|
|
|
- Provide a clear and concise description of the changes in the pull request
|
|
description.
|
|
|
|
_First time contributors should add their name to [AUTHORS](../AUTHORS)._
|
|
|
|
_Stockfish's development is not focused on adding new features. Thus any pull
|
|
request introducing new features will potentially be closed without further
|
|
discussion._
|
|
|
|
## Code Style
|
|
|
|
Changes to Stockfish C++ code should respect our coding style defined by
|
|
[.clang-format](.clang-format). You can format your changes by running
|
|
`make format`. This requires clang-format version 18 to be installed on your system.
|
|
|
|
## Navigate
|
|
|
|
For experienced Git users who frequently use git blame, it is recommended to
|
|
configure the blame.ignoreRevsFile setting.
|
|
This setting is useful for excluding noisy formatting commits.
|
|
|
|
```bash
|
|
git config blame.ignoreRevsFile .git-blame-ignore-revs
|
|
```
|
|
|
|
## Community and Communication
|
|
|
|
- Join the [Stockfish discord][discord-link] to discuss ideas, issues, and
|
|
development.
|
|
- Participate in the [Stockfish GitHub discussions][discussions-link] for
|
|
broader conversations.
|
|
|
|
## License
|
|
|
|
By contributing to Stockfish, you agree that your contributions will be licensed
|
|
under the GNU General Public License v3.0. See [Copying.txt][copying-link] for
|
|
more details.
|
|
|
|
Thank you for contributing to Stockfish and helping us make it even better!
|
|
|
|
|
|
[copying-link]: https://github.com/official-stockfish/Stockfish/blob/master/Copying.txt
|
|
[discord-link]: https://discord.gg/GWDRS3kU6R
|
|
[discussions-link]: https://github.com/official-stockfish/Stockfish/discussions/new
|
|
[creating-my-first-test]: https://github.com/official-stockfish/fishtest/wiki/Creating-my-first-test#create-your-test
|
|
[issue-tracker-link]: https://github.com/official-stockfish/Stockfish/issues
|
|
[ubuntu-compiling-link]: https://github.com/official-stockfish/Stockfish/wiki/Developers#user-content-installing-a-compiler-1
|
|
[windows-compiling-link]: https://github.com/official-stockfish/Stockfish/wiki/Developers#user-content-installing-a-compiler
|
|
[macos-compiling-link]: https://github.com/official-stockfish/Stockfish/wiki/Developers#user-content-installing-a-compiler-2
|