Opened 10 months ago

Closed 10 months ago

Last modified 9 months ago

#1453 closed defect (fixed)

Consistent formatting of C++/Java code

Reported by: dmisev Owned by: dmisev
Priority: major Milestone: 9.3
Component: undecided Version: development
Keywords: Cc: vmerticariu, bphamhuu, pbaumann
Complexity: Medium

Description (last modified by dmisev)

The rasdaman C++/Java code should be consistently formatted; this can be done with astyle. Here's a good configuration for astyle that conforms to the rasdaman code style guide:


# C++
# Java

The attached script can be used to recursively reformat all C++ and Java files in the directory from which it is executed, or a specific file.

Attachments (1) (2.4 KB) - added by dmisev 10 months ago.

Download all attachments as: .zip

Change History (4)

Changed 10 months ago by dmisev

comment:1 Changed 10 months ago by dmisev

  • Description modified (diff)

comment:2 Changed 10 months ago by bphamhuu

  • Resolution set to fixed
  • Status changed from new to closed

Dimitar already applied the patch, close ticket.

comment:3 Changed 9 months ago by pbaumann

some companies enforce formatting by using repository hooks to do a force formatting. Some of these do not trust beautifiers and, therefore, format on output (download), rather than on upload -> repo always contains what dever originally wrote, but devers get formatted code for their further work.

Note: See TracTickets for help on using tickets.