-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Improve obsolete attribute detection #9
Conversation
Update package files to reflect the new version. Also added an acknowledgment for @AndrewMac in the README. Signed-off-by: Jens Oliver Meiert <jens@meiert.com>
Updated the regex to more accurately detect obsolete HTML attributes in obsohtml.js. Adjusted test cases in obsohtml.test.js to ensure better coverage and correctness. Signed-off-by: Jens Oliver Meiert <jens@meiert.com>
Updated the version in package.json and package-lock.json from 1.6.1 to 1.6.2. This minor version bump ensures that the latest changes are properly documented and package versions are synced. Signed-off-by: Jens Oliver Meiert <jens@meiert.com>
WalkthroughThis update primarily includes enhancements to the ObsoHTML project, notably improving the detection of obsolete HTML attributes through regex adjustments, adding a table structure in the test cases for more robust validations, and updating the project version in the package manifest. Additionally, the acknowledgments section of the README has been modified to recognize a new contributor. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant ObsoHTML
participant TestRunner
User->>ObsoHTML: Scan HTML
ObsoHTML->>ObsoHTML: Identify attributes
ObsoHTML->>User: Return obsolete attributes
User->>TestRunner: Validate HTML structure
TestRunner->>ObsoHTML: Test with new table structure
ObsoHTML->>TestRunner: Output results
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
Outside diff range, codebase verification and nitpick comments (1)
README.md (1)
85-85
: Consider rephrasing for clarity and style.The phrase "for helping to make ObsoHTML better" can be improved for clarity. Consider rephrasing it to something like "for their contributions to improving ObsoHTML."
- Thanks to @mattbrundage, @FabianBeiner, and @AndrewMac for helping to make ObsoHTML better! + Thanks to @mattbrundage, @FabianBeiner, and @AndrewMac for their contributions to improving ObsoHTML!Tools
LanguageTool
[style] ~85-~85: The wording of this phrase can be improved.
Context: ...anBeiner, and @AndrewMac for helping to make ObsoHTML better!(MAKE_STYLE_BETTER)
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files ignored due to path filters (1)
package-lock.json
is excluded by!**/package-lock.json
Files selected for processing (4)
- README.md (1 hunks)
- bin/obsohtml.js (1 hunks)
- bin/obsohtml.test.js (1 hunks)
- package.json (1 hunks)
Files skipped from review due to trivial changes (1)
- package.json
Additional context used
LanguageTool
README.md
[style] ~85-~85: The wording of this phrase can be improved.
Context: ...anBeiner, and @AndrewMac for helping to make ObsoHTML better!(MAKE_STYLE_BETTER)
Additional comments not posted (2)
bin/obsohtml.test.js (1)
19-19
: Test enhancement with table element.The addition of a
<table>
element with a<tr>
and<th>
tag in the test file enhances the coverage for detecting obsolete attributes within table elements. Ensure that the test cases are updated to validate this scenario.bin/obsohtml.js (1)
37-37
: Improved regex for attribute detection.The updated regex pattern for detecting obsolete attributes enhances the robustness by allowing for optional whitespace and accommodating attributes without explicit values. This change should improve the accuracy of attribute detection.
Summary by CodeRabbit
New Features
Bug Fixes
Documentation
Chores