Code of Conduct
Also known as: CoC
Document setting out expected behavior, unacceptable conduct and enforcement procedures for participants in a community or project.
A code of conduct describes how participants in a community are expected to behave. In open-source projects and technology events it typically lists encouraged behavior, such as respect and constructive feedback, and unacceptable behavior, such as harassment, personal attacks and discrimination. It explains how to report problems, who handles reports and what consequences may follow. It usually applies across a project's spaces, including issue trackers, mailing lists, chat channels and in-person events.
Technology conferences began adopting anti-harassment policies in the early 2010s. In 2014 Coraline Ada Ehmke created the Contributor Covenant, a template that became one of the most widely adopted codes in open-source software. The Linux kernel adopted a code based on it in 2018, replacing an earlier and shorter document. Hosting platforms such as GitHub encourage projects to include a code of conduct alongside contribution guidelines and a license.
Supporters argue that clear expectations make communities more welcoming to newcomers and underrepresented groups and protect maintainers from abuse. Critics have raised concerns about vague wording, inconsistent enforcement and the potential for disputes to become politicized. Many practitioners agree that a code is only as effective as its enforcement process, which should be fair, confidential and consistently applied. Codes of conduct are one part of wider open-source governance and reflect older norms of hacker culture being made explicit.
Key points
- A code of conduct sets expected behavior and describes how violations are reported and handled.
- The Contributor Covenant, created in 2014, is one of the most widely used templates.
- The Linux kernel adopted a Contributor Covenant-based code in 2018.
- Effectiveness depends on fair, consistent and confidential enforcement.
Related entries
Structures and processes that determine how decisions are made, who holds authority and how conflicts are resolved in open-source projects.
Maintainer
Person or team responsible for reviewing contributions, managing releases and guiding the long-term health of a software project or package.
Hacker Culture
Subculture of people who enjoy exploring systems, solving technical problems creatively and sharing knowledge, rooted in early computing.
Open Source
Approach to software in which source code is published under a license that lets anyone inspect, modify and redistribute it.
Linux
Free and open-source Unix-like kernel created by Linus Torvalds in 1991 that underpins Android, most servers and many embedded devices.
GitHub
Web platform owned by Microsoft for hosting Git repositories and collaborating on software through pull requests, issues and automation.
Featured in guides
Referenced by
Other entries that discuss or point to Code of Conduct.