Convert QL classes for Lastaflute to MaD

This commit is contained in:
Ed Minnix
2024-07-18 17:39:51 -04:00
parent 9713551448
commit 0990a370c7
3 changed files with 6 additions and 27 deletions

View File

@@ -0,0 +1,6 @@
extensions:
- addsTo:
pack: codeql/java-all
extensible: sourceModel
data:
- ["org.lastaflute.web", "Execute", False, "", "", "Annotated", "Parameter", "remote", "manual"]

View File

@@ -20,7 +20,6 @@ import semmle.code.java.frameworks.android.Android
import semmle.code.java.frameworks.android.ExternalStorage
import semmle.code.java.frameworks.android.OnActivityResultSource
import semmle.code.java.frameworks.android.Intent
private import semmle.code.java.frameworks.Lastaflute
import semmle.code.java.frameworks.play.Play
import semmle.code.java.frameworks.spring.SpringWeb
import semmle.code.java.frameworks.spring.SpringController

View File

@@ -1,26 +0,0 @@
/**
* Provides classes and predicates for working with the Lastaflute web framework.
*/
import java
import semmle.code.java.dataflow.FlowSources
/**
* The `org.lastaflute.web.Execute` annotation.
*/
class LastafluteExecuteAnnotation extends Annotation {
LastafluteExecuteAnnotation() { this.getType().hasQualifiedName("org.lastaflute.web", "Execute") }
}
/**
* The parameter of a method defining a URL handler using the Lastaflute framework.
*/
class LastafluteHandlerParameterSource extends RemoteFlowSource {
LastafluteHandlerParameterSource() {
exists(Parameter p | p.getCallable().getAnAnnotation() instanceof LastafluteExecuteAnnotation |
p = this.asParameter()
)
}
override string getSourceType() { result = "Lastaflute handler parameter" }
}