File: _region.py

package info (click to toggle)
python-sarif-python-om 1.0.4-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 424 kB
  • sloc: python: 634; makefile: 3
file content (21 lines) | stat: -rw-r--r-- 1,224 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# This file was generated by jschema_to_python version 1.2.3.

import attr


@attr.s
class Region(object):
    """A region within an artifact where a result was detected."""

    byte_length = attr.ib(default=None, metadata={"schema_property_name": "byteLength"})
    byte_offset = attr.ib(default=-1, metadata={"schema_property_name": "byteOffset"})
    char_length = attr.ib(default=None, metadata={"schema_property_name": "charLength"})
    char_offset = attr.ib(default=-1, metadata={"schema_property_name": "charOffset"})
    end_column = attr.ib(default=None, metadata={"schema_property_name": "endColumn"})
    end_line = attr.ib(default=None, metadata={"schema_property_name": "endLine"})
    message = attr.ib(default=None, metadata={"schema_property_name": "message"})
    properties = attr.ib(default=None, metadata={"schema_property_name": "properties"})
    snippet = attr.ib(default=None, metadata={"schema_property_name": "snippet"})
    source_language = attr.ib(default=None, metadata={"schema_property_name": "sourceLanguage"})
    start_column = attr.ib(default=None, metadata={"schema_property_name": "startColumn"})
    start_line = attr.ib(default=None, metadata={"schema_property_name": "startLine"})