justrelease's People
justrelease's Issues
Code quality improvement tips
Sorry if I'm a bit harsh, but I'm a bit tired.
I'm not going to point everything that bothers me, just the basic stuff.
Don't hesitate abusing private fields =) Like here for instance.
The code needs some cleaning-up here, you can either replace it with a else
, or exit the method (much better).
Your code needs some more cleaning as the #release
method is way too complex (too many lines, refactorable code, etc.).
In this file, you should not try-catch, and display the help (and then exit with the system helper), just throw it with a nice message (if the user wants help, I guess he/she can type one more line in the shell).
The code needs refactoring, just search for the 'cmd' in the same file (a bad word, you should use 'command') word, and try to make the occurrences nearer to each other.
In this file, releaseConfig
needs to be hidden!
In the MavenProject class, you use a setter on a field belonging to an abstract class extended by MavenProject. Even if it has no visible incidence, it is considered bad practice...
To sum up (I didn't go through every file):
- Don't use the default visibility in concrete ( != interface) classes;
- Use consistent styling (the
{}
either need to be put after every if/for/etc instructions everywhere, or no where, just be consistent); - Use private methods (or delegate) to make your methods lighter.
I suggest you use Sonar as it can help you with code quality.
By the way, your project looks promising, and I'll test it when I can!
Developers
Is @bilalyasar alive?
convert logging messages to system.out
adding artifact upload feature
so that people can upload their zips, jars, artifacts etc to their server.
yaml configuration should be as simple as possible.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.