Skip to content
This repository has been archived by the owner on Jun 7, 2022. It is now read-only.

Revision and improvement of the Console #289

Merged
merged 341 commits into from
Apr 19, 2021
Merged

Revision and improvement of the Console #289

merged 341 commits into from
Apr 19, 2021

Conversation

TheMeinerLP
Copy link
Contributor

@TheMeinerLP TheMeinerLP commented Jun 29, 2020

This pull request includes:

  • breaking changes
  • no breaking changes

Changes made to the repository:

  • Added a console module to manage console inputs
  • A dynamic console registry was implemented
  • Passwords can now be entered hidden in the console
  • Command inputs like CTRL+C can be intercepted.
  • JLine3 was used as basis
  • A command history was implemented
  • An automatic command completion was implemented
  • Commands can be highlighted
  • Console settings
  • Rework of setups system
  • Logging rework

Documentation of test results:

  • Tests have not yet been carried out, as it is still in development

Related issues/discussions:

This Pull Request is a part of issue #279

@TheMeinerLP TheMeinerLP changed the title WIP: WIP: Revision and improvement of the Console Jun 29, 2020
@TheMeinerLP TheMeinerLP changed the title WIP: Revision and improvement of the Console 🚧: Revision and improvement of the Console Jun 29, 2020
@lgtm-com
Copy link

lgtm-com bot commented Aug 25, 2020

This pull request fixes 3 alerts when merging 2056589 into 1a3da44 - view on LGTM.com

fixed alerts:

  • 2 for Potential output resource leak
  • 1 for Constant loop condition

@lgtm-com
Copy link

lgtm-com bot commented Aug 25, 2020

This pull request fixes 3 alerts when merging b16f9e2 into 1a3da44 - view on LGTM.com

fixed alerts:

  • 2 for Potential output resource leak
  • 1 for Constant loop condition

@byRoadrunner byRoadrunner marked this pull request as draft August 25, 2020 12:38
@lgtm-com
Copy link

lgtm-com bot commented Aug 25, 2020

This pull request fixes 3 alerts when merging 4a5caa2 into 1a3da44 - view on LGTM.com

fixed alerts:

  • 2 for Potential output resource leak
  • 1 for Constant loop condition

Copy link
Member

@GiantTreeLP GiantTreeLP left a comment

Choose a reason for hiding this comment

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

This PR is still in draft, so this is a preliminary review.

@lgtm-com
Copy link

lgtm-com bot commented Aug 25, 2020

This pull request fixes 3 alerts when merging 7fdbbfe into 1a3da44 - view on LGTM.com

fixed alerts:

  • 2 for Potential output resource leak
  • 1 for Constant loop condition

@lgtm-com
Copy link

lgtm-com bot commented Aug 25, 2020

This pull request fixes 3 alerts when merging cc207a8 into 1a3da44 - view on LGTM.com

fixed alerts:

  • 2 for Potential output resource leak
  • 1 for Constant loop condition

@lgtm-com
Copy link

lgtm-com bot commented Aug 26, 2020

This pull request fixes 3 alerts when merging 3ab2115 into 1a3da44 - view on LGTM.com

fixed alerts:

  • 2 for Potential output resource leak
  • 1 for Constant loop condition

@lgtm-com
Copy link

lgtm-com bot commented Aug 27, 2020

This pull request introduces 1 alert and fixes 3 when merging ec7d282 into 1a3da44 - view on LGTM.com

new alerts:

  • 1 for Dereferenced variable is always null

fixed alerts:

  • 2 for Potential output resource leak
  • 1 for Constant loop condition

@TheMeinerLP TheMeinerLP marked this pull request as ready for review August 28, 2020 17:09
@lgtm-com
Copy link

lgtm-com bot commented Aug 28, 2020

This pull request fixes 3 alerts when merging ba80c66 into 1a3da44 - view on LGTM.com

fixed alerts:

  • 2 for Potential output resource leak
  • 1 for Constant loop condition

Copy link
Member

@GiantTreeLP GiantTreeLP left a comment

Choose a reason for hiding this comment

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

There is a lot to unpack. A lot of duplicate and similar code. A lot of code that's unnecessary. Please fix this and additionally your style settings.

@ghost
Copy link

ghost commented Sep 29, 2020

DeepCode's analysis on #61bc15 found:

  • ℹ️ 2 minor issues. 👇
  • ✔️ 2 issues were fixed.

Top issues

Description Example fixes
Printing the stack trace of java.lang.InterruptedException. Production code should not use printStackTrace. Occurrences: 🔧 Example fixes
Use valueOf instead of constructing a new java.lang.String. valueOf is more efficient due to caching of frequently requested values. Occurrences: 🔧 Example fixes

👉 View analysis in DeepCode’s Dashboard | Configure the bot

@ghost
Copy link

ghost commented Sep 29, 2020

DeepCode's analysis on #b22c57 found:

  • ℹ️ 2 minor issues. 👇
  • ✔️ 2 issues were fixed.

Top issues

Description Example fixes
Printing the stack trace of java.io.IOException. Production code should not use printStackTrace. Occurrences: 🔧 Example fixes
Use valueOf instead of constructing a new java.lang.String. valueOf is more efficient due to caching of frequently requested values. Occurrences: 🔧 Example fixes

👉 View analysis in DeepCode’s Dashboard | Configure the bot

@CloudNetService CloudNetService deleted a comment from GiantTreeLP Sep 29, 2020
@CloudNetService CloudNetService deleted a comment from GiantTreeLP Sep 29, 2020
@CloudNetService CloudNetService deleted a comment from GiantTreeLP Sep 29, 2020
@CloudNetService CloudNetService deleted a comment from GiantTreeLP Sep 29, 2020
@GiantTreeLP
Copy link
Member

Really? Did you even my comment about AnsiColorReplacer.java? Did you even read your own code?

You are using a(Ansi.Attribute.RESET) for every color and it doesn't even come to your mind to just simplify all calls?

I'm referring to this commit: CloudNetService/CloudNet@b22c573
Please amend it.

GiantTreeLP and others added 9 commits October 11, 2020 20:47
…ment/junit-junit-4.13.1

Bump junit from 4.13 to 4.13.1
🚧Add copyright/license headers into all source files
Remove Dytanic from files where it is not necessary or outright wrong.
Bumps `dependency.netty.version` from 4.1.52.Final to 4.1.53.Final.

Updates `netty-transport-native-epoll` from 4.1.52.Final to 4.1.53.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](netty/netty@netty-4.1.52.Final...netty-4.1.53.Final)

Updates `netty-transport-native-kqueue` from 4.1.52.Final to 4.1.53.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](netty/netty@netty-4.1.52.Final...netty-4.1.53.Final)

Updates `netty-codec` from 4.1.52.Final to 4.1.53.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](netty/netty@netty-4.1.52.Final...netty-4.1.53.Final)

Updates `netty-handler` from 4.1.52.Final to 4.1.53.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](netty/netty@netty-4.1.52.Final...netty-4.1.53.Final)

Updates `netty-codec-http` from 4.1.52.Final to 4.1.53.Final
- [Release notes](https://github.com/netty/netty/releases)
- [Commits](netty/netty@netty-4.1.52.Final...netty-4.1.53.Final)

Signed-off-by: dependabot[bot] <[email protected]>
…ment/dependency.netty.version-4.1.53.Final

Bump dependency.netty.version from 4.1.52.Final to 4.1.53.Final
Bumps [guava](https://github.com/google/guava) from 29.0-jre to 30.0-jre.
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/commits)

Signed-off-by: dependabot[bot] <[email protected]>
Copy link
Member

@GiantTreeLP GiantTreeLP left a comment

Choose a reason for hiding this comment

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

Please also take into consideration the comments made by Codacy

@lgtm-com
Copy link

lgtm-com bot commented Apr 13, 2021

This pull request introduces 1 alert and fixes 4 when merging ae7d8f2 into 71a732f - view on LGTM.com

new alerts:

  • 1 for Potential input resource leak

fixed alerts:

  • 2 for Potential output resource leak
  • 1 for Constant loop condition
  • 1 for Potential input resource leak

@GiantTreeLP
Copy link
Member

I would say, after 10 months of development, this PR is ready to merge.

@lgtm-com
Copy link

lgtm-com bot commented Apr 15, 2021

This pull request introduces 1 alert and fixes 4 when merging 3be29f0 into 71a732f - view on LGTM.com

new alerts:

  • 1 for Potential input resource leak

fixed alerts:

  • 2 for Potential output resource leak
  • 1 for Constant loop condition
  • 1 for Potential input resource leak

@lgtm-com
Copy link

lgtm-com bot commented Apr 17, 2021

This pull request introduces 2 alerts and fixes 4 when merging 89b2f90 into 71a732f - view on LGTM.com

new alerts:

  • 1 for Dereferenced variable may be null
  • 1 for Potential input resource leak

fixed alerts:

  • 2 for Potential output resource leak
  • 1 for Constant loop condition
  • 1 for Potential input resource leak

@lgtm-com
Copy link

lgtm-com bot commented Apr 17, 2021

This pull request introduces 2 alerts and fixes 4 when merging 3e2ed30 into 71a732f - view on LGTM.com

new alerts:

  • 1 for Dereferenced variable may be null
  • 1 for Potential input resource leak

fixed alerts:

  • 2 for Potential output resource leak
  • 1 for Constant loop condition
  • 1 for Potential input resource leak

@lgtm-com
Copy link

lgtm-com bot commented Apr 19, 2021

This pull request introduces 2 alerts and fixes 4 when merging c748e95 into 71a732f - view on LGTM.com

new alerts:

  • 1 for Dereferenced variable may be null
  • 1 for Potential input resource leak

fixed alerts:

  • 2 for Potential output resource leak
  • 1 for Constant loop condition
  • 1 for Potential input resource leak

@ghost
Copy link

ghost commented Apr 19, 2021

DeepCode's analysis on #8aa06c found:

  • ℹ️ 1 minor issue. 👇
  • ✔️ 5 issues were fixed.

Top issues

Description Example fixes
Printing the stack trace of java.lang.Exception. Production code should not use printStackTrace. Occurrences: 🔧 Example fixes

👉 View analysis in DeepCode’s Dashboard | Configure the bot

@lgtm-com
Copy link

lgtm-com bot commented Apr 19, 2021

This pull request introduces 2 alerts and fixes 4 when merging 8aa06c1 into 71a732f - view on LGTM.com

new alerts:

  • 1 for Dereferenced variable may be null
  • 1 for Potential input resource leak

fixed alerts:

  • 2 for Potential output resource leak
  • 1 for Constant loop condition
  • 1 for Potential input resource leak

@GiantTreeLP GiantTreeLP merged commit 1e3af60 into CloudNetService:development Apr 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants