-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Add relative file path to classdescription #477
base: refactor_violations
Are you sure you want to change the base?
Add relative file path to classdescription #477
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## refactor_violations #477 +/- ##
=========================================================
- Coverage 95.18% 95.07% -0.11%
+ Complexity 633 631 -2
=========================================================
Files 72 72
Lines 1661 1666 +5
=========================================================
+ Hits 1581 1584 +3
- Misses 80 82 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@@ -70,10 +74,11 @@ public function __construct( | |||
$this->enum = $enum; | |||
} | |||
|
|||
public static function getBuilder(string $FQCN): ClassDescriptionBuilder | |||
public static function getBuilder(string $FQCN, string $relativeFilePath): ClassDescriptionBuilder |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why everywhere we have filePath and here relativeFilePath?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! Updating it
This depends on #476. Here a
$filePath
attribute is added toClassDescription
and is populated during the parsing process. That should enable adding the information relative to the file path in when building a violation (needed in #474)