Contributing
The source is available and the repository documents a contribution process. Read CONTRIBUTING.md before starting. Discuss substantial changes in the issue tracker first.
The standard
Section titled “The standard”Keep each pull request focused on one purpose. Reproduce a bug before fixing it, verify the changed behavior, and include the validation commands and results. Preserve public interfaces unless the change includes a documented migration.
Engineering standards
Section titled “Engineering standards”Follow the rules for the branch you are changing. Check its current contributor guide and CI configuration rather than assuming both branches use the same rules.
On main, edited PHP files follow PHP-FIG PER-CS 2.0. Reformat each affected file
in a separate whitespace-only commit and check it with
tests/tools/check_php_style.sh. The lts/1.2 branch keeps upstream formatting.
Static analysis
Section titled “Static analysis”Run the checks required by the target branch. This site does not prescribe a PHPStan level, a logging interface or an autoloading migration that the repository has not adopted.
Verify the behavior changed by the patch. Include a regression case for a bug fix and show the commands used. Passing unrelated tests does not validate the fix.
Dependencies
Section titled “Dependencies”Explain why a dependency is needed, check its license, and update the appropriate manifest and lockfile. Follow the repository’s dependency and validation rules.
Commits and pull requests
Section titled “Commits and pull requests”Use Conventional Commits and sign off each commit with git commit -s under the
Developer Certificate of Origin.
Separate formatting from behavior changes so each can be reviewed independently.
The inherited tree does not meet these standards
Section titled “The inherited tree does not meet these standards”The tree contains inherited formatting and implementation patterns. Conversion is controlled by the target branch’s rules, not by a blanket rewrite of the project.
So which rule wins?
Section titled “So which rule wins?”Follow CONTRIBUTING.md on the target branch. On main, the edited-file PER-CS
rule applies; on lts/1.2, preserve the inherited style.
Documentation
Section titled “Documentation”Verify claims against the implementation and use material whose license permits its inclusion. Do not copy third-party prose without checking its license. Report security findings through the private reporting process.
Compatibility
Section titled “Compatibility”Plugin interfaces, templates, database compatibility and RRD data are release goals. Document any interface change and provide migration and compatibility evidence. See Compatibility with Cacti.
Documentation license: CC BY-SA 4.0Site code license: GPL-3.0-or-laterKadupul is not affiliated with or endorsed by The Cacti Group.
