-
-
Notifications
You must be signed in to change notification settings - Fork 47
Add relative file path to classdescription #477
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #477 +/- ##
============================================
+ Coverage 95.16% 95.20% +0.03%
- Complexity 629 632 +3
============================================
Files 72 72
Lines 1655 1668 +13
============================================
+ Hits 1575 1588 +13
Misses 80 80 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
src/Analyzer/ClassDescription.php
Outdated
@@ -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
db56c8b
to
4bee331
Compare
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.
LGTM 👍
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 when building a violation (needed in #474)