108 lines
8.7 KiB
XML
108 lines
8.7 KiB
XML
<component name="InspectionProjectProfileManager">
|
|
<profile version="1.0">
|
|
<option name="myName" value="Project Default" />
|
|
<inspection_tool class="CustomRegExpInspection" enabled="true" level="WARNING" enabled_by_default="true">
|
|
<option name="myConfigurations">
|
|
<list>
|
|
<RegExpInspectionConfiguration>
|
|
<option name="name" value="Fix <p> in Javadoc" />
|
|
<option name="uuid" value="5942e1f5-9a7e-3be0-a7b3-e12e3c5e3676" />
|
|
<option name="patterns">
|
|
<list>
|
|
<InspectionPattern>
|
|
<option name="regExp" value="(\*) ?(<p>)(\s+\*)+ +(\S)" />
|
|
<option name="_fileType" value="UNKNOWN" />
|
|
<option name="searchContext" value="ANY" />
|
|
<option name="replacement" value="$1 $2$4" />
|
|
</InspectionPattern>
|
|
<InspectionPattern>
|
|
<option name="regExp" value="([^ \t\n*]\n)([ \t]*)(\* <p>)" />
|
|
<option name="_fileType" value="UNKNOWN" />
|
|
<option name="searchContext" value="ANY" />
|
|
<option name="replacement" value="$1$2*\n$2$3" />
|
|
</InspectionPattern>
|
|
<InspectionPattern>
|
|
<option name="regExp" value="(/\*\*\n[ \t]*\* )<p>" />
|
|
<option name="_fileType" value="UNKNOWN" />
|
|
<option name="searchContext" value="ANY" />
|
|
<option name="replacement" value="$1" />
|
|
</InspectionPattern>
|
|
</list>
|
|
</option>
|
|
</RegExpInspectionConfiguration>
|
|
</list>
|
|
</option>
|
|
</inspection_tool>
|
|
<inspection_tool class="SSBasedInspection" enabled="true" level="WARNING" enabled_by_default="true">
|
|
<replaceConfiguration name="Prefer early return" problemDescriptor="Redundant variable can be returned linline" text="$type$ $var$; try { $tryStatements$; $var$ = $tryExpr$; } catch ($extype$ $ex$) { $catchStatements$; $var$ = $catchExpr$; } return $var$;" recursive="false" caseInsensitive="false" type="JAVA" pattern_context="default" reformatAccordingToStyle="true" shortenFQN="false" replacement="try { $tryStatements$; return $tryExpr$; } catch ($extype$ $ex$) { $catchStatements$; return $catchExpr$; }">
|
|
<constraint name="__context__" within="" contains="" />
|
|
<constraint name="type" within="" contains="" />
|
|
<constraint name="var" within="" contains="" />
|
|
<constraint name="ex" within="" contains="" />
|
|
<constraint name="extype" within="" contains="" />
|
|
<constraint name="tryStatements" minCount="0" maxCount="2147483647" within="" contains="" />
|
|
<constraint name="catchStatements" minCount="0" maxCount="2147483647" within="" contains="" />
|
|
<constraint name="tryExpr" within="" contains="" />
|
|
<constraint name="catchExpr" within="" contains="" />
|
|
</replaceConfiguration>
|
|
<replaceConfiguration name="Prefer fromEntries() over reduce()" text="$array$.reduce(($acc$, $single$) => ({ ...$acc$, [$prop$]: $result$ }), {})" recursive="false" caseInsensitive="true" type="JavaScript" reformatAccordingToStyle="true" shortenFQN="false" replacement="Object.fromEntries($array$.map($single$ => [$prop$, $result$]))">
|
|
<constraint name="__context__" within="" contains="" />
|
|
<constraint name="array" within="" contains="" />
|
|
<constraint name="acc" within="" contains="" />
|
|
<constraint name="single" within="" contains="" />
|
|
<constraint name="prop" within="" contains="" />
|
|
<constraint name="result" within="" contains="" />
|
|
</replaceConfiguration>
|
|
<replaceConfiguration name="Prefer fromEntries() over reduce()" text="$array$.reduce(($acc$, $single$) => { $statements$ return ({ ...$acc$, [$prop$]: $result$ }) }, {})" recursive="false" caseInsensitive="true" type="JavaScript" reformatAccordingToStyle="true" shortenFQN="false" replacement="Object.fromEntries($array$.map($single$ => { $statements$ return [$prop$, $result$] }))">
|
|
<constraint name="__context__" within="" contains="" />
|
|
<constraint name="array" within="" contains="" />
|
|
<constraint name="acc" within="" contains="" />
|
|
<constraint name="single" within="" contains="" />
|
|
<constraint name="prop" within="" contains="" />
|
|
<constraint name="result" within="" contains="" />
|
|
<constraint name="statements" maxCount="2147483647" within="" contains="" />
|
|
</replaceConfiguration>
|
|
<replaceConfiguration name="Prefer fromEntries() over reduce()" text="$array$.reduce(($acc$, $single$) => { $statements$ $acc$[$prop$] = $result$ return $acc$ }, {})" recursive="false" caseInsensitive="true" type="JavaScript" reformatAccordingToStyle="true" shortenFQN="false" replacement="Object.fromEntries($array$.map($single$ => { $statements$ return [$prop$, $result$] }))">
|
|
<constraint name="__context__" within="" contains="" />
|
|
<constraint name="array" within="" contains="" />
|
|
<constraint name="acc" within="" contains="" />
|
|
<constraint name="single" within="" contains="" />
|
|
<constraint name="prop" within="" contains="" />
|
|
<constraint name="result" within="" contains="" />
|
|
<constraint name="statements" minCount="0" maxCount="2147483647" within="" contains="" />
|
|
</replaceConfiguration>
|
|
<replaceConfiguration name="Prefer fromEntries() over reduce()" text="$array$.reduce(($acc$, $single$, $index$) => ({ ...$acc$, [$prop$]: $result$ }), {})" recursive="false" caseInsensitive="true" type="JavaScript" reformatAccordingToStyle="true" shortenFQN="false" replacement="Object.fromEntries($array$.map(($single$, $index$) => [$prop$, $result$]))">
|
|
<constraint name="__context__" within="" contains="" />
|
|
<constraint name="array" within="" contains="" />
|
|
<constraint name="acc" within="" contains="" />
|
|
<constraint name="single" within="" contains="" />
|
|
<constraint name="prop" within="" contains="" />
|
|
<constraint name="result" within="" contains="" />
|
|
<constraint name="index" within="" contains="" />
|
|
</replaceConfiguration>
|
|
<replaceConfiguration name="Prefer Jndi instead of JndiLocal" text="com.add123.jndi.JndiLocal.init();" recursive="false" caseInsensitive="false" type="JAVA" pattern_context="default" reformatAccordingToStyle="true" shortenFQN="true" useStaticImport="true" replacement="com.add123.jndi.Jndi.init();">
|
|
<constraint name="__context__" within="" contains="" />
|
|
</replaceConfiguration>
|
|
<replaceConfiguration name="Prefer string.join() over reduce()" text="$list$.reduce(($sum$, $single$) => $sum$ + $map$, '')" recursive="false" caseInsensitive="false" type="JavaScript" reformatAccordingToStyle="false" shortenFQN="false" replacement="$list$.map($single$ => $map$).join('')">
|
|
<constraint name="__context__" within="" contains="" />
|
|
<constraint name="list" within="" contains="" />
|
|
<constraint name="sum" within="" contains="" />
|
|
<constraint name="single" within="" contains="" />
|
|
<constraint name="map" within="" contains="" />
|
|
</replaceConfiguration>
|
|
<replaceConfiguration name="ReactRouterDom Component-Element Migration" text="<Route exact path=$path$ component={$component$} />" recursive="false" caseInsensitive="false" type="JSX Harmony" reformatAccordingToStyle="false" shortenFQN="false" replacement="<Route path=$path$ element={<$component$ />} />">
|
|
<constraint name="__context__" within="" contains="" />
|
|
<constraint name="path" reference="constants" within="" contains="" />
|
|
<constraint name="component" regexp="^[A-Z][a-zA-Z0-9]*" within="" contains="" />
|
|
</replaceConfiguration>
|
|
<replaceConfiguration name="Simplify conditional components" text="{$bool$ && <$component$ $params$/>} {$bool$ && <$component2$ $params2$/>}" recursive="false" caseInsensitive="false" type="JSX Harmony" reformatAccordingToStyle="true" shortenFQN="false" replacement="{$bool$ && <><$component$ $params$/><$component2$ $params2$/></>}">
|
|
<constraint name="__context__" within="" contains="" />
|
|
<constraint name="bool" within="" contains="" />
|
|
<constraint name="component" within="" contains="" />
|
|
<constraint name="component2" within="" contains="" />
|
|
<constraint name="params" minCount="0" maxCount="2147483647" within="" contains="" />
|
|
<constraint name="params2" minCount="0" maxCount="2147483647" within="" contains="" />
|
|
</replaceConfiguration>
|
|
</inspection_tool>
|
|
</profile>
|
|
</component> |