Skip to content

Commit

Permalink
[TASK] Enhance recommendations made by the qodana-report
Browse files Browse the repository at this point in the history
  • Loading branch information
mai-space committed Apr 2, 2023
1 parent 6b29de4 commit 703a613
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.github.inf166.pluginphpstormtypo3committemplate

import com.intellij.openapi.project.Project
import com.github.inf166.pluginphpstormtypo3committemplate.MyBundle

class ProjectService(project: Project) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,16 @@ import javax.swing.JCheckBox
import javax.swing.JPanel
import javax.swing.JTextField


class SettingsFormPanel {
var useFlags: JCheckBox = JCheckBox("Use Flags like [FEATURE] and [!!!]")
var useSubjectLine: JCheckBox = JCheckBox("Use the Subject Line")
var useTaskList: JCheckBox = JCheckBox("Use Task list")
var useBreakingList: JCheckBox = JCheckBox("Use Breaking Changes list")
var useToDoList: JCheckBox = JCheckBox("Use Todo list")
var useRelatedReference: JCheckBox = JCheckBox("Use related issueno reference field")
var useResolvesReference: JCheckBox = JCheckBox("Use resolves issueno reference field")
var useReleaseReference: JCheckBox = JCheckBox("Use releases on reference field")
var useDependsReference: JCheckBox = JCheckBox("Use depends on reference field")
private var useFlags: JCheckBox = JCheckBox("Use Flags like [FEATURE] and [!!!]")
private var useSubjectLine: JCheckBox = JCheckBox("Use the Subject Line")
private var useTaskList: JCheckBox = JCheckBox("Use Task list")
private var useBreakingList: JCheckBox = JCheckBox("Use Breaking Changes list")
private var useToDoList: JCheckBox = JCheckBox("Use Todo list")
private var useRelatedReference: JCheckBox = JCheckBox("Use related issueno reference field")
private var useResolvesReference: JCheckBox = JCheckBox("Use resolves issueno reference field")
private var useReleaseReference: JCheckBox = JCheckBox("Use releases on reference field")
private var useDependsReference: JCheckBox = JCheckBox("Use depends on reference field")
var bulletPointInput: JTextField = SettingsInputField.getInputField(
MyBundle.getMessage("bulletPoint"),
"Will be shown in the Changelog Lists"
Expand Down Expand Up @@ -70,7 +69,7 @@ class SettingsFormPanel {

val enOrDisableFieldsPanel = JPanel()
enOrDisableFieldsPanel.layout = GridLayout(9, 1, 0, Constants.largeSpace)
enOrDisableFieldsPanel.border = IdeBorderFactory.createTitledBorder("Enable or disable template Fields")
enOrDisableFieldsPanel.border = IdeBorderFactory.createTitledBorder("Enable or Disable Template Fields")
enOrDisableFieldsPanel.add(useFlags)
enOrDisableFieldsPanel.add(Spacer.getComponentSpacer())
enOrDisableFieldsPanel.add(useSubjectLine)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package com.github.inf166.pluginphpstormtypo3committemplate.settings.form.partia
import com.github.inf166.pluginphpstormtypo3committemplate.template.partials.Border
import com.github.inf166.pluginphpstormtypo3committemplate.utilities.Constants
import org.jdesktop.swingx.prompt.PromptSupport
import java.awt.BorderLayout
import java.awt.Dimension
import java.awt.Font
import javax.swing.*
Expand Down

0 comments on commit 703a613

Please sign in to comment.