eric7/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCheckerDialog.ui

branch
eric7
changeset 8808
033fa34447d0
parent 8802
129a973fc33e
child 9182
bc72e2fc0d8e
--- a/eric7/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCheckerDialog.ui	Sat Dec 04 17:41:18 2021 +0100
+++ b/eric7/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCheckerDialog.ui	Sat Dec 04 18:06:17 2021 +0100
@@ -39,7 +39,7 @@
          </property>
          <widget class="QWidget" name="globalOptionsTab">
           <attribute name="title">
-           <string>Global Options</string>
+           <string>Globals</string>
           </attribute>
           <layout class="QGridLayout" name="gridLayout_2">
            <item row="0" column="0">
@@ -245,7 +245,7 @@
          </widget>
          <widget class="QWidget" name="specificOptionsTab">
           <attribute name="title">
-           <string>Specific Options</string>
+           <string>Specifics</string>
           </attribute>
           <layout class="QVBoxLayout" name="verticalLayout_9">
            <item>
@@ -267,8 +267,8 @@
                <rect>
                 <x>0</x>
                 <y>0</y>
-                <width>365</width>
-                <height>1152</height>
+                <width>611</width>
+                <height>923</height>
                </rect>
               </property>
               <layout class="QVBoxLayout" name="verticalLayout_4">
@@ -725,292 +725,332 @@
                  </layout>
                 </widget>
                </item>
-               <item>
-                <widget class="QGroupBox" name="groupBox_3">
-                 <property name="title">
-                  <string>Code Complexity</string>
-                 </property>
-                 <layout class="QGridLayout" name="gridLayout_4">
-                  <item row="0" column="2" rowspan="2">
-                   <spacer name="horizontalSpacer_5">
-                    <property name="orientation">
-                     <enum>Qt::Horizontal</enum>
-                    </property>
-                    <property name="sizeHint" stdset="0">
-                     <size>
-                      <width>313</width>
-                      <height>20</height>
-                     </size>
-                    </property>
-                   </spacer>
-                  </item>
-                  <item row="0" column="0">
-                   <widget class="QLabel" name="label_8">
-                    <property name="text">
-                     <string>Max. McCabe Complexity:</string>
-                    </property>
-                   </widget>
-                  </item>
-                  <item row="0" column="1">
-                   <widget class="QSpinBox" name="complexitySpinBox">
-                    <property name="toolTip">
-                     <string>Enter the maximum allowed code complexity (McCabe: 10)</string>
-                    </property>
-                    <property name="alignment">
-                     <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
-                    </property>
-                    <property name="maximum">
-                     <number>100</number>
-                    </property>
-                    <property name="value">
-                     <number>10</number>
-                    </property>
-                   </widget>
-                  </item>
-                  <item row="1" column="0">
-                   <widget class="QLabel" name="label_13">
-                    <property name="text">
-                     <string>Max. Line Complexity:</string>
-                    </property>
-                   </widget>
-                  </item>
-                  <item row="1" column="1">
-                   <widget class="QSpinBox" name="lineComplexitySpinBox">
-                    <property name="toolTip">
-                     <string>Enter the maximum complexity (number of nodes) for a line of code</string>
-                    </property>
-                    <property name="alignment">
-                     <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
-                    </property>
-                    <property name="maximum">
-                     <number>100</number>
-                    </property>
-                    <property name="value">
-                     <number>15</number>
-                    </property>
-                   </widget>
-                  </item>
-                  <item row="2" column="0">
-                   <widget class="QLabel" name="label_14">
-                    <property name="text">
-                     <string>Max. Line Complexity Score:</string>
-                    </property>
-                   </widget>
-                  </item>
-                  <item row="2" column="1">
-                   <widget class="QSpinBox" name="lineComplexityScoreSpinBox">
-                    <property name="toolTip">
-                     <string>Enter the maximum allowed median for line complexity</string>
-                    </property>
-                    <property name="alignment">
-                     <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
-                    </property>
-                    <property name="maximum">
-                     <number>100</number>
-                    </property>
-                    <property name="value">
-                     <number>10</number>
-                    </property>
-                   </widget>
-                  </item>
-                 </layout>
-                </widget>
-               </item>
-               <item>
-                <widget class="QGroupBox" name="groupBox_10">
-                 <property name="title">
-                  <string>Type Annotations</string>
-                 </property>
-                 <layout class="QVBoxLayout" name="verticalLayout_3">
-                  <item>
-                   <layout class="QGridLayout" name="gridLayout_6">
-                    <item row="0" column="0">
-                     <widget class="QLabel" name="label_18">
-                      <property name="text">
-                       <string>Min. Coverage:</string>
-                      </property>
-                     </widget>
-                    </item>
-                    <item row="0" column="1">
-                     <widget class="QSpinBox" name="minAnnotationsCoverageSpinBox">
-                      <property name="toolTip">
-                       <string>Enter the minimum percentage of type annotations</string>
-                      </property>
-                      <property name="alignment">
-                       <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
-                      </property>
-                      <property name="specialValueText">
-                       <string>off</string>
-                      </property>
-                      <property name="suffix">
-                       <string>%</string>
-                      </property>
-                      <property name="maximum">
-                       <number>100</number>
-                      </property>
-                     </widget>
-                    </item>
-                    <item row="0" column="2">
-                     <spacer name="horizontalSpacer_7">
-                      <property name="orientation">
-                       <enum>Qt::Horizontal</enum>
-                      </property>
-                      <property name="sizeHint" stdset="0">
-                       <size>
-                        <width>352</width>
-                        <height>20</height>
-                       </size>
-                      </property>
-                     </spacer>
-                    </item>
-                    <item row="1" column="0">
-                     <widget class="QLabel" name="label_19">
-                      <property name="text">
-                       <string>Max. Complexity:</string>
-                      </property>
-                     </widget>
-                    </item>
-                    <item row="1" column="1">
-                     <widget class="QSpinBox" name="maxAnnotationsComplexitySpinBox">
-                      <property name="toolTip">
-                       <string>Enter the maximum type annotation complexity</string>
-                      </property>
-                      <property name="alignment">
-                       <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
-                      </property>
-                      <property name="minimum">
-                       <number>1</number>
-                      </property>
-                      <property name="maximum">
-                       <number>9</number>
-                      </property>
-                     </widget>
-                    </item>
-                    <item row="2" column="0">
-                     <widget class="QLabel" name="label_32">
-                      <property name="text">
-                       <string>Max. Length:</string>
-                      </property>
-                     </widget>
-                    </item>
-                    <item row="2" column="1">
-                     <widget class="QSpinBox" name="maxAnnotationsLengthSpinBox">
-                      <property name="toolTip">
-                       <string>Enter the maximum type annotation length</string>
-                      </property>
-                      <property name="alignment">
-                       <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
-                      </property>
-                      <property name="minimum">
-                       <number>1</number>
-                      </property>
-                      <property name="maximum">
-                       <number>15</number>
-                      </property>
-                     </widget>
-                    </item>
-                   </layout>
-                  </item>
-                  <item>
-                   <layout class="QGridLayout" name="gridLayout_9">
-                    <item row="0" column="0">
-                     <widget class="QCheckBox" name="suppressNoneReturningCheckBox">
-                      <property name="toolTip">
-                       <string>Select to not report functions without returns or with only bare returns</string>
-                      </property>
-                      <property name="text">
-                       <string>Suppress 'None' return</string>
-                      </property>
-                     </widget>
-                    </item>
-                    <item row="0" column="1">
-                     <widget class="QCheckBox" name="suppressDummyArgsCheckBox">
-                      <property name="toolTip">
-                       <string>Select to not report dummy (i.e. '_') arguments</string>
-                      </property>
-                      <property name="text">
-                       <string>Suppress Dummy Arguments</string>
-                      </property>
-                     </widget>
-                    </item>
-                    <item row="1" column="0">
-                     <widget class="QCheckBox" name="allowUntypedDefsCheckBox">
-                      <property name="toolTip">
-                       <string>Select to not report dynamically typed functions</string>
-                      </property>
-                      <property name="text">
-                       <string>Allow Untyped Functions</string>
-                      </property>
-                     </widget>
-                    </item>
-                    <item row="1" column="1">
-                     <widget class="QCheckBox" name="allowUntypedNestedCheckBox">
-                      <property name="toolTip">
-                       <string>Select to not report dynamically typed nested functions</string>
-                      </property>
-                      <property name="text">
-                       <string>Allow Untyped Nested Functions</string>
-                      </property>
-                     </widget>
-                    </item>
-                    <item row="2" column="0" colspan="2">
-                     <widget class="QCheckBox" name="mypyInitReturnCheckBox">
-                      <property name="toolTip">
-                       <string>Select to not report unhinted '__init__' return</string>
-                      </property>
-                      <property name="text">
-                       <string>Allow Untyped '__init__' function</string>
-                      </property>
-                     </widget>
-                    </item>
-                   </layout>
-                  </item>
-                  <item>
-                   <widget class="QLabel" name="label_33">
-                    <property name="text">
-                     <string>Dispatch Decorators:</string>
-                    </property>
-                   </widget>
-                  </item>
-                  <item>
-                   <widget class="QLineEdit" name="dispatchDecoratorEdit">
-                    <property name="toolTip">
-                     <string>Enter the list of dispatch decorators separated by comma</string>
-                    </property>
-                    <property name="clearButtonEnabled">
-                     <bool>true</bool>
-                    </property>
-                   </widget>
-                  </item>
-                  <item>
-                   <widget class="QLabel" name="label_34">
-                    <property name="text">
-                     <string>Overload Decorators:</string>
-                    </property>
-                   </widget>
-                  </item>
-                  <item>
-                   <widget class="QLineEdit" name="overloadDecoratorEdit">
-                    <property name="toolTip">
-                     <string>Enter the list of typing.overload decorators separated by comma</string>
-                    </property>
-                    <property name="clearButtonEnabled">
-                     <bool>true</bool>
-                    </property>
-                   </widget>
-                  </item>
-                 </layout>
-                </widget>
-               </item>
               </layout>
              </widget>
             </widget>
            </item>
           </layout>
          </widget>
+         <widget class="QWidget" name="codeComplexityTab">
+          <attribute name="title">
+           <string>Complexity</string>
+          </attribute>
+          <layout class="QVBoxLayout" name="verticalLayout_17">
+           <item>
+            <widget class="QGroupBox" name="groupBox_3">
+             <property name="title">
+              <string>Code Complexity</string>
+             </property>
+             <layout class="QGridLayout" name="gridLayout_4">
+              <item row="0" column="2" rowspan="2">
+               <spacer name="horizontalSpacer_5">
+                <property name="orientation">
+                 <enum>Qt::Horizontal</enum>
+                </property>
+                <property name="sizeHint" stdset="0">
+                 <size>
+                  <width>313</width>
+                  <height>20</height>
+                 </size>
+                </property>
+               </spacer>
+              </item>
+              <item row="0" column="0">
+               <widget class="QLabel" name="label_8">
+                <property name="text">
+                 <string>Max. McCabe Complexity:</string>
+                </property>
+               </widget>
+              </item>
+              <item row="0" column="1">
+               <widget class="QSpinBox" name="complexitySpinBox">
+                <property name="toolTip">
+                 <string>Enter the maximum allowed code complexity (McCabe: 10)</string>
+                </property>
+                <property name="alignment">
+                 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+                </property>
+                <property name="maximum">
+                 <number>100</number>
+                </property>
+                <property name="value">
+                 <number>10</number>
+                </property>
+               </widget>
+              </item>
+              <item row="1" column="0">
+               <widget class="QLabel" name="label_13">
+                <property name="text">
+                 <string>Max. Line Complexity:</string>
+                </property>
+               </widget>
+              </item>
+              <item row="1" column="1">
+               <widget class="QSpinBox" name="lineComplexitySpinBox">
+                <property name="toolTip">
+                 <string>Enter the maximum complexity (number of nodes) for a line of code</string>
+                </property>
+                <property name="alignment">
+                 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+                </property>
+                <property name="maximum">
+                 <number>100</number>
+                </property>
+                <property name="value">
+                 <number>15</number>
+                </property>
+               </widget>
+              </item>
+              <item row="2" column="0">
+               <widget class="QLabel" name="label_14">
+                <property name="text">
+                 <string>Max. Line Complexity Score:</string>
+                </property>
+               </widget>
+              </item>
+              <item row="2" column="1">
+               <widget class="QSpinBox" name="lineComplexityScoreSpinBox">
+                <property name="toolTip">
+                 <string>Enter the maximum allowed median for line complexity</string>
+                </property>
+                <property name="alignment">
+                 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+                </property>
+                <property name="maximum">
+                 <number>100</number>
+                </property>
+                <property name="value">
+                 <number>10</number>
+                </property>
+               </widget>
+              </item>
+             </layout>
+            </widget>
+           </item>
+           <item>
+            <spacer name="verticalSpacer_8">
+             <property name="orientation">
+              <enum>Qt::Vertical</enum>
+             </property>
+             <property name="sizeHint" stdset="0">
+              <size>
+               <width>20</width>
+               <height>802</height>
+              </size>
+             </property>
+            </spacer>
+           </item>
+          </layout>
+         </widget>
+         <widget class="QWidget" name="typeAnnotationsTab">
+          <attribute name="title">
+           <string>Annotations</string>
+          </attribute>
+          <layout class="QVBoxLayout" name="verticalLayout_18">
+           <item>
+            <widget class="QGroupBox" name="groupBox_10">
+             <property name="title">
+              <string>Type Annotations</string>
+             </property>
+             <layout class="QVBoxLayout" name="verticalLayout_3">
+              <item>
+               <layout class="QGridLayout" name="gridLayout_6">
+                <item row="0" column="0">
+                 <widget class="QLabel" name="label_18">
+                  <property name="text">
+                   <string>Min. Coverage:</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="0" column="1">
+                 <widget class="QSpinBox" name="minAnnotationsCoverageSpinBox">
+                  <property name="toolTip">
+                   <string>Enter the minimum percentage of type annotations</string>
+                  </property>
+                  <property name="alignment">
+                   <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+                  </property>
+                  <property name="specialValueText">
+                   <string>off</string>
+                  </property>
+                  <property name="suffix">
+                   <string>%</string>
+                  </property>
+                  <property name="maximum">
+                   <number>100</number>
+                  </property>
+                 </widget>
+                </item>
+                <item row="0" column="2">
+                 <spacer name="horizontalSpacer_7">
+                  <property name="orientation">
+                   <enum>Qt::Horizontal</enum>
+                  </property>
+                  <property name="sizeHint" stdset="0">
+                   <size>
+                    <width>352</width>
+                    <height>20</height>
+                   </size>
+                  </property>
+                 </spacer>
+                </item>
+                <item row="1" column="0">
+                 <widget class="QLabel" name="label_19">
+                  <property name="text">
+                   <string>Max. Complexity:</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="1" column="1">
+                 <widget class="QSpinBox" name="maxAnnotationsComplexitySpinBox">
+                  <property name="toolTip">
+                   <string>Enter the maximum type annotation complexity</string>
+                  </property>
+                  <property name="alignment">
+                   <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+                  </property>
+                  <property name="minimum">
+                   <number>1</number>
+                  </property>
+                  <property name="maximum">
+                   <number>9</number>
+                  </property>
+                 </widget>
+                </item>
+                <item row="2" column="0">
+                 <widget class="QLabel" name="label_32">
+                  <property name="text">
+                   <string>Max. Length:</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="2" column="1">
+                 <widget class="QSpinBox" name="maxAnnotationsLengthSpinBox">
+                  <property name="toolTip">
+                   <string>Enter the maximum type annotation length</string>
+                  </property>
+                  <property name="alignment">
+                   <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+                  </property>
+                  <property name="minimum">
+                   <number>1</number>
+                  </property>
+                  <property name="maximum">
+                   <number>15</number>
+                  </property>
+                 </widget>
+                </item>
+               </layout>
+              </item>
+              <item>
+               <layout class="QGridLayout" name="gridLayout_9">
+                <item row="0" column="0">
+                 <widget class="QCheckBox" name="suppressNoneReturningCheckBox">
+                  <property name="toolTip">
+                   <string>Select to not report functions without returns or with only bare returns</string>
+                  </property>
+                  <property name="text">
+                   <string>Suppress 'None' return</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="0" column="1">
+                 <widget class="QCheckBox" name="suppressDummyArgsCheckBox">
+                  <property name="toolTip">
+                   <string>Select to not report dummy (i.e. '_') arguments</string>
+                  </property>
+                  <property name="text">
+                   <string>Suppress Dummy Arguments</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="1" column="0">
+                 <widget class="QCheckBox" name="allowUntypedDefsCheckBox">
+                  <property name="toolTip">
+                   <string>Select to not report dynamically typed functions</string>
+                  </property>
+                  <property name="text">
+                   <string>Allow Untyped Functions</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="1" column="1">
+                 <widget class="QCheckBox" name="allowUntypedNestedCheckBox">
+                  <property name="toolTip">
+                   <string>Select to not report dynamically typed nested functions</string>
+                  </property>
+                  <property name="text">
+                   <string>Allow Untyped Nested Functions</string>
+                  </property>
+                 </widget>
+                </item>
+                <item row="2" column="0" colspan="2">
+                 <widget class="QCheckBox" name="mypyInitReturnCheckBox">
+                  <property name="toolTip">
+                   <string>Select to not report unhinted '__init__' return</string>
+                  </property>
+                  <property name="text">
+                   <string>Allow Untyped '__init__' function</string>
+                  </property>
+                 </widget>
+                </item>
+               </layout>
+              </item>
+              <item>
+               <widget class="QLabel" name="label_33">
+                <property name="text">
+                 <string>Dispatch Decorators:</string>
+                </property>
+               </widget>
+              </item>
+              <item>
+               <widget class="QLineEdit" name="dispatchDecoratorEdit">
+                <property name="toolTip">
+                 <string>Enter the list of dispatch decorators separated by comma</string>
+                </property>
+                <property name="clearButtonEnabled">
+                 <bool>true</bool>
+                </property>
+               </widget>
+              </item>
+              <item>
+               <widget class="QLabel" name="label_34">
+                <property name="text">
+                 <string>Overload Decorators:</string>
+                </property>
+               </widget>
+              </item>
+              <item>
+               <widget class="QLineEdit" name="overloadDecoratorEdit">
+                <property name="toolTip">
+                 <string>Enter the list of typing.overload decorators separated by comma</string>
+                </property>
+                <property name="clearButtonEnabled">
+                 <bool>true</bool>
+                </property>
+               </widget>
+              </item>
+             </layout>
+            </widget>
+           </item>
+           <item>
+            <spacer name="verticalSpacer_9">
+             <property name="orientation">
+              <enum>Qt::Vertical</enum>
+             </property>
+             <property name="sizeHint" stdset="0">
+              <size>
+               <width>20</width>
+               <height>596</height>
+              </size>
+             </property>
+            </spacer>
+           </item>
+          </layout>
+         </widget>
          <widget class="QWidget" name="securityOptionsTab">
           <attribute name="title">
-           <string>Security Options</string>
+           <string>Security</string>
           </attribute>
           <layout class="QGridLayout" name="gridLayout_7">
            <item row="0" column="0">
@@ -1257,7 +1297,7 @@
           <attribute name="title">
            <string>Imports</string>
           </attribute>
-          <layout class="QVBoxLayout" name="verticalLayout_15">
+          <layout class="QVBoxLayout" name="verticalLayout_16">
            <item>
             <widget class="QGroupBox" name="groupBox_15">
              <property name="title">
@@ -1275,7 +1315,79 @@
                </widget>
               </item>
               <item>
-               <widget class="QPlainTextEdit" name="appPackagesEdit"/>
+               <widget class="QPlainTextEdit" name="appPackagesEdit">
+                <property name="tabChangesFocus">
+                 <bool>true</bool>
+                </property>
+               </widget>
+              </item>
+             </layout>
+            </widget>
+           </item>
+           <item>
+            <widget class="QGroupBox" name="groupBox_16">
+             <property name="title">
+              <string>Banned Modules</string>
+             </property>
+             <layout class="QVBoxLayout" name="verticalLayout_15">
+              <item>
+               <widget class="QLabel" name="label_36">
+                <property name="text">
+                 <string>Enter the name of modules to be banned separated by a space character:</string>
+                </property>
+                <property name="wordWrap">
+                 <bool>true</bool>
+                </property>
+               </widget>
+              </item>
+              <item>
+               <widget class="QPlainTextEdit" name="bannedModulesEdit">
+                <property name="tabChangesFocus">
+                 <bool>true</bool>
+                </property>
+               </widget>
+              </item>
+             </layout>
+            </widget>
+           </item>
+           <item>
+            <widget class="QGroupBox" name="groupBox_17">
+             <property name="title">
+              <string>Ban Relative Imports</string>
+             </property>
+             <layout class="QHBoxLayout" name="horizontalLayout_12">
+              <item>
+               <widget class="QRadioButton" name="allowAllButton">
+                <property name="toolTip">
+                 <string>Select to allow relative imports</string>
+                </property>
+                <property name="text">
+                 <string>Allow</string>
+                </property>
+                <property name="checked">
+                 <bool>true</bool>
+                </property>
+               </widget>
+              </item>
+              <item>
+               <widget class="QRadioButton" name="banParentsButton">
+                <property name="toolTip">
+                 <string>Select to ban relative imports of parents</string>
+                </property>
+                <property name="text">
+                 <string>Ban Parents Import</string>
+                </property>
+               </widget>
+              </item>
+              <item>
+               <widget class="QRadioButton" name="banAllButton">
+                <property name="toolTip">
+                 <string>Select to ban all relative imports</string>
+                </property>
+                <property name="text">
+                 <string>Ban All</string>
+                </property>
+               </widget>
               </item>
              </layout>
             </widget>
@@ -1691,10 +1803,10 @@
   <tabstop>maxAnnotationsComplexitySpinBox</tabstop>
   <tabstop>maxAnnotationsLengthSpinBox</tabstop>
   <tabstop>suppressNoneReturningCheckBox</tabstop>
+  <tabstop>allowUntypedDefsCheckBox</tabstop>
+  <tabstop>mypyInitReturnCheckBox</tabstop>
   <tabstop>suppressDummyArgsCheckBox</tabstop>
-  <tabstop>allowUntypedDefsCheckBox</tabstop>
   <tabstop>allowUntypedNestedCheckBox</tabstop>
-  <tabstop>mypyInitReturnCheckBox</tabstop>
   <tabstop>dispatchDecoratorEdit</tabstop>
   <tabstop>overloadDecoratorEdit</tabstop>
   <tabstop>tmpDirectoriesEdit</tabstop>
@@ -1708,6 +1820,10 @@
   <tabstop>ecMediumRiskCombo</tabstop>
   <tabstop>typedExceptionsCheckBox</tabstop>
   <tabstop>appPackagesEdit</tabstop>
+  <tabstop>bannedModulesEdit</tabstop>
+  <tabstop>allowAllButton</tabstop>
+  <tabstop>banParentsButton</tabstop>
+  <tabstop>banAllButton</tabstop>
   <tabstop>startButton</tabstop>
   <tabstop>loadDefaultButton</tabstop>
   <tabstop>storeDefaultButton</tabstop>

eric ide

mercurial