Skip to content

Comments

Linter#7

Open
melonamin wants to merge 339 commits intomasterfrom
linter
Open

Linter#7
melonamin wants to merge 339 commits intomasterfrom
linter

Conversation

@melonamin
Copy link
Member

No description provided.

…rict TQ003 to MSSQL

Prevent redundant overlap-retry passes by tracking already-retried SQL
states so identical input is never re-linted. Cap per-iteration rule
evaluations in the parse-error incremental path for large SQL to avoid
quadratic slowdown. Guard TQ003 (empty GO batches) to only fire under
the MSSQL dialect. Add unit tests for fix candidate stats and
non-MSSQL TQ003 skip. Clarify build_case_anchor_cache ordering with
a comment explaining the intentional pre-assignment pattern.
- Document all fix-loop tuning constants with rationale comments
- Consolidate three duplicated fallback blocks into try_fallback_fix helper
- Clean up profiling: merge two zero-ms cached marks into one
- Warn on stderr when --format is used with --fix-only (ignored)
- Add 30s wall-clock FIX_LOOP_TIMEOUT as safety net for pathological inputs
- Extract complex stop condition into should_stop_large_mostly_unfixable()
- Add module-level docs and section markers to lt_002.rs for navigability
- Replace HashSet<String> with hash-based cycle detection (HashSet<u64>)
  to avoid cloning full SQL strings in fix loop and incremental planner
- Sanitize lint-fix API error response to not leak internal details
- Add doc comments to public API types: LintFixRuntimeOptions,
  FixCandidateStats, LintFixExecution, apply_lint_fixes_with_runtime_options
- Add debug_assert for blocked-total invariant in collect_fix_candidate_stats
- Switch API endpoint to shared multi-pass runtime pipeline and update
  RF004 test to match cascading multi-pass behavior
- Fix pre-existing clippy warnings: collapsible_if in LT002, allow
  too_many_arguments on LT003/fix.rs functions
- Add requires="lint" constraint for --exclude-rules CLI flag
- Extract push_current_char helper in parser sanitizer for clarity
- Context section: replace obsolete 15+57 split with current 72-rule
  one-rule-per-file architecture
- Mark all migration phases (0-3) as COMPLETE
- Update execution pipeline from "Proposed" to active
- Expand Phase 1 rule list to include all migrated families
- Condense trailing progress items and link to sqlfluff-gap-matrix.md
- Mark resolved risks and success criteria
- Update date to 2026-02-21
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.

1 participant