Skip to content

Commit

Permalink
Improve layout for xml files
Browse files Browse the repository at this point in the history
  • Loading branch information
minchao committed Sep 28, 2019
1 parent 0068cb0 commit c924bc3
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 29 deletions.
7 changes: 6 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# EditorConfig is awesome: http://EditorConfig.org
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true
Expand All @@ -16,3 +16,8 @@ indent_size = 4
[*.{json,yml}]
indent_style = space
indent_size = 2

[*.{xml,xml.dist}]
max_line_length = off
indent_style = space
indent_size = 2
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
/phpunit.xml

# IntelliJ IDEA project files
/.idea/
.idea/
34 changes: 17 additions & 17 deletions phpcs.xml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
<?xml version="1.0"?>
<ruleset>
<!-- show progress of the run -->
<arg value="p"/>
<!-- show sniff codes in all reports -->
<arg value="s"/>
<!-- show progress of the run -->
<arg value="p"/>
<!-- show sniff codes in all reports -->
<arg value="s"/>

<!-- use colors in output -->
<arg name="colors"/>
<!-- use colors in output -->
<arg name="colors"/>

<!-- inherit rules from: -->
<rule ref="PSR2"/>
<!-- inherit rules from: -->
<rule ref="PSR2"/>

<!-- specific and just exclude rules in some file -->
<!-- specific and just exclude rules in some file -->

<!-- specific and just exclude rules in testing files -->
<!-- specific and just exclude rules in testing files -->

<!-- Paths and file to check -->
<file>src</file>
<file>tests</file>
<!-- Paths and file to check -->
<file>src</file>
<file>tests</file>

<!-- exclude file, e.g. Cache -->
<rule ref="Generic.Files.LineLength.TooLong">
<exclude-pattern>tests</exclude-pattern>
</rule>
<!-- exclude file, e.g. Cache -->
<rule ref="Generic.Files.LineLength.TooLong">
<exclude-pattern>tests</exclude-pattern>
</rule>
</ruleset>
20 changes: 10 additions & 10 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
convertWarningsToExceptions="true"
colors="true"
verbose="true">
<testsuites>
<testsuite name="Unit">
<directory suffix="Test.php">tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src</directory>
</whitelist>
</filter>
<testsuites>
<testsuite name="Unit">
<directory suffix="Test.php">tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src</directory>
</whitelist>
</filter>
</phpunit>

0 comments on commit c924bc3

Please sign in to comment.