Skip to content

Add formatter - #41

Merged
illuminator3 merged 65 commits into
developfrom
feature/formatter
Sep 14, 2021
Merged

illuminator3 merged 65 commits into
developfrom
feature/formatter

Conversation

@illuminator3

@illuminator3 illuminator3 commented Sep 8, 2021 •

Copy link
Copy Markdown
Contributor

The goal of this DPR is to create a formatter. An example of this would be:

public static
void main          (String[]args){
    System.out.println("Hello World"
    );
    }

should get formatted into

\`\`\`java
public static void main(String[] args) {
    System.out.println("Hello World");
}
\`\`\`

@illuminator3 illuminator3 added the enhancement New feature or request label Sep 8, 2021
@illuminator3 illuminator3 self-assigned this Sep 8, 2021
@Zabuzard

Zabuzard commented Sep 8, 2021 •

Copy link
Copy Markdown
Member

Is this a command request for the bot? I.e. actual functionality instead of meta-work?
Did we agree on a command and general code architecture already? I dont think so - just mentioning cause I dont want you to have to rewrite all your code later on again.

Related: #37

@I-Al-Istannen

Copy link
Copy Markdown
Contributor

At least most of this can be written in a way that is completely independent from the Bot (i.e. as a String -> String function) so they could be fine if they keep that in mind :)

@illuminator3

Copy link
Copy Markdown
Contributor Author

Is this a command request for the bot? I.e. actual functionality instead of meta-work?
Did we agree on a command and general code architecture already? I dont think so - just mentioning cause I dont want you to have to rewrite all your code later on again.

Related: #37

This is basically just meta work for an API

@AzatothTheAwakened

Copy link
Copy Markdown
Member

This is basically just meta work for an API

Is there any related feature issue? So everyone knows what you are doing instead of just jumping right into the code without people being able to validate the code

@AzatothTheAwakened AzatothTheAwakened left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Also missing is Javadoc, please change what I commented and resubmit it for a review.

@illuminator3

Copy link
Copy Markdown
Contributor Author

Also missing is Javadoc, please change what I commented and resubmit it for a review.

this is a draft pr, it's under heavy development and not submitted for a review yet :)

@illuminator3 illuminator3 changed the title Add formatter [WIP] Add formatter Sep 9, 2021
@illuminator3
illuminator3 marked this pull request as ready for review September 13, 2021 16:46
@illuminator3
illuminator3 dismissed stale reviews from AzatothTheAwakened and I-Al-Istannen September 13, 2021 16:47

old review

@illuminator3 illuminator3 changed the title [WIP] Add formatter Add formatter Sep 13, 2021
@Zabuzard

Copy link
Copy Markdown
Member

Why are there changes in the meta/formatting/google-style-eclipse.xml file? Is this not up2date with develop?

@illuminator3

illuminator3 commented Sep 14, 2021 •

Copy link
Copy Markdown
Contributor Author

Why are there changes in the meta/formatting/google-style-eclipse.xml file? Is this not up2date with develop?

It's up-to-date (there are no merge conflicts). I forgot you can cherry-pick, so I just copy-pasted the config from develop :P

@marko-radosavljevic marko-radosavljevic left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Good job, I like it! ☺️

What I do dislike is your usage of whitespace, so at some point I stopped commenting on that :p

Also, it's annoying that all our pipeline integrations are not working on your branch, and I know they would be failing, at least on a couple of things.. :/

@illuminator3
illuminator3 merged commit ebc06f6 into develop Sep 14, 2021
@illuminator3
illuminator3 deleted the feature/formatter branch September 14, 2021 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate code formatting system

8 participants