This is example repository for testing git-typo-hunter
tool. It contain sample code files in various programming language, each demonstrate different comment style and documentation practice.
- Multiple Programming Languages: Include example code in 13 different programming language
- Comprehensive Comment Styles: Demonstrate various commenting technique including:
- Single-line comments
- Multi-line block comments
- Documentation comments
- Module/Package level documentation
- TODO and FIXME annotations
- Consistent Structure: Each file implement simple "Greeter" class/module with similar functionality
- Documentation Examples: Show best practice for code documentation in each language
- Type Safety: Where applicable, include type annotation and interfaces
- Modern Syntax: Use modern language feature and string interpolation
Here are example of how comments look in different languages:
// Single-line comment
/* Multi-line
block comment */
# Single-line comment
"""
Multi-line docstring
Documentation comment
"""
// Single-line comment
/* Multi-line
block comment */
/** JavaDoc
* documentation comment
*/
// Single-line comment
/* Multi-line
block comment */
/// XML documentation comment
# Single-line comment
=begin
Multi-line
comment block
=end
// Single-line comment
# Alternative single-line
/* Multi-line
block comment */
/** PHPDoc comment */
// Single-line comment
/* Multi-line
block comment */
/// Documentation comment
// MARK: - Section marker
// Single-line comment
/* Multi-line
block comment */
/** TSDoc documentation */
// Single-line comment
/* Multi-line
block comment */
/** KDoc documentation */
// Single-line comment
/* Multi-line
block comment */
/** Scaladoc comment */
// Single-line comment
/* Multi-line
block comment */
/// Documentation comment
-- Single line comment
{- Multi-line
block comment -}
-- | Documentation comment
# Single-line comment
=pod
POD documentation
block
=cut