Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-2578

Add '{' on newline for function declarations in style checker

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Accepted
    • Trivial
    • Resolution: Unresolved
    • None
    • None
    • None
    • 1

    Description

      Similar to MESOS-2577; another common style mistake is to not move curly braces on a newline for function and class declarations:

      class Foo {
        void bar() {
        ...
        }
      };
      

      vs

      class Foo
      {
        void bar()
        {
        ...
        }
      };
      

      This should be easy to check with our style checker too.

      Attachments

        Activity

          People

            Unassigned Unassigned
            nnielsen Niklas Quarfot Nielsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: