Exclude code location from code base URL

Python method str.format allows easy templating using substitutions
identified by braces ('{' and '}'). Using two levels of nested
substitutions can be achieved by doubling braces ("{{" and "}}").

Hound configuration creator script was supposed to use two levels of
nested substitutions and still leave braced components within the
templated string for further substitution by the Hound tool. This would
require using multitude of braces which would decrease readability
significantly.

This is why code location template is appended to the code base URL at
the latest.

If there will be need for more levels of nested templates, this code
shall be further refactored to use only named fields, str.format_map()
(available in Python 3.2+) and SafeDict, e.g.

  >>> class SafeDict(dict):
  ...     def __missing__(self, key):
  ...         return '{' + key + '}'
  ...

which would leave braced components within the processed template in
case given key is missing.

Issue-ID: ONAPARC-579
Change-Id: I420d076867aa891edb2a945a8cd58e168c892ac3
Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
1 file changed
tree: d0a340c18d5f1bedc71b7aff33456a0585cef0e9
  1. bootstrap/
  2. deployment/
  3. docs/
  4. documentation/
  5. S3Ptools/
  6. test/
  7. version-manifest/
  8. .coafile
  9. .gitattributes
  10. .gitignore
  11. .gitreview
  12. .readthedocs.yaml
  13. .yamllint
  14. INFO.yaml
  15. README.md
  16. tox.ini
  17. version.properties
README.md

ONAP Integration

Description

Responsible for the integration framework / automated tools, code and scripts, best practice guidance related to cross-project Continuous System Integration Testing (CSIT), and delivery of the ONAP project.

See https://wiki.onap.org/display/DW/Integration+Project for additional details.

Sub-projects

See respective directories for additional details about each sub-project.