Skip to content

Java style enforcement #24

@GreyCat

Description

@GreyCat

Given that our Java codebase grows, I guess it's time to decide on a certain coding style and stick to it.

Historically, Java coding style guidelines were slightly better than total anarchy of C++, but still pretty ambiguous. As far as I understand, the only current tool which performs the enforcement is checkstyle, and it offers two options:

"Sun style" seems to be very ambiguous and checks almost nothing, and "Google style" seems to be pretty strict, but it's mandating 2 spaces indent.

I was thinking of adopting Google style with one exception of using 4 spaces indent (as it seems to be the default in most Java environments).

This will be beneficial both for this Java runtime project and kaitai_struct_gui.

@Mingun, @ams-tschoening — any ideas / preferences?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions