New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Any way to ignore Missing file doc comment
errors
#1348
Comments
@ankitjain28may I just found a nice way to setup a custom standard
Test your new customised coding standard by invoking phpcs using the --standard flag. For example:
Once it is working you can set your new standard as the default which means you don't need to type the --standard flag each time you use phpcs:
|
That information is very very old. You use a ruleset.xml file since version 1.3. Take a look at the annotated ruleset in the wiki and exclude the specific error codes you don't want to use. If you can't figure it out, I'll post an example tomorrow (it's late where I am, and I'm on a phone). |
@gsherwood I will try to do it as you say 👍 ... I haven't realized that this was no more a way to go. |
Can you please post an example to ignore the doc's errors |
I don't know what coding standard you are currently using, so this example assumes you are using the default standard (PEAR). <?xml version="1.0"?>
<ruleset name="MyStandard">
<description>My custom coding standard.</description>
<rule ref="PEAR">
<exclude name="PEAR.Commenting.FileComment.Missing"/>
</rule>
</ruleset> Save that as a file called |
@gsherwood can you please explain every single procedure to use that ruleset.xml with PHPCS. |
The comment above was basically everything. You create a new file called ruleset.xml (or whatever name you want) and make the contents what I posted. When running PHPCS, you use the |
You can also use a specific ruleset by adding a
|
Thank You! |
You can also try something like this--
|
I just need to put "phpcs.xml" to my root project folder.
|
<?xml version="1.0"?>
<ruleset name="CustomStandard">
<description>Custom laravel coding standard.</description>
<rule ref="PEAR">
<exclude name="PEAR.Commenting.FileComment.Missing"/>
</rule>
</ruleset> This worked for me. |
onde eu coloco esse código ? |
@emersonTeixeiraDev If you expect an answer, you may want to try to write the question in English.... |
No description provided.
The text was updated successfully, but these errors were encountered: