Skip to content

Commit 67f312c

Browse files
authored
Merge pull request #79834 from ahoppen/remove-syntax-lint
[build-script] Remove option to lint swift-syntax
2 parents a4b8878 + 7256a92 commit 67f312c

File tree

4 files changed

+0
-39
lines changed

4 files changed

+0
-39
lines changed

utils/build-presets.ini

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2016,7 +2016,6 @@ swiftsyntax
20162016
swiftsyntax-enable-rawsyntax-validation
20172017
swiftsyntax-enable-test-fuzzing
20182018
swiftsyntax-verify-generated-files
2019-
swiftsyntax-lint
20202019
swiftformat
20212020
skstresstester
20222021
sourcekit-lsp
@@ -2045,7 +2044,6 @@ assertions
20452044
swiftsyntax
20462045
swiftformat
20472046
install-swiftformat
2048-
swiftsyntax-lint
20492047
sourcekit-lsp-lint
20502048

20512049
[preset: buildbot_swiftformat_linux]
@@ -2054,7 +2052,6 @@ release
20542052
assertions
20552053
swiftsyntax
20562054
swiftformat
2057-
swiftsyntax-lint
20582055

20592056
#===------------------------------------------------------------------------===#
20602057
# Test Swift Stress Tester

utils/build_swift/build_swift/driver_arguments.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -787,9 +787,6 @@ def create_argument_parser():
787787
help='set to validate that RawSyntax layout nodes contain children of ' +
788788
'the expected types and that RawSyntax tokens have the expected ' +
789789
'token kinds')
790-
option('--swiftsyntax-lint',
791-
toggle_true('swiftsyntax_lint'),
792-
help='verify that swift-syntax Source code is formatted correctly')
793790
option(['--install-sourcekit-lsp'], toggle_true('install_sourcekitlsp'),
794791
help='install SourceKitLSP')
795792
option(['--install-swiftformat'], toggle_true('install_swiftformat'),

utils/build_swift/tests/expected_options.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@
122122
'swiftsyntax_verify_generated_files': False,
123123
'swiftsyntax_enable_rawsyntax_validation': False,
124124
'swiftsyntax_enable_test_fuzzing': False,
125-
'swiftsyntax_lint': False,
126125
'install_playgroundsupport': False,
127126
'install_sourcekitlsp': False,
128127
'install_swiftformat': False,
@@ -669,8 +668,6 @@ class BuildScriptImplOption(_BaseOption):
669668
dest='swiftsyntax_enable_rawsyntax_validation'),
670669
EnableOption('--swiftsyntax-enable-test-fuzzing',
671670
dest='swiftsyntax_enable_test_fuzzing'),
672-
EnableOption('--swiftsyntax-lint',
673-
dest='swiftsyntax_lint'),
674671
EnableOption('--install-swiftpm', dest='install_swiftpm'),
675672
EnableOption('--install-swift-driver', dest='install_swift_driver'),
676673
EnableOption('--install-sourcekit-lsp', dest='install_sourcekitlsp'),

utils/swift_build_support/swift_build_support/products/swiftformat.py

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -103,39 +103,9 @@ def should_build(self, host_target):
103103

104104
def build(self, host_target):
105105
self.run_build_script_helper('build', host_target)
106-
if self.args.swiftsyntax_lint:
107-
self.lint_swiftsyntax(host_target)
108106
if self.args.sourcekitlsp_lint:
109107
self.lint_sourcekitlsp()
110108

111-
def lint_swiftsyntax(self, host_target):
112-
swift_exec = os.path.join(
113-
self.install_toolchain_path(host_target),
114-
'bin',
115-
'swift'
116-
)
117-
swift_syntax_dev_utils_dir = os.path.join(
118-
os.path.dirname(self.source_dir),
119-
'swift-syntax',
120-
'SwiftSyntaxDevUtils'
121-
)
122-
swift_format_exec = os.path.join(
123-
self.build_dir,
124-
self.configuration(),
125-
'swift-format'
126-
)
127-
linting_cmd = [
128-
swift_exec,
129-
'run',
130-
'--package-path', swift_syntax_dev_utils_dir,
131-
'swift-syntax-dev-utils',
132-
'format',
133-
'--verbose',
134-
'--lint',
135-
'--swift-format', swift_format_exec
136-
]
137-
shell.call(linting_cmd, env={'SWIFTCI_USE_LOCAL_DEPS': '1'})
138-
139109
def lint_sourcekitlsp(self):
140110
linting_cmd = [
141111
os.path.join(self.build_dir, self.configuration(), 'swift-format'),

0 commit comments

Comments
 (0)