commit 0792ad68a9b39b74631a1ecc88512031e6547263
parent e45538fc3799aa28c53e59533bc9c54143c0c0a6
Author: serge-sans-paille <sguelton@mozilla.com>
Date: Fri, 12 Dec 2025 21:56:36 +0000
Bug 2005707 - Fix includes linter --fix handler r=ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D276155
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tools/lint/includes/__init__.py b/tools/lint/includes/__init__.py
@@ -30,7 +30,7 @@ def generate_diff(path, raw_content, line_to_delete):
return diff
-def fix(path, raw_content, line_to_delete):
+def fix_includes(path, raw_content, line_to_delete):
prev_content = raw_content.split("\n")
new_content = [
raw_line
@@ -80,7 +80,7 @@ def lint_mfbt_headers(results, path, raw_content, config, fix):
lineno = 1 + raw_content.count("\n", 0, match.start())
if fix:
- fix(path, raw_content, lineno)
+ fix_includes(path, raw_content, lineno)
results["fixed"] += 1
else:
diff = generate_diff(path, raw_content, lineno)
@@ -116,7 +116,7 @@ def lint_std_headers(results, path, raw_content, config, fix):
lineno = 1 + raw_content.count("\n", 0, match.start())
if fix:
- fix(path, raw_content, lineno)
+ fix_includes(path, raw_content, lineno)
results["fixed"] += 1
else:
diff = generate_diff(path, raw_content, lineno)