P
P
postgresdev2019-05-22 20:08:55
phpstorm
postgresdev, 2019-05-22 20:08:55

How to add ruleset to phpstorm?

1. It is necessary that it displays incorrect values.
2. What was auto-formatting when pressing the hot keys (optional)
If the file, example:

<?xml version="1.0"?>
<ruleset name="PSR2">
    <description>The PSR-2 coding standard.</description>
    <arg name="tab-width" value="4"/>

    <!-- 2. General -->

    <!-- 2.1 Basic Coding Standard -->

    <!-- Include the whole PSR-1 standard -->
    <rule ref="PSR1"/>

    <!-- 2.2 Files -->

    <!-- All PHP files MUST use the Unix LF (linefeed) line ending. -->
    <rule ref="Generic.Files.LineEndings">
        <properties>
            <property name="eolChar" value="\n"/>
        </properties>
    </rule>

    <!-- All PHP files MUST end with a single blank line. -->
    <!-- checked in Files/EndFileNewlineSniff -->
   ...
</ruleset>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question