diff options
author | alevitskii <[email protected]> | 2025-09-02 06:57:05 +0300 |
---|---|---|
committer | alevitskii <[email protected]> | 2025-09-02 07:19:27 +0300 |
commit | 7e399723cf6d967e20c8f9d2ee975426636242c5 (patch) | |
tree | abd5283daba11c07afc8fc16f02aec2c19e2272a /build/plugins/_dart_fields.py | |
parent | 14e9c865541d5abe545cb496c0143e4905b00c78 (diff) |
Drop LINTER param from styling macroses and cleanup deps
Drop LINTER param from styling macroses
commit_hash:00dd2e2ee103e509cff38f520d4779974abe39a7
Diffstat (limited to 'build/plugins/_dart_fields.py')
-rw-r--r-- | build/plugins/_dart_fields.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/build/plugins/_dart_fields.py b/build/plugins/_dart_fields.py index 9f640cb022d..98fe4c9ef16 100644 --- a/build/plugins/_dart_fields.py +++ b/build/plugins/_dart_fields.py @@ -391,8 +391,7 @@ class CustomDependencies: @classmethod def depends_with_linter(cls, unit, flat_args, spec_args): - linter = Linter.value(unit, flat_args, spec_args)[Linter.KEY] - deps = spec_args.get('DEPENDS', []) + [os.path.dirname(linter)] + deps = spec_args.get('DEPENDS', []) for dep in deps: unit.ondepends(dep) return {cls.KEY: " ".join(deps)} @@ -590,14 +589,6 @@ class KtlintBinary: return {cls.KEY: value} -class Linter: - KEY = 'LINTER' - - @classmethod - def value(cls, unit, flat_args, spec_args): - return {cls.KEY: spec_args['LINTER'][0]} - - class LintWrapperScript: KEY = 'LINT-WRAPPER-SCRIPT' |