Showing 66 of 119 total issues
Method mouseReleased
has a Cognitive Complexity of 124 (exceeds 5 allowed). Consider refactoring. Open
public void mouseReleased (MouseEvent e) { //if the game is paused then do nothing if (!play) return;
- Read upRead up
- Create a ticketCreate a ticket
File Board.java
has 890 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* * packaging * cross platform compatibilty */
- Create a ticketCreate a ticket
Method mouseReleased
has 168 lines of code (exceeds 25 allowed). Consider refactoring. Open
public void mouseReleased (MouseEvent e) { //if the game is paused then do nothing if (!play) return;
- Create a ticketCreate a ticket
Method setUndo
has a Cognitive Complexity of 42 (exceeds 5 allowed). Consider refactoring. Open
private void setUndo() { ArrayList<Integer> xValue, yValue, pileNum, pileIndex, topIndex, tempIndex, scoreTemp; ArrayList<Boolean> showFace, inPile, inAce; ArrayList<ArrayList> l1;
- Read upRead up
- Create a ticketCreate a ticket
File SettingsPanel.java
has 413 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* panel calss to change the settings in the game * */ import java.awt.*;
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
if (pile.get(i).size() > 0 && i < 7 && e.getX() >= 200 + 63*i && e.getX() <= 200 + 63*(i+1) && e.getY() >= pile.get(i).get(pile.get(i).size()-1).getY() && e.getY() <= pile.get(i).get(pile.get(i).size()-1).getY() + 91 && pile.get(i).get(pile.get(i).size()-1).isShowFace() && pile.get(i).get(pile.get(i).size()-1).getNum() == moved.getNum() + 1 &&
- Create a ticketCreate a ticket
Method init
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
private void init(Board board) { add(board); //create menu
- Create a ticketCreate a ticket
Method undo
has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring. Open
public void undo() { //if the history is empty then do nothing if (history.size() == 0) return;
- Read upRead up
- Create a ticketCreate a ticket
Method mousePressed
has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring. Open
public void mousePressed (MouseEvent e) { //if the game is stoped do nothing if (!play) return;
- Read upRead up
- Create a ticketCreate a ticket
Method paintComponent
has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring. Open
public void paintComponent(Graphics g) { //seperate by 20 int timeY = 0, scoreY = 0, numMovesY = 0;
- Read upRead up
- Create a ticketCreate a ticket
Method setUndo
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
private void setUndo() { ArrayList<Integer> xValue, yValue, pileNum, pileIndex, topIndex, tempIndex, scoreTemp; ArrayList<Boolean> showFace, inPile, inAce; ArrayList<ArrayList> l1;
- Create a ticketCreate a ticket
Method init
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
private void init() { //initilize the settings settings(Run.x); //check if a user is logged in
- Create a ticketCreate a ticket
File Login.java
has 289 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* Frame and panels where user can log in at the begining of the game to use the desired * look and feel settings * */
- Create a ticketCreate a ticket
Method mouseClicked
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
public void mouseClicked (MouseEvent e) { //if game is stoped do nothing if (!play) return;
- Read upRead up
- Create a ticketCreate a ticket
Method paintComponent
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
public void paintComponent(Graphics g) { //seperate by 20 int timeY = 0, scoreY = 0, numMovesY = 0;
- Create a ticketCreate a ticket
Method undo
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
public void undo() { //if the history is empty then do nothing if (history.size() == 0) return;
- Create a ticketCreate a ticket
Method possibleMove
has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring. Open
private boolean possibleMove() { //if card cards that it can be placed on are in the same pile then false (same suit one below, //one above opposite suit)
- Read upRead up
- Create a ticketCreate a ticket
Method initCards
has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring. Open
public ArrayList<Card> initCards() { Card[] deck = new Card[52]; int rand, change = 0, num = 1; char suit = 'H';
- Read upRead up
- Create a ticketCreate a ticket
Method set2
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
public void set2(String[] recieve) { try{ //add new info to the array userName[len] = recieve[0];
- Create a ticketCreate a ticket
Method initCards
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
public ArrayList<Card> initCards() { Card[] deck = new Card[52]; int rand, change = 0, num = 1; char suit = 'H';
- Create a ticketCreate a ticket