Skip to content

Commit

Permalink
remove autograder-hotswap/autograder-utils in favor of Feuermagier#568
Browse files Browse the repository at this point in the history
  • Loading branch information
Luro02 committed Jul 13, 2024
1 parent 76a0252 commit 396ecff
Show file tree
Hide file tree
Showing 269 changed files with 669 additions and 1,301 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
import de.firemage.autograder.cmd.output.Annotation;
import de.firemage.autograder.core.ArtemisUtil;
import de.firemage.autograder.core.CheckConfiguration;
import de.firemage.autograder.utils.CodePosition;
import de.firemage.autograder.core.CodePosition;
import de.firemage.autograder.core.Linter;
import de.firemage.autograder.core.LinterConfigurationException;
import de.firemage.autograder.utils.LinterException;
import de.firemage.autograder.utils.LinterStatus;
import de.firemage.autograder.core.LinterException;
import de.firemage.autograder.core.LinterStatus;
import de.firemage.autograder.core.Problem;
import de.firemage.autograder.utils.compiler.CompilationFailureException;
import de.firemage.autograder.utils.JavaVersion;
import de.firemage.autograder.utils.TempLocation;
import de.firemage.autograder.utils.file.UploadedFile;
import de.firemage.autograder.core.compiler.CompilationFailureException;
import de.firemage.autograder.core.JavaVersion;
import de.firemage.autograder.core.file.TempLocation;
import de.firemage.autograder.core.file.UploadedFile;
import de.firemage.autograder.span.Formatter;
import de.firemage.autograder.span.Highlight;
import de.firemage.autograder.span.Position;
Expand Down
12 changes: 7 additions & 5 deletions autograder-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@
<url>https://github.com/Feuermagier/autograder/autograder-core</url>

<dependencies>
<dependency>
<groupId>de.firemage.autograder</groupId>
<artifactId>autograder-utils</artifactId>
</dependency>

<!-- Spoon -->
<dependency>
<groupId>fr.inria.gforge.spoon</groupId>
Expand Down Expand Up @@ -63,6 +58,13 @@
<version>${slf4j.version}</version>
</dependency>

<!-- Charsets -->
<dependency>
<groupId>com.github.albfernandez</groupId>
<artifactId>juniversalchardet</artifactId>
<version>2.5.0</version>
</dependency>

<!-- Translation -->
<dependency>
<groupId>net.xyzsd.fluent</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package de.firemage.autograder.core;

import de.firemage.autograder.core.check.Check;
import de.firemage.autograder.utils.LinterStatus;
import de.firemage.autograder.utils.TempLocation;
import de.firemage.autograder.utils.file.UploadedFile;
import de.firemage.autograder.core.file.TempLocation;
import de.firemage.autograder.core.file.UploadedFile;

import java.io.IOException;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package de.firemage.autograder.utils;
package de.firemage.autograder.core;

import de.firemage.autograder.utils.file.SourceInfo;
import de.firemage.autograder.utils.integrated.MethodHierarchy;
import de.firemage.autograder.utils.integrated.MethodUtil;
import de.firemage.autograder.utils.integrated.ModelBuildException;
import de.firemage.autograder.utils.integrated.UsesFinder;
import de.firemage.autograder.core.file.SourceInfo;
import de.firemage.autograder.core.integrated.MethodHierarchy;
import de.firemage.autograder.core.integrated.MethodUtil;
import de.firemage.autograder.core.integrated.ModelBuildException;
import de.firemage.autograder.core.integrated.UsesFinder;
import spoon.Launcher;
import spoon.compiler.Environment;
import spoon.compiler.ModelBuildingException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package de.firemage.autograder.utils;
package de.firemage.autograder.core;

import de.firemage.autograder.utils.file.SourceInfo;
import de.firemage.autograder.utils.file.SourcePath;
import de.firemage.autograder.core.file.SourceInfo;
import de.firemage.autograder.core.file.SourcePath;
import spoon.reflect.code.CtAbstractSwitch;
import spoon.reflect.code.CtLoop;
import spoon.reflect.cu.SourcePosition;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package de.firemage.autograder.utils;
package de.firemage.autograder.core;

import java.util.Arrays;
import java.util.Comparator;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@

import de.firemage.autograder.core.check.Check;
import de.firemage.autograder.core.check.ExecutableCheck;
import de.firemage.autograder.utils.JavaVersion;
import de.firemage.autograder.utils.LinterException;
import de.firemage.autograder.utils.LinterStatus;
import de.firemage.autograder.utils.TempLocation;
import de.firemage.autograder.utils.Translatable;
import de.firemage.autograder.utils.file.UploadedFile;
import de.firemage.autograder.core.file.TempLocation;
import de.firemage.autograder.core.file.UploadedFile;
import de.firemage.autograder.core.parallel.AnalysisResult;
import de.firemage.autograder.core.parallel.AnalysisScheduler;
import fluent.bundle.FluentBundle;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package de.firemage.autograder.core;

import de.firemage.autograder.utils.LinterException;

public class LinterConfigurationException extends LinterException {
public LinterConfigurationException(String message) {
super(message);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package de.firemage.autograder.utils;
package de.firemage.autograder.core;

public class LinterException extends Exception {
public LinterException() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package de.firemage.autograder.utils;
package de.firemage.autograder.core;

public enum LinterStatus {
COMPILING(new LocalizedMessage("status-compiling")),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package de.firemage.autograder.utils;
package de.firemage.autograder.core;

import fluent.bundle.FluentBundle;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package de.firemage.autograder.core;

import de.firemage.autograder.utils.CodePosition;
import de.firemage.autograder.utils.LocalizedMessage;
import de.firemage.autograder.utils.Translatable;
import de.firemage.autograder.utils.file.SourcePath;
import de.firemage.autograder.core.file.SourcePath;
import org.apache.commons.io.FilenameUtils;

import java.util.Collection;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package de.firemage.autograder.core;

import de.firemage.autograder.core.check.Check;
import de.firemage.autograder.utils.CodePosition;
import de.firemage.autograder.utils.Translatable;

public interface Problem {
Check getCheck();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package de.firemage.autograder.core;

import de.firemage.autograder.core.check.Check;
import de.firemage.autograder.utils.CodePosition;
import de.firemage.autograder.utils.Translatable;

/**
* Contains the default implementation of most {@link Problem} methods.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package de.firemage.autograder.utils;
package de.firemage.autograder.core;

import de.firemage.autograder.utils.file.SourceInfo;
import de.firemage.autograder.core.file.SourceInfo;

import java.io.Serializable;
import java.nio.charset.Charset;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package de.firemage.autograder.utils;
package de.firemage.autograder.core;

import fluent.bundle.FluentBundle;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package de.firemage.autograder.core.check;

import de.firemage.autograder.core.Problem;
import de.firemage.autograder.utils.LocalizedMessage;
import de.firemage.autograder.core.LocalizedMessage;
import de.firemage.autograder.core.MultiInCodeProblem;

import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
package de.firemage.autograder.core.check.api;


import de.firemage.autograder.utils.LocalizedMessage;
import de.firemage.autograder.core.ProblemType;
import de.firemage.autograder.core.check.ExecutableCheck;
import de.firemage.autograder.core.integrated.IntegratedCheck;
import de.firemage.autograder.core.integrated.StaticAnalysis;
import de.firemage.autograder.utils.integrated.MethodUtil;
import spoon.processing.AbstractProcessor;
import spoon.reflect.code.CtInvocation;

import java.util.Map;

@ExecutableCheck(reportedProblems = { ProblemType.AVOID_STRING_CONCAT })
public class AvoidStringConcat extends IntegratedCheck {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package de.firemage.autograder.core.check.api;

import de.firemage.autograder.utils.LocalizedMessage;
import de.firemage.autograder.core.LocalizedMessage;
import de.firemage.autograder.core.ProblemType;
import de.firemage.autograder.core.check.ExecutableCheck;
import de.firemage.autograder.core.integrated.CtRange;
import de.firemage.autograder.core.integrated.IntegratedCheck;
import de.firemage.autograder.core.integrated.SpoonUtil;
import de.firemage.autograder.core.integrated.StaticAnalysis;
import de.firemage.autograder.utils.integrated.TypeUtil;
import de.firemage.autograder.core.integrated.TypeUtil;
import org.apache.commons.lang3.Range;
import spoon.processing.AbstractProcessor;
import spoon.reflect.code.BinaryOperatorKind;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package de.firemage.autograder.core.check.api;

import de.firemage.autograder.utils.LocalizedMessage;
import de.firemage.autograder.core.LocalizedMessage;
import de.firemage.autograder.core.ProblemType;
import de.firemage.autograder.core.check.ExecutableCheck;
import de.firemage.autograder.core.integrated.IntegratedCheck;
import de.firemage.autograder.core.integrated.SpoonUtil;
import de.firemage.autograder.core.integrated.StaticAnalysis;
import de.firemage.autograder.utils.integrated.TypeUtil;
import de.firemage.autograder.core.integrated.TypeUtil;
import spoon.processing.AbstractProcessor;
import spoon.reflect.code.CtAssignment;
import spoon.reflect.code.CtBreak;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package de.firemage.autograder.core.check.api;

import de.firemage.autograder.utils.LocalizedMessage;
import de.firemage.autograder.core.LocalizedMessage;
import de.firemage.autograder.core.ProblemType;
import de.firemage.autograder.core.check.ExecutableCheck;
import de.firemage.autograder.core.integrated.IntegratedCheck;
import de.firemage.autograder.core.integrated.SpoonUtil;
import de.firemage.autograder.core.integrated.StaticAnalysis;
import de.firemage.autograder.core.check.api.UseEnumValues.CtEnumFieldRead;
import de.firemage.autograder.utils.integrated.MethodUtil;
import de.firemage.autograder.utils.integrated.TypeUtil;
import de.firemage.autograder.core.integrated.MethodUtil;
import de.firemage.autograder.core.integrated.TypeUtil;
import spoon.reflect.code.CtBlock;
import spoon.reflect.code.CtExpression;
import spoon.reflect.code.CtForEach;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package de.firemage.autograder.core.check.api;

import de.firemage.autograder.utils.LocalizedMessage;
import de.firemage.autograder.core.LocalizedMessage;
import de.firemage.autograder.core.ProblemType;
import de.firemage.autograder.core.check.ExecutableCheck;
import de.firemage.autograder.core.integrated.ForLoopRange;
import de.firemage.autograder.core.integrated.IntegratedCheck;
import de.firemage.autograder.core.integrated.SpoonUtil;
import de.firemage.autograder.core.integrated.StaticAnalysis;
import de.firemage.autograder.utils.integrated.TypeUtil;
import de.firemage.autograder.core.integrated.TypeUtil;
import spoon.processing.AbstractProcessor;
import spoon.reflect.code.CtExpression;
import spoon.reflect.code.CtFor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package de.firemage.autograder.core.check.api;

import de.firemage.autograder.utils.LocalizedMessage;
import de.firemage.autograder.core.LocalizedMessage;
import de.firemage.autograder.core.ProblemType;
import de.firemage.autograder.core.check.ExecutableCheck;
import de.firemage.autograder.core.integrated.IntegratedCheck;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package de.firemage.autograder.core.check.api;

import de.firemage.autograder.utils.LocalizedMessage;
import de.firemage.autograder.core.LocalizedMessage;
import de.firemage.autograder.core.ProblemType;
import de.firemage.autograder.core.check.ExecutableCheck;
import de.firemage.autograder.core.integrated.IntegratedCheck;
import de.firemage.autograder.core.integrated.StaticAnalysis;
import de.firemage.autograder.utils.integrated.TypeUtil;
import de.firemage.autograder.core.integrated.TypeUtil;
import spoon.processing.AbstractProcessor;
import spoon.reflect.declaration.CtClass;
import spoon.reflect.declaration.CtType;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package de.firemage.autograder.core.check.api;

import de.firemage.autograder.utils.LocalizedMessage;
import de.firemage.autograder.core.LocalizedMessage;
import de.firemage.autograder.core.ProblemType;
import de.firemage.autograder.core.check.ExecutableCheck;
import de.firemage.autograder.core.integrated.IntegratedCheck;
import de.firemage.autograder.core.integrated.SpoonUtil;
import de.firemage.autograder.core.integrated.StaticAnalysis;
import de.firemage.autograder.utils.integrated.MethodUtil;
import de.firemage.autograder.utils.integrated.TypeUtil;
import de.firemage.autograder.core.integrated.MethodUtil;
import de.firemage.autograder.core.integrated.TypeUtil;
import spoon.processing.AbstractProcessor;
import spoon.reflect.code.CtBinaryOperator;
import spoon.reflect.code.CtExpression;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package de.firemage.autograder.core.check.api;

import de.firemage.autograder.utils.LocalizedMessage;
import de.firemage.autograder.core.LocalizedMessage;
import de.firemage.autograder.core.ProblemType;
import de.firemage.autograder.core.check.ExecutableCheck;
import de.firemage.autograder.core.integrated.IntegratedCheck;
import de.firemage.autograder.core.integrated.SpoonUtil;
import de.firemage.autograder.core.integrated.StaticAnalysis;
import de.firemage.autograder.utils.integrated.MethodUtil;
import de.firemage.autograder.utils.integrated.TypeUtil;
import de.firemage.autograder.core.integrated.MethodUtil;
import de.firemage.autograder.core.integrated.TypeUtil;
import spoon.reflect.code.BinaryOperatorKind;
import spoon.reflect.code.CtAssignment;
import spoon.reflect.code.CtBinaryOperator;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package de.firemage.autograder.core.check.api;

import de.firemage.autograder.utils.LocalizedMessage;
import de.firemage.autograder.core.LocalizedMessage;
import de.firemage.autograder.core.ProblemType;
import de.firemage.autograder.core.check.ExecutableCheck;
import de.firemage.autograder.core.integrated.IntegratedCheck;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package de.firemage.autograder.core.check.api;

import de.firemage.autograder.utils.LocalizedMessage;
import de.firemage.autograder.core.LocalizedMessage;
import de.firemage.autograder.core.ProblemType;
import de.firemage.autograder.core.check.ExecutableCheck;
import de.firemage.autograder.core.integrated.IntegratedCheck;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package de.firemage.autograder.core.check.api;

import de.firemage.autograder.utils.LocalizedMessage;
import de.firemage.autograder.core.LocalizedMessage;
import de.firemage.autograder.core.ProblemType;
import de.firemage.autograder.core.check.ExecutableCheck;
import de.firemage.autograder.core.integrated.IntegratedCheck;
import de.firemage.autograder.core.integrated.SpoonUtil;
import de.firemage.autograder.core.integrated.StaticAnalysis;
import de.firemage.autograder.utils.integrated.TypeUtil;
import de.firemage.autograder.core.integrated.TypeUtil;
import spoon.processing.AbstractProcessor;
import spoon.reflect.code.CtExpression;
import spoon.reflect.code.CtFieldAccess;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package de.firemage.autograder.core.check.api;

import de.firemage.autograder.utils.LocalizedMessage;
import de.firemage.autograder.core.LocalizedMessage;
import de.firemage.autograder.core.ProblemType;
import de.firemage.autograder.core.check.ExecutableCheck;

import de.firemage.autograder.core.integrated.ForLoopRange;
import de.firemage.autograder.core.integrated.IntegratedCheck;
import de.firemage.autograder.core.integrated.SpoonUtil;
import de.firemage.autograder.core.integrated.StaticAnalysis;
import de.firemage.autograder.utils.integrated.TypeUtil;
import de.firemage.autograder.core.integrated.TypeUtil;
import spoon.processing.AbstractProcessor;
import spoon.reflect.code.BinaryOperatorKind;
import spoon.reflect.code.CtExpression;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package de.firemage.autograder.core.check.api;

import de.firemage.autograder.utils.LocalizedMessage;
import de.firemage.autograder.core.LocalizedMessage;
import de.firemage.autograder.core.ProblemType;
import de.firemage.autograder.core.check.ExecutableCheck;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package de.firemage.autograder.core.check.api;

import de.firemage.autograder.utils.LocalizedMessage;
import de.firemage.autograder.core.LocalizedMessage;
import de.firemage.autograder.core.ProblemType;
import de.firemage.autograder.core.check.ExecutableCheck;
import de.firemage.autograder.core.integrated.ForLoopRange;
import de.firemage.autograder.core.integrated.IntegratedCheck;
import de.firemage.autograder.core.integrated.SpoonUtil;
import de.firemage.autograder.core.integrated.StaticAnalysis;
import de.firemage.autograder.utils.integrated.UsesFinder;
import de.firemage.autograder.core.integrated.UsesFinder;
import spoon.processing.AbstractProcessor;
import spoon.reflect.code.CtArrayWrite;
import spoon.reflect.code.CtAssignment;
Expand Down
Loading

0 comments on commit 396ecff

Please sign in to comment.