{"repo":"fmbenhassine/jql","free":true,"listed":false,"github":"https://github.com/fmbenhassine/jql","clone":"git clone https://github.com/fmbenhassine/jql.git","description":"Java code analysis and linting with SQL","language":"Java","stars":162,"topics":["java","code-analysis","linter"],"license":"MIT","category":"dev-tools","readme_excerpt":"Important note: This project is in early stage. It is published for evaluation purpose with your help! Please give it a try and send us your feedback, we would love to hear your thoughts! About JQL JQL (Java Query Language) makes it possible to query Java source code with SQL. This allows you to answer questions like: Is there any class that has no unit tests? What is the longest class name? Is there an interface with more than 20 methods? This repository provides a static analysis tool that gives you precious insights on your code base in order to improve its quality. How does it work? JQL engine creates a relational database from a Java code base. Once you have created the relational database, you can query it with standard SQL. The relational model has been designed to be intuitive, natural and easy to understand and query. Here are the core entities and relations: Entities Relations You can find a complete description of the database schema here. Examples of queries Find interfaces with more than 20 methods Find classes with more than 5 constructors Find methods with more than 5 parameters Find the top 10 longest class names: You can find some real world examples on popular open source projects here. How to get started ? JQL engine is distributed as a single executable jar that creates a self-contained serverless Sqlite relational database from your Java code base: This command will index your code and create a file named jql.db in the specified directory. For maven based","default_branch":null,"files":null,"tree":[],"storefront":"/r/fmbenhassine","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fmbenhassine/jql/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}