-
Notifications
You must be signed in to change notification settings - Fork 0
fix(markdown-validator): use global markdownlint config with MD013=160 #11
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
Conversation
Update markdown-validator plugin to use global markdownlint configuration with 160-character line length instead of default 80-character limit. Changes: - Update validate-markdown.sh to use --config ~/.markdownlint-cli2.yaml - Document global config requirement in README - Update .markdownlint.json with MD013 settings and MD060 disabled Configuration: - line_length: 160 (regular text, prevents mid-sentence breaks) - heading_line_length: 120 (headings) - code_block_line_length: 160 (code blocks) - tables: false (disable table length checks) - MD060: false (version mismatch workaround) Users must create ~/.markdownlint-cli2.yaml with these settings (deployed automatically via nix-config for nix users). Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Summary of ChangesHello @JacobPEvans, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly refines the markdown validation process by implementing a standardized global Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
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.
Code Review
This pull request updates the markdown-validator plugin to use a global markdownlint configuration, which is a good step towards consistent linting. The changes in the shell script, README, and local markdownlint config are clear and address the goal of increasing the line length limit. I've provided one suggestion to improve the robustness of the shell script by making the home directory path more portable and adding a check for the new required configuration file to provide better error messages to the user.
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.
Important
Looks good to me! 👍
Reviewed everything up to 8cd7032 in 1 minute and 36 seconds. Click for details.
- Reviewed
81lines of code in3files - Skipped
0files when reviewing. - Skipped posting
3draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. .markdownlint.json:1
- Draft comment:
The MD013 config now includes additional properties. Verify these settings align with your intended markdownlint behavior. - Reason this comment was not posted:
Confidence changes required:0%<= threshold15%None
2. markdown-validator/README.md:43
- Draft comment:
Documentation for the global config is clear. Consider adding a link to markdownlint-cli2’s docs for further reference. - Reason this comment was not posted:
Comment did not seem useful. Confidence is useful =0%<= threshold15%This comment is purely informative, suggesting to add a link for further reference. It doesn't provide a specific code suggestion or highlight a potential issue with the code. According to the rules, purely informative comments should be removed.
3. markdown-validator/scripts/validate-markdown.sh:36
- Draft comment:
Consider using the $HOME variable (or assigning the config path to a variable) instead of '~' for better portability and clarity. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 20% vs. threshold = 50% The comment is about a change that was made (adding the config flag). It's suggesting a code quality improvement - using$HOMEinstead of~. However, I need to consider: 1) Is this actually a portability issue? In bash,~is widely supported and commonly used. 2) Is this suggestion actionable and clear? Yes, it provides a concrete alternative. 3) Is this important enough to warrant a comment? This seems like a minor stylistic preference rather than a real issue. The use of~in bash scripts is standard and well-supported. The claim about "better portability" is questionable -~works in all POSIX shells and is actually more concise. The suggestion doesn't seem to address a real problem. While$HOMEmight be slightly more explicit,~is perfectly valid and widely used in bash scripts. This might be an overly pedantic suggestion that doesn't address a real portability or functionality issue. The comment might be based on a misconception about shell portability. The use of~is standard in bash and shell scripts, and there's no strong evidence that this change would improve portability or clarity in a meaningful way. This appears to be a minor stylistic preference rather than a necessary code quality improvement. The rules state not to make comments that are "obvious or unimportant" - this falls into that category. This comment should be deleted. It's a minor stylistic suggestion without strong justification. The use of~is standard and acceptable in bash scripts, and the suggested change doesn't address a real problem or significantly improve code quality.
Workflow ID: wflow_JE5Lt0KmeVLIqioh
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
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.
Pull request overview
This PR updates the markdown-validator plugin to use a global markdownlint configuration file with a 160-character line length limit, addressing issues where the default 80-character limit breaks sentences mid-sentence.
Changes:
- Adds
--config ~/.markdownlint-cli2.yamlflag to markdownlint-cli2 command - Documents the global configuration requirement and recommended settings in the README
- Updates the repository's
.markdownlint.jsonwith comprehensive MD013 settings and disables MD060
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
markdown-validator/scripts/validate-markdown.sh |
Adds --config flag to specify global markdownlint configuration file path |
markdown-validator/README.md |
Adds new "Global Markdownlint Configuration" section with recommended YAML config and explanation of key settings |
.markdownlint.json |
Expands MD013 configuration with heading and code block line lengths, table settings, and disables MD060 rule |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Changes made: - Use $HOME instead of ~ for better portability - Add config file existence check with user-friendly error message - Update documentation to clarify config requirement and failure behavior - Add note explaining YAML vs JSON config format differences Addresses review threads on PR #11: - Thread PRRT_kwDOQx7E5c5qZyRI: Config check and $HOME usage - Thread PRRT_kwDOQx7E5c5qZzxw: Config file existence validation - Thread PRRT_kwDOQx7E5c5qZzyF: YAML/JSON format clarification - Thread PRRT_kwDOQx7E5c5qZzyW: Config requirement language Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
Response to review feedback on config file handling: Fixed in commit f334b6d. Changes made to
This ensures the validation fails gracefully with helpful guidance rather than silently using default settings or producing confusing errors. Addresses threads on lines 36-39 from both reviewers. |
|
Response to review feedback on config format documentation: Fixed in commit f334b6d. Added a note in the README clarifying the structural differences between YAML and JSON config formats:
The note references this repository's Addresses thread on README.md lines 50-60. |
|
Response to review feedback on config requirement language: Fixed in commit f334b6d. Updated the documentation language from "requires" to "uses" and added explicit documentation of the failure behavior:
Combined with the script changes (config existence check with helpful error), this now accurately reflects the behavior: the config is enforced (not optional), but users get clear guidance when it's missing rather than confusing failures. Addresses thread on README.md lines 45-46. |
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.
Important
Looks good to me! 👍
Reviewed f334b6d in 1 minute and 50 seconds. Click for details.
- Reviewed
44lines of code in2files - Skipped
0files when reviewing. - Skipped posting
2draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. markdown-validator/README.md:45
- Draft comment:
Good update clarifying the global config file requirement. The added note on YAML vs JSON formats is helpful, but ensure these guidelines stay in sync with the .markdownlint.json file. - Reason this comment was not posted:
Confidence changes required:0%<= threshold15%None
2. markdown-validator/scripts/validate-markdown.sh:36
- Draft comment:
The new check for the global config file using "$HOME/.markdownlint-cli2.yaml" is a useful improvement. Consider making the config file path configurable via an environment variable for greater flexibility in different environments. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 20% vs. threshold = 50% The comment is suggesting an enhancement to make the config file path configurable. This is a "nice to have" feature suggestion rather than identifying a problem with the current implementation. The current code hardcodes the path to "$HOME/.markdownlint-cli2.yaml" and now validates its existence. The suggestion would add flexibility, but there's no evidence that this flexibility is needed. The rules state that comments should identify clear code changes that are required, not suggest optional enhancements unless they are clearly important. This seems like a speculative improvement rather than addressing a concrete issue. This could be a legitimate code quality improvement that makes the script more flexible and testable. The suggestion is actionable and clear, which the rules say is good for code quality refactors. While the suggestion is actionable, there's no evidence that this flexibility is actually needed or that the current hardcoded path is causing problems. The change in the diff was specifically to add validation for the config file, not to make it configurable. This is more of a "could be better" suggestion rather than identifying something that should be changed. This comment should be deleted. It's suggesting an optional enhancement rather than identifying a clear issue with the code. The rules emphasize not making comments unless there is clearly a code change required, and this is a speculative improvement without strong evidence it's needed.
Workflow ID: wflow_drqcbHrI2CFfvmUi
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
Summary
Updates markdown-validator plugin to use a global markdownlint configuration with 160-character line length.
--config ~/.markdownlint-cli2.yamlflag to validation command.markdownlint.jsonwith correct settingsChanges
--configflag to markdownlint-cli2 commandConfiguration
Test Plan
~/.markdownlint-cli2.yamlwith recommended configRelated
🤖 Generated with Claude Code
Important
Updates markdown-validator to use global markdownlint config with specific line length settings and documents the requirement.
--config ~/.markdownlint-cli2.yamlflag tovalidate-markdown.shfor markdownlint-cli2.README.md..markdownlint.jsonwithMD013settings:line_length: 160,heading_line_length: 120,code_block_line_length: 160,tables: false.MD060in.markdownlint.json.README.md.This description was created by
for f334b6d. You can customize this summary. It will automatically update as commits are pushed.