Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent rules incorrectly returning conflicting fixes to same position (
#2830) * Fix L052 bug deleting space after Snowflake SET statement * Make a similar fix elsewhere in L052, DRY up the code * Update tests to raise error on fixes with duplicate anchors * Fix L036 bug: Deleting the same segment multiple times * Rework the fixes to use object *identity*, not *equality* * Comments * Update L052 to use IdentitySet * Coverage checker * Update src/sqlfluff/core/linter/linter.py * Update test/fixtures/rules/std_rule_cases/L052.yml Co-authored-by: Barry Pollard <barry_pollard@hotmail.com> * PR review: Raise log level for these messages to CRITICAL * Add comment per code review * Update test/fixtures/rules/std_rule_cases/L052.yml * Bug fix to IdentitySet * Update L039 to avoid returning multiple fixes with same anchors * Add test case for fixed L039 issue * Fix one of the post-fix parse error bugs in L053 * Fix L053 bug, allow create_before + create_after for same anchor * Tweaks * Fix type annotation * Comments, tweaks * Fix bug in L050, fix missing space in message * Remove commented-out code * Add "pragma: no cover" * Add "pragma: no cover" * PR review * More L039 comments * Discard fixes from lint results if tehre are conflicts Co-authored-by: Barry Hart <barry.hart@mailchimp.com> Co-authored-by: Barry Pollard <barry_pollard@hotmail.com>
- Loading branch information
1 parent
e94005e
commit 0e91f42
Showing
11 changed files
with
366 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.