Skip to content

docs: exempt tool-generated SysConfig files from column-length limits#148

Merged
pratheesh-ti merged 1 commit into
TexasInstruments:mainfrom
pratheesh:fix/syscfg-generated-column-exemption
Jun 26, 2026
Merged

docs: exempt tool-generated SysConfig files from column-length limits#148
pratheesh-ti merged 1 commit into
TexasInstruments:mainfrom
pratheesh:fix/syscfg-generated-column-exemption

Conversation

@pratheesh

Copy link
Copy Markdown
Contributor

Problem

best_practices.md defines a 79-soft / 129-hard column limit. The automated reviewer (Qodo) applies this rule to SysConfig example.syscfg files, which are machine-generated. Their @cliArgs / @v2CliArgs header lines are single-line command strings (typically 140–165 cols) that exceed column 129 by construction and cannot be wrapped without breaking SysConfig's round-trip parsing.

This produces false-positive "rule violation" flags on any PR that so much as touches a .syscfg file. Concrete example: PR #140 (issue #108) only swapped the OPEN_PRU@<ver> token inside pre-existing long generated lines, yet was flagged for a 129-column violation it neither introduced nor can fix.

Note the repo's own CI does not enforce this limit on generated files (the column check in makefile.yml is commented out), so this is purely a documentation/review-guidance gap.

Change

Make the existing carve-out explicit. The rule already exempts markdown and .txt docs; this adds tool-generated files (notably SysConfig *.syscfg) to that same exemption, in both places the limit is stated:

  • The PRU C firmware "Key conventions" summary.
  • General Remarks rule 11, with a short rationale.

No source or build behavior changes — documentation only.

Why this is the right scope

The limit exists to keep hand-written code readable. Generated files are owned by their tool; flagging them as violations creates noise that trains reviewers (human and automated) to ignore the rule. Exempting them keeps the limit meaningful where it matters.

The column-length best practices (79 soft / 129 hard) were written for
hand-authored source. SysConfig example.syscfg files are machine-
generated: their @cliArgs/@v2CliArgs header lines are single-line
command strings that exceed column 129 by construction and cannot be
wrapped without breaking the tool's round-trip.

Treating those lines as violations produces false-positive review flags
on any PR that touches a .syscfg file (for example the OPEN_PRU version
bump in TexasInstruments#108/TexasInstruments#140, which only edited a token inside pre-existing long
lines). Make the exemption explicit, consistent with the existing
markdown/.txt carve-out, so automated and human reviewers stop flagging
generated content.
@TexasInstruments TexasInstruments deleted a comment from qodo-code-review Bot Jun 26, 2026
@pratheesh-ti pratheesh-ti merged commit 0655898 into TexasInstruments:main Jun 26, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants