Skip to content
This repository has been archived by the owner on Dec 9, 2023. It is now read-only.

magicDGS/styleguide

Repository files navigation

Style Guides for magicDGS projects

This repository contains style guides for code in my projects, to facilitate formatting with different IDEs for contributors and to maintain consistency in my code.

They are based in the Google Style Guide for Java, with the following changes (mandatory):

  • Blocks of non-static imports ordering:
    1. org.magicdgs.*
    2. other packages in alphabetical order
    3. java.* and javax.*
  • Indentation:
    • +4 spaces for new blocks
    • Double spacing for continuation blocks
    • No alignment in multi-line statements
  • Line-wrapping:
    • Enum constants are always wrapped
    • Annotations are always wrapped, but not the parameters even if they exceed the line limit
  • Javadoc:
    • At-clauses descriptions are aligned
    • Blank lines after description, @param and @return

SETTING UP IDE

LICENSE

This files are licensed under the CC-By 3.0 License, as the starting templates from the Google styleguide repository.

Creative Commons License

About

Style guide for magicdgs projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published