-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor Architecture, OS, Vendor and TripletProfile into enums #229
base: master
Are you sure you want to change the base?
Conversation
� Conflicts: � src/main/java/com/gluonhq/substrate/ProjectConfiguration.java � src/main/java/com/gluonhq/substrate/SubstrateDispatcher.java � src/main/java/com/gluonhq/substrate/model/InternalProjectConfiguration.java � src/main/java/com/gluonhq/substrate/target/AbstractTargetConfiguration.java � src/main/java/com/gluonhq/substrate/target/DarwinTargetConfiguration.java � src/main/java/com/gluonhq/substrate/target/IosTargetConfiguration.java � src/main/java/com/gluonhq/substrate/target/LinuxTargetConfiguration.java � src/main/java/com/gluonhq/substrate/util/FileDeps.java
Here is an overview of what got changed by this pull request: Issues
======
+ Solved 3
- Added 1
Complexity increasing per file
==============================
- src/main/java/com/gluonhq/substrate/target/TripletProfile.java 7
- src/main/java/com/gluonhq/substrate/target/Architecture.java 1
- src/main/java/com/gluonhq/substrate/target/Vendor.java 1
- src/main/java/com/gluonhq/substrate/target/OS.java 5
Complexity decreasing per file
==============================
+ src/main/java/com/gluonhq/substrate/model/Triplet.java -6
See the complete overview on Codacy |
@@ -0,0 +1,42 @@ | |||
package com.gluonhq.substrate.target; | |||
|
|||
import com.gluonhq.substrate.Constants; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/** | ||
* Predefined Profiles | ||
*/ | ||
public enum TripletProfile { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This enum is actually the os-vendor combination of the triplet. I don't think we can map it like that. For example, Linux on AArch64 needs a separate profile (aarch64-linux-linux)
This for some useful methods on enums instead of using switch statements.