Questions tagged [jqassistant]

jQAssistant is an open source source code analytics tool that scans various aspects of a (java based) software project into a graph database (neo4j). It makes the raw data available for analytics and querying with Cypher but also allows to enrich the graph with higher level concepts. Features a plugin architecture and build integration. See: http://jqassistant.org

Filter by
Sorted by
Tagged with
0 votes
0 answers
5 views

jQAssistant Scanner for Method Parameter

I am currently struggeling with the development of an custom jQAssistant Scanner. Background: public class MyEntityDAOImpl { public MyEntity getMyEntity(){ final TypedQuery<MyEntity> query = ...
Patrick Nit's user avatar
0 votes
1 answer
36 views

How to run mvn jqassistant:report via pom.xml?

I am trying to configure jqassistant-maven-plugin version 2.0.7 in my pom.xml. Specifically, I want to create the report generated by the command mvn jqassistant:report. I thought I could simply add a ...
Gandora's user avatar
  • 195
0 votes
1 answer
41 views

jQAssistant analysis to find microservices and their clients

I'm following https://github.com/graphaware/fix-your-microservices to scan and identify the Micro services and their respective consumers to identify if there are any circular dependencies in my ...
Venkat's user avatar
  • 1,264
0 votes
1 answer
54 views

jQassistant assessment failing with multiple projects

I'm using jqassistant-maven-plugin version 1.10.1 with common Neo4j database and am trying to collate scanning from multiple Spring boot based java applications. I've disabled reset database so that I ...
Venkat's user avatar
  • 1,264
0 votes
1 answer
32 views

jqassistant tool how query java method belongs to class

I am using a Java plugin and I am querying the calling link of a java method to find out which java class the method belongs to, how to query that, or which property identifier it belongs to. For ...
shangqing liu's user avatar
3 votes
1 answer
98 views

JQassistant commandline report task is not generating asciidoc html files

Love the idea behind this tool, but I'm struggling with the documentation. I am trying to generate a report of jar files using the commandline. When I run ./bin/jqassistant.sh: scan, I see the ...
Pebbz's user avatar
  • 31
1 vote
1 answer
77 views

How to use javaparser plugin of JQAssistant?

I'm trying to use javaparser plugin of JQAssistant using command line. I have done the following: Copied "jqassistant.plugin.javaparser-1.8.0.jar" to "plugin" folder. I also ...
hmozaffari's user avatar
1 vote
1 answer
76 views

How to scan multiple Git repositories with JQAssistant Git plugin in one shot?

I have a situation with structure bellow and Git plugin plus property file scanner. There are N Git repositories under "Parent_Directory". I am not able to scan "Parent_Directory" ...
hmozaffari's user avatar
1 vote
0 answers
69 views

How to use git plugin in JQAssistant command line?

Paragraph below mentioned we can use git plugin in JQAssistant commmand line: If you want to add the git plugins to your jQAssistant downloaded commandline installation you currently have to manually ...
hmozaffari's user avatar
0 votes
1 answer
61 views

Analyze Java loops in jQAssistant

I would like to create a constraint that looks for database calls made inside Java loops (while, for, lambda) and their related code sections. Mainly to optimize the performance of the application in ...
Robin Steinwarz's user avatar
0 votes
0 answers
39 views

Is it possible to run jQAssistant Dashboard on a standalone Neo4J server?

We have an external Neo4J database running as service. Can I install the jQAssistant Dashboard onto that server?
eerriicc's user avatar
  • 1,134
1 vote
1 answer
50 views

Should jQAssistant's EJB3 plugin create the Concepts listed in the manual?

I'm trying a couple of jQAssistant plugins, in this case the EJB3 plugin. I think I haven't grasped the idea of Concepts. I was expecting Node labels like "Ejb", "Local" and "...
eerriicc's user avatar
  • 1,134
0 votes
0 answers
85 views

jQAssistant: com.sun.proxy.$Proxy134 cannot be cast to com.buschmais.jqassistant.plugin.java.api.model.generics.TypeVariableDescriptor

I'm scanning our software every night and saving to an external Neo4J database. In one Maven module, I get a lot of errors like this: [WARNING] Cannot scan class '/foo/bar/util/dao/crud/Readers.class'...
eerriicc's user avatar
  • 1,134
0 votes
1 answer
77 views

jQAssistant: Can't reset external Neo4J store - why?

I'm running jQAssistant with an external Neo4J database. I want to collect the data of our projects and keep them externally for queries. To do that, I reset the store just before scanning the ...
eerriicc's user avatar
  • 1,134
0 votes
1 answer
75 views

Why does jQAssistent scanning fail?

I'm scanning our software every night with the jQAssistant Maven plugin. If the Neo4J database is empty, everything is ok. But later, I get a lot of errors: 00:00:44.150 [WARNING] [0x14d108ce][...
eerriicc's user avatar
  • 1,134
1 vote
1 answer
246 views

How to differentiate between "Direct" and "Indirect" dependencies in jQAssistant

To illustrate my issue, I created a minimal, fictional example project which consists of three classes, Service, Transaction and Product. P package org.example; public class Service { public ...
Michael Osl's user avatar
  • 2,720
0 votes
1 answer
113 views

jqassistant-maven-plugin: cannot connect browser to embedded Neo4j

Note: There are already similar questions, but the solutions do not work for the jqassistant-maven-plugin. I am facing an issue on a new client site, where I would like to view the Neo4j contents ...
lostiniceland's user avatar
1 vote
1 answer
139 views

Is there a tool like JQAssistant for Typescript

I'm currently working on code analysis and using this tool https://jqassistant.org/ to query the code of a Java application, I'm able right now to query all the feign clients and relationships between ...
user2774833's user avatar
0 votes
2 answers
125 views

jQAssistant: How does the store reset work?

I want to use jQAssistant for our team. I installed it according to https://101.jqassistant.org/setting-up-a-team-server/index.html , so I have an external Neo4j store that is running independently of ...
eerriicc's user avatar
  • 1,134
0 votes
0 answers
107 views

jQAssistant: org.neo4j.driver.exceptions.ClientException: Unable to convert [C to Neo4j Value - known error?

I'm starting with jQAssist scanning (version 1.9.1). Most of the Maven projects can be scanned without problem, but there is a problem with some tests. I get this stack trace: [WARNING] Cannot scan ...
eerriicc's user avatar
  • 1,134
0 votes
1 answer
255 views

Simple working example of java rules check

I fail to find out how to set up jqassistant-maven-plugin to verify the rules in the java plugin on a multi-module maven project. There is not a lot in the jqassistant documentation about how to ...
Marc's user avatar
  • 83
1 vote
1 answer
63 views

is it possible to use jqassistant output with graphlytic?

I'm currently struggling with circular dependencies and wanted to see all classes that are dependant on my desired class transitively. I figured jqassistant is a tool to go to. I am already familiar ...
ibecar's user avatar
  • 415
1 vote
1 answer
75 views

JQAssistant with multiple projects and builds

I have JQAssistant scanning my project(s) and can query each of the projects. The documentation cites a Team Server ability where all projects/builds are stored in a central Neo4j db. I cannot find ...
Rollo Tomassi's user avatar
3 votes
1 answer
134 views

Passing the parameter 'ruleParameters' when using the jQAssistant-Maven-Plugin via the command line

Is it possible to pass the ruleParameters argument when using the jQAssistant-Maven-Plugin from command line? I tried to call the analyze goal of the plugin like so: mvn com.buschmais.jqassistant:...
JerryTerra's user avatar
0 votes
1 answer
91 views

How to retrieve the value of a parameter in JQAssistant

It is not possible to retrieve the value of a method input parameter. For annotation the parameters can be read: MATCH (c:Class)-[:DECLARES]->()-[:ANNOTATED_BY]->(an:Annotation)-[:OF_TYPE]->(:...
Nic's user avatar
  • 3
1 vote
1 answer
73 views

Terraform plugin for JQAssistant available?

I am looking for a terraform plugin for JQAssistant. So far I didn't found any. Is there a plugin available to analyze terraform code?
Matthias's user avatar
0 votes
1 answer
100 views

Create Neo4j database dump with JQAssistant

I want to create a dump of the database that JQAssistant creates with a scan. So far i have tried to do this with the integrated server and by connecting jqassistant to a running database. The ...
Norwort's user avatar
  • 13
1 vote
0 answers
61 views

Integrate JQAssistant-Maven-Plugin with database analysis via RDBMS Plugin

I´m trying to move my existing software-analysis with jQAssistant (which is basically all steps and scripts in a textfile and executed manually) to the maven-plugin of jQAssistant in order to be able ...
CSan's user avatar
  • 954
1 vote
1 answer
130 views

How to detect / resolve super method invocations with jqassistant

I am using jqassistant 1.8.0 to detect super method calls in a class hierarchy. It seems some method invocations within a class hierarchy are missing, even after applying the classpath:Resolve ...
christian-de's user avatar
1 vote
0 answers
114 views

How can I query invocations of a certain Java method in Java and get access to all parameter values?

I am developing a DMN plugin for JQAssistant (https://github.com/remast/jqa-dmn-plugin). I know how to handle the DMN itself. Now I want to create relations for all Java calls to the DMN decision ...
remast's user avatar
  • 33
2 votes
0 answers
70 views

jQAssistant with multiple constraints in @jQASuppress not working

It seems, that currently only one constraint/concept can be surpressed by @jQASuppress annotation. The following @jQASuppress({"spring-injection:InjectablesShouldBeHeldInFinalFields", ...
user1651904's user avatar
0 votes
1 answer
213 views

Q: jQAssistant - generate report

It is possible to generate two reports? I have one report for the test team with individual query. And I have have a second report for the development team with a different query. All rules are ...
auertob's user avatar
  • 15
0 votes
2 answers
190 views

Find implementation of interface method

I'd like to visualize method chains of our codebase (which method invokes which method) starting from a given method with jqassistant. For normal method calls the following Cypher query works. ...
Philippe's user avatar
  • 157
0 votes
1 answer
95 views

Is it possible to use jQAssistant as a tool inside a java application?

I am currently working on a small project. The idea is to use jQAssistant to fill the neo4j database so that the data can be used by an rest api. The plan is to upload a jar, war or ear to a java ...
Phuong's user avatar
  • 1
1 vote
1 answer
132 views

How to exclude individual constraints with jqassistant?

Background We are experimenting with using jqassistant for automatic audit compliance checking. As is typical in that area, there are a lot of constraints, but they are not necessarily hard ...
Frank's user avatar
  • 10.5k
3 votes
3 answers
123 views

How to include package into query?

This question is a continuation of How to identify all classes implementing a specific interface that do NOT extend some base class?. The accepted answer there suggests to use: MATCH (i:...
GhostCat's user avatar
  • 138k
1 vote
2 answers
88 views

Ensure that a method in an enum exists with jQAssistant

I want to ensure that all enums have a static method called findByAttribute. I can select the method by MATCH (enum:Enum) - [:DECLARES] -> (method:Method) WHERE method.static = true AND method....
Mark Hunt's user avatar
0 votes
1 answer
140 views

jQAssistant - scanInclude Maven artifact

I have a project with the following structure: myProject + Annotations - pom.xml + projectA + jqassistant -my-rules.xml - pom.xml There are dependencies between the ...
JaneDoe's user avatar
  • 15
1 vote
2 answers
383 views

Integrate jQAssistant in Maven build using profile and running server

I'm trying to integrate jQAssistant into my existing Maven build. I have a hierarchy of POMs, but basically the top POM defines what the build does. That's where I have my <pluginManagement> and ...
eerriicc's user avatar
  • 1,134
0 votes
1 answer
55 views

Find checked/unchecked Exceptions with jQAssistant

I'm trying to use jqassistant to find any checked exceptions used in my project. Is there any way to differentiate between checked/unchecked exceptions with jqa?
JaneDoe's user avatar
  • 15
1 vote
1 answer
205 views

JQAssistant - is it possible to query for the value of annotation attributes?

We are thinking about doing some JQAssistant concepts/rules based on the values of annotation attributes. Can these values be queried and evaluated with JQAssistant? Example: Find all classes that ...
jens's user avatar
  • 1,763
0 votes
1 answer
275 views

How to find an example instance of a cyclic dependency in jQAssistant?

I found the output of the dependency:packageCycles constraint shipped with jQAssistant hard to interpret. Specifically I'm keen on finding an example instance of classes that make up the cyclic ...
f4lco's user avatar
  • 3,736
0 votes
1 answer
396 views

Skip JQAssistant scan & analyze for a particular sub module project due to error

When there are multiple modules under a parent project, how to indicate jqassistant not to scan or analyze a particular module ? This is because I get below error while executing the jqassistant:scan,...
skpraveen's user avatar
  • 183
0 votes
1 answer
174 views

JQassistant rule for TestMethods with lambda expressions and consumers asserts

Our project has few Unit Tests in which the asserts are passed as a lambda or consumer to the test class. Example as below. How to write a cypher rule constraint such the asserts are identified and ...
skpraveen's user avatar
  • 183
0 votes
2 answers
125 views

JQassistant rule for TestMethodWithoutAssertion with non-Junit assert methods

Our project uses assert methods from assertj library as well in some of the unit test methods. So the current cypher rule to search for assert method doesn't identify assert methods like below and ...
skpraveen's user avatar
  • 183
1 vote
1 answer
256 views

How can I exclude libraries in a WAR during jQAssistant scan?

I'm new to jQAssistant, and I like it very much. However, I'm not interested in having any data of dependencies outside our company in the Neo4j database. So far, I haven't found any means to exclude ...
eerriicc's user avatar
  • 1,134
2 votes
0 answers
205 views

Syntax for jqAssistant / cypher - Return all paths that end in one node

I scanned my Java code base with jqassistant into a neo4j library, and I'd like to get all calls (also transitive) to a certain method methodname. I guess it something like this: MATCH (c:Class)-[:...
user857990's user avatar
  • 1,140
1 vote
1 answer
60 views

XO Relation with properties throws exception

For a jQAssistant plugin, I created a relationship descriptor as described in http://buschmais.github.io/extended-objects/doc/0.8.0/neo4j/#_unidirectional_relations It looks like this: @Relation ...
Jens Nerche's user avatar
0 votes
1 answer
195 views

jQAssistant command line stopped working after switching to 1.3.0

I'm used to configure the gradle build to use jQAssistent with (basically) this snippet in build.gradle: project.ext["jqaversion"] = "1.3.0" project.ext["jqacoreversion"] = "1.3" ...
Jens Nerche's user avatar
1 vote
0 answers
87 views

Executing JQAssistant with maven in a project with submodules with profiles

As the title shows i am using jqassistant with Maven. So far that worked well for small projects. Now i am using a project with multiple poms. As the guide tells (http://buschmais.github.io/...
Tilde's user avatar
  • 155