Skip to content

Commit 95a643d

Browse files
chore(commit): Update .editorconfig and psalm configuration
- Update the order and values of properties in the .editorconfig file - Change the indent size and end-of-line settings - Update the psalm.xml.dist and psalm- baseline.xml files - Remove an unused interface method occurrence in Handler.php - Fix UndefinedMagicMethod occurrences in ConfigCommandTest.php - Adjust errorLevel and suppress errors in various files
1 parent 2283681 commit 95a643d

File tree

3 files changed

+58
-52
lines changed

3 files changed

+58
-52
lines changed

.editorconfig

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
root = true
22

33
[*]
4-
charset = utf-8
5-
end_of_line = lf
6-
indent_size = 4
74
indent_style = space
8-
insert_final_newline = true
5+
indent_size = 4
6+
end_of_line = lf
7+
charset = utf-8
98
trim_trailing_whitespace = true
9+
insert_final_newline = false
10+
11+
[*.{vue,js,scss}]
12+
indent_size = 2
13+
insert_final_newline = true
1014

1115
[*.md]
1216
trim_trailing_whitespace = false

psalm-baseline.xml

-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<files psalm-version="4.30.0@d0bc6e25d89f649e4f36a534f330f8bb4643dd69">
3-
<file src="app/Exceptions/Handler.php">
4-
<UndefinedInterfaceMethod occurrences="1">
5-
<code>isProduction</code>
6-
</UndefinedInterfaceMethod>
7-
</file>
83
<file src="tests/Feature/ConfigCommandTest.php">
94
<UndefinedMagicMethod occurrences="2">
105
<code>andReturn</code>

psalm.xml.dist

+50-43
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,56 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<psalm
3-
errorLevel="4"
4-
findUnusedVariablesAndParams="true"
5-
resolveFromConfigFile="true"
6-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
7-
xmlns="https://getpsalm.org/schema/config"
8-
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
9-
cacheDirectory="./build/psalm/"
10-
errorBaseline="psalm-baseline.xml"
3+
cacheDirectory="./build/psalm/"
4+
errorBaseline="psalm-baseline.xml"
5+
errorLevel="4"
6+
findUnusedBaselineEntry="true"
7+
findUnusedCode="false"
8+
findUnusedVariablesAndParams="true"
9+
resolveFromConfigFile="true"
10+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
11+
xmlns="https://getpsalm.org/schema/config"
12+
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
1113
>
12-
<projectFiles>
13-
<directory name="app"/>
14-
<directory name="tests"/>
15-
<ignoreFiles allowMissingFiles="true">
16-
<directory name="vendor"/>
17-
<file name="app/xxx.php"/>
18-
</ignoreFiles>
19-
</projectFiles>
14+
<projectFiles>
15+
<directory name="app"/>
16+
<directory name="tests"/>
17+
<ignoreFiles allowMissingFiles="true">
18+
<directory name="vendor"/>
19+
<file name="app/xxx.php"/>
20+
</ignoreFiles>
21+
</projectFiles>
2022

21-
<issueHandlers>
22-
<PropertyNotSetInConstructor errorLevel="info"/>
23-
<UnusedVariable>
24-
<errorLevel type="suppress">
25-
<file name="app/Commands/CommitCommand.php"/>
26-
<file name="app/Generators/OpenAIGenerator.php"/>
27-
</errorLevel>
28-
</UnusedVariable>
29-
<InternalMethod>
30-
<errorLevel type="suppress">
31-
<directory name="tests"/>
32-
</errorLevel>
33-
</InternalMethod>
34-
<InvalidScope>
35-
<errorLevel type="suppress">
36-
<directory name="tests"/>
37-
</errorLevel>
38-
</InvalidScope>
39-
<UndefinedFunction>
40-
<errorLevel type="suppress">
41-
<directory name="tests"/>
42-
</errorLevel>
43-
</UndefinedFunction>
44-
</issueHandlers>
23+
<issueHandlers>
24+
<PropertyNotSetInConstructor errorLevel="info"/>
25+
<UnusedVariable>
26+
<errorLevel type="suppress">
27+
<file name="app/Commands/CommitCommand.php"/>
28+
<file name="app/Generators/OpenAIGenerator.php"/>
29+
</errorLevel>
30+
</UnusedVariable>
31+
<InternalMethod>
32+
<errorLevel type="suppress">
33+
<directory name="tests"/>
34+
</errorLevel>
35+
</InternalMethod>
36+
<InvalidScope>
37+
<errorLevel type="suppress">
38+
<directory name="tests"/>
39+
</errorLevel>
40+
</InvalidScope>
41+
<UndefinedFunction>
42+
<errorLevel type="suppress">
43+
<directory name="tests"/>
44+
</errorLevel>
45+
</UndefinedFunction>
46+
<UndefinedPropertyFetch>
47+
<errorLevel type="suppress">
48+
<directory name="tests"/>
49+
</errorLevel>
50+
</UndefinedPropertyFetch>
51+
</issueHandlers>
4552

46-
<plugins>
47-
<!--<pluginClass class="Psalm\PhpUnitPlugin\Plugin"/>-->
48-
</plugins>
53+
<plugins>
54+
<!--<pluginClass class="Psalm\PhpUnitPlugin\Plugin"/>-->
55+
</plugins>
4956
</psalm>

0 commit comments

Comments
 (0)