Skip to content

Commit

Permalink
Tell Sonar that namespaces are safe
Browse files Browse the repository at this point in the history
Signed-off-by: Guillaume Roger <guillaume.roger@alliander.com>
  • Loading branch information
guillaume-alliander committed Oct 20, 2023
1 parent 0213c8c commit 96f91a9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions modernpython/utils/constants.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Default namespaces used by CGMES.
NAMESPACES = {
"cim": "http://iec.ch/TC57/CIM100#",
"entsoe": "http://entsoe.eu/CIM/SchemaExtension/3/1#",
"md": "http://iec.ch/TC57/61970-552/ModelDescription/1#",
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"xsd": "http://www.w3.org/2001/XMLSchema#",
NAMESPACES = { # Those are strings, not real addresses, hence the NOSONAR.
"cim": "http://iec.ch/TC57/CIM100#", # NOSONAR
"entsoe": "http://entsoe.eu/CIM/SchemaExtension/3/1#", # NOSONAR
"md": "http://iec.ch/TC57/61970-552/ModelDescription/1#", # NOSONAR
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#", # NOSONAR
"xsd": "http://www.w3.org/2001/XMLSchema#", # NOSONAR
}

0 comments on commit 96f91a9

Please sign in to comment.