Created
September 16, 2014 21:21
-
-
Save drautb/ecf4a80906b4d9508225 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Author: Ben Draut, 2014 | |
# | |
# Options file for Artistic Style code formatter. | |
# Follows guidelines given in "The Elements of Java Style". | |
# | |
# Artistic Style: http://astyle.sourceforge.net/ | |
# Book: http://mmc.geofisica.unam.mx/utils/CyC++/Documentacion/CyC++Style/JavaStyle/The%20Elements%20of%20Java%20Style.pdf | |
# Options documentation: http://astyle.sourceforge.net/astyle.html#_Options_File | |
# Attached bracket style, Pg. 10 | |
--style=attach | |
# Use 2 spaces for indentation, Pg. 10 | |
--indent=spaces=2 | |
--convert-tabs | |
# Indent switch statements, Pg. 10 | |
--indent-switches | |
# Pad operators with spaces, Pg. 11 | |
--pad-oper | |
# Closing brackets should be on lines by themselves, Pg. 11 | |
--break-closing-brackets | |
# Lines shouldn't exceed 80 chars | |
--max-code-length=80 | |
--break-after-logical | |
# Even one-liners get brackets, | |
--add-brackets |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment