Add checkstyle rules (#274)

This commit is contained in:
Carl-Robert 2023-11-16 17:15:11 +02:00 committed by GitHub
parent fe613afc74
commit c4115e257b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
72 changed files with 1129 additions and 564 deletions

View file

@ -34,18 +34,23 @@ import org.jetbrains.annotations.NotNull;
public class OverlayUtils {
public static void showNotification(String content, NotificationType type) {
Notifications.Bus.notify(new Notification("CodeGPT Notification Group", "CodeGPT", content, type));
Notifications.Bus.notify(
new Notification("CodeGPT Notification Group", "CodeGPT", content, type));
}
public static int showFileStructureDialog(Project project, FolderStructureTreePanel folderStructureTreePanel) {
public static int showFileStructureDialog(
Project project,
FolderStructureTreePanel folderStructureTreePanel) {
var dialogBuilder = new DialogBuilder(project);
dialogBuilder.setNorthPanel(JBUI.Panels.simplePanel(new JBLabel(
"<html>" +
"<p>Indexing files enables direct queries related to your codebase.</p>" +
"<br/>" +
"<p>File indexing occurs locally on your computer; no files are sent to any 3rd party services.</p>" +
"<p>For additional information, refer to the <a href=\"https://google.com\">CodeGPT documentation</a>.</p>" +
"</html>")
"<html>"
+ "<p>Indexing files enables direct queries related to your codebase.</p>"
+ "<br/>"
+ "<p>File indexing occurs locally on your computer; "
+ "no files are sent to any 3rd party services.</p>"
+ "<p>For additional information, refer to the "
+ "<a href=\"https://google.com\">CodeGPT documentation</a>.</p>"
+ "</html>")
.setCopyable(true)
.setAllowAutoWrapping(true)
.withFont(JBFont.medium()))