Skip to content
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

Allow excluding specific lines (such as strict_types declaration in PHP). #341

Open
treyssatvincent opened this issue May 14, 2019 · 0 comments
Assignees

Comments

@treyssatvincent
Copy link

It's really common for a PHP project to have multiples files starting by the same namespace. If someone add a strict_types declaration before that namespace it will trigger similar-code.

For example the following code could be at the start of all controllers from a PHP project.

<?php
declare(strict_types=1);

namespace MyProject\Controllers;

It's a similar issue to #179, maybe adding an "exclude_lines" to the config might solve this problems and future similar problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants