Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indentation standard #24

Closed
ehkropf opened this issue Jul 29, 2014 · 1 comment
Closed

Indentation standard #24

ehkropf opened this issue Jul 29, 2014 · 1 comment
Assignees
Labels

Comments

@ehkropf
Copy link
Collaborator

ehkropf commented Jul 29, 2014

So for years I've used a 2-space indentation scheme because I often work on a small screen. (Don't judge me by my laptop size!) It's obvious that when indentation on an entire file changes, it is difficult to track what else has changed in that commit. I propose that I go through all the files switch them to the following standard:

  • Block indentation is to be 4-spaces.
  • Indentation follows matlab defaults except
    • on the first level of a classdef block there is no indentation, e.g., method and property blocks are flush left.
classdef abc
% Help string

properties
    property
end

methods
    function xyz(...)
        ...
    end
end

end
  • If it makes more sense in some case not to follow this standard, then don't.
@ehkropf ehkropf added the bug label Jul 29, 2014
@ehkropf ehkropf self-assigned this Jul 29, 2014
@ehkropf
Copy link
Collaborator Author

ehkropf commented Aug 4, 2014

Closing as subsumed under #27.

@ehkropf ehkropf closed this as completed Aug 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant