Uploaded image for project: 'FlightPath'
  1. FlightPath
  2. FLPATH-408

Add more style checks to project's checkstyle

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Won't Do
    • Icon: Undefined Undefined
    • None
    • None
    • None

      As a developer, I'd like to verify my code matches the project's conventions.

       

      The project currently enforces only a subset of the coding convention.

       

      The coding conventions are:

      https://github.com/spring-projects/spring-framework/wiki/Code-Style

       

      The entire list is:

      https://github.com/spring-io/spring-javaformat/blob/main/spring-javaformat/spring-[…]resources/io/spring/javaformat/checkstyle/spring-checkstyle.xml

       

      The supported project list is:

      https://github.com/parodos-dev/parodos/blob/main/checkstyle.xml

       

      Some of common use-cases that should be validated are:

      • List.of() vs Arrays.asList()
      • Constant names in uppercase
      • use static import of assertion in unit-tests
      • Prefer the use of assertThat over assertNull, assertTrue...

       

      Additional checkstyle violations are listed here:

      https://checkstyle.sourceforge.io/checks.html

              Unassigned Unassigned
              rh-ee-masayag Moti Asayag
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: