Add support for multiples files for Python Pip config file class
Adds support to find and parse multiple files for the PythonPip config class. This is because Pip may have more than one 'requirements' file. This means that the ConfigFileParser may produce an array of objects where more than one object may have the same lang value. In the next MR, we will update the Repository X-Ray ScanDependencies service so that it combines the payloads of config file objects belonging to the same lang.
显示
- ee/lib/ai/context/dependencies/config_file_parser.rb 6 个添加, 4 个删除ee/lib/ai/context/dependencies/config_file_parser.rb
- ee/lib/ai/context/dependencies/config_files/base.rb 9 个添加, 0 个删除ee/lib/ai/context/dependencies/config_files/base.rb
- ee/lib/ai/context/dependencies/config_files/constants.rb 1 个添加, 1 个删除ee/lib/ai/context/dependencies/config_files/constants.rb
- ee/lib/ai/context/dependencies/config_files/python_pip.rb 9 个添加, 5 个删除ee/lib/ai/context/dependencies/config_files/python_pip.rb
- ee/spec/lib/ai/context/dependencies/config_file_parser_spec.rb 112 个添加, 3 个删除...ec/lib/ai/context/dependencies/config_file_parser_spec.rb
- ee/spec/lib/ai/context/dependencies/config_files/base_spec.rb 31 个添加, 0 个删除...pec/lib/ai/context/dependencies/config_files/base_spec.rb
- ee/spec/lib/ai/context/dependencies/config_files/python_pip_spec.rb 14 个添加, 10 个删除...b/ai/context/dependencies/config_files/python_pip_spec.rb
加载中
想要评论请 注册 或 登录