Skip to content

Conversation

euchangxian
Copy link
Collaborator

Existing checkstyle configuration is too restrictive. Changed to that of CS2103T, which would be more familiar to maintainers and collaborators. Also, modified the configuration to ignore a few conventions.

  • Package Name. Ideally, package names should be in lowercase, but existing package names are in camelCase. Since there are many existing camelCase-d package names, and it does not cause name-space issues, I removed it.

  • Misc Conventions. I removed the need to group overloaded methods together.

Notes:
For data classes like Nodes etc, fields should still be private, with public getters/setters.

For class names, must be in PascalCase e.g. DepthFirstSearch and not camelCase depthFirstSearch.

- Checkstyle configurations taken from CS2103T.

NOTE:
  PackageName check is disabled, until I can figure out a REGEX that
  accomodates the current camelCase package names. Otherwise, a change
  to the package names to adhere to conventions can be done too.
- Increase length of allowable consecutive capital letters.
- Remove requirement to group overloaded methods together.
- Test package rename to align with checkstyle fixes.
Copy link
Owner

@4ndrelim 4ndrelim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the changes Chang Xian!

@4ndrelim 4ndrelim merged commit 0c83137 into 4ndrelim:main Jan 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants