Skip to content

feat: add checkMissingCells option to table-column-count #434

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

TKDev7
Copy link
Contributor

@TKDev7 TKDev7 commented Jun 23, 2025

Prerequisites checklist

What is the purpose of this pull request?

This pull request introduces a new option, checkMissingCells, to the table-column-count rule. The purpose of this addition is to provide users with more granular control over how the rule handles tables with missing cells, allowing for stricter or more flexible enforcement as needed.

What changes did you make? (Give an overview)

  • Added the checkMissingCells option to table-column-count
  • Updated rule logic, docs, and tests to support the new option

Related Issues

Fixes #422

Is there anything you'd like reviewers to focus on?

@snitin315 snitin315 added this to Triage Jun 23, 2025
@github-project-automation github-project-automation bot moved this to Needs Triage in Triage Jun 23, 2025
@snitin315 snitin315 moved this from Needs Triage to Implementing in Triage Jun 23, 2025
snitin315
snitin315 previously approved these changes Jun 26, 2025
Copy link
Contributor

@snitin315 snitin315 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, would like another review before merge.

@snitin315 snitin315 moved this from Implementing to Second Review Needed in Triage Jun 26, 2025
@@ -43,7 +43,7 @@ Examples of **correct** code for this rule:
<!-- Rows with fewer cells are valid because they render correctly and no data is lost -->
| Header | Header | Header |
| ------ | ------ | ------ |
| Cell | Cell | |
| Cell | Cell |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
| Cell | Cell |
| Cell | Cell | |

I think the original intention of this example is to show that an empty cell is okay. The following example already covers the change you made.

image

Could you revert the example?

Copy link
Contributor Author

@TKDev7 TKDev7 Jun 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its description says: <!-- Data row with fewer cells than header (VALID for this rule) -->. Without this change, the number of cells would have matched the header.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Second Review Needed
Development

Successfully merging this pull request may close these issues.

Rule Change: Extend table-column-count to flag rows with fewer cells than header
3 participants