Skip to content

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

Open
@treyssatvincent

Description

@treyssatvincent

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions