b538f8e02f54afe537e0b0cecdddcd63d8740daa,src/python/pants/engine/legacy/parser.py,LegacyPythonCallbacksParser,parse,#LegacyPythonCallbacksParser#Any#Any#,127
Before Change
line_being_tokenized
))
elif self._build_file_imports_behavior == "error":
raise ParseError(
"import statements have been banned, but tried to import: {}".format(
line_being_tokenized
)
)
else:
raise ParseError(
"Didn"t know what to do for build_file_imports_behavior value {}".format(
self._build_file_imports_behavior
After Change
f"https://www.pantsbuild.org/howto_plugin.html"
)
else:
raise ParseError(
f"Import used in {filepath} at line {lineno}. Import statements are banned in "
f"BUILD files in this repository and should generally be avoided because "
f"they can easily break Pants caching and lead to stale results. Instead, consider "
f"rewriting your code into a Pants plugin: "
f"https://www.pantsbuild.org/howto_plugin.html"
)
return list(self._parse_context._storage.objects)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: pantsbuild/pants
Commit Name: b538f8e02f54afe537e0b0cecdddcd63d8740daa
Time: 2020-01-31
Author: ericarellano@me.com
File Name: src/python/pants/engine/legacy/parser.py
Class Name: LegacyPythonCallbacksParser
Method Name: parse
Project Name: pantsbuild/pants
Commit Name: 39e54f59f805e159c04c19b2f0be5e5277a05e99
Time: 2019-12-19
Author: asher@asherfoa.com
File Name: src/python/pants/option/custom_types.py
Class Name: DictValueComponent
Method Name: merge
Project Name: pantsbuild/pants
Commit Name: 39e54f59f805e159c04c19b2f0be5e5277a05e99
Time: 2019-12-19
Author: asher@asherfoa.com
File Name: src/python/pants/option/custom_types.py
Class Name: ListValueComponent
Method Name: merge