Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-957

Modify codestyle formatter to allow turning off the formatter

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5.0
    • Component/s: None
    • Labels:
      None

      Description

      The setting, "org.eclipse.jdt.core.formatter.use_on_off_tags" should be set to value "true" in the codestyle xml file for Eclipse.

      This enables overriding the formatter for specific blocks where the automatic formatter doesn't produce easy to read code. This should be used sparingly, so it doesn't allow constant circumvention of established standards.

      <setting id="org.eclipse.jdt.core.formatter.use_on_off_tags" value="true"/>
      

      allows

        /* @formatter:off */
          int a=1, // formatter
              b=2, // is
              c=3, // off
              d=4; // for now
        /* @formatter:on */
      

      The above is not a good example, but it demonstrates what this ticket is about. It would require users to update their codestyle settings in Eclipse.

        Attachments

          Activity

            People

            • Assignee:
              ctubbsii Christopher Tubbs
              Reporter:
              ctubbsii Christopher Tubbs
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1m
                1m
                Remaining:
                Remaining Estimate - 1m
                1m
                Logged:
                Time Spent - Not Specified
                Not Specified