Repository navigation
serialization filter: any one expressen preferred - #371
jkowalleck wants to merge 4 commits into
Conversation
1b5c134 to
dc8d354
Compare
733c55b to
087fd32
Compare
087fd32 to
1d13eb9
Compare
f20fe65 to
0a40f1e
Compare
Signed-off-by: Jan Kowalleck <[email protected]>
Signed-off-by: Jan Kowalleck <[email protected]>
8c91688 to
bd534ef
Compare
Signed-off-by: Jan Kowalleck <[email protected]>
Signed-off-by: Jan Kowalleck <[email protected]>
bd534ef to
4cd9b5f
Compare
| ) | ||
|
|
||
|
|
||
| def get_component_setuptools_simple_no_version(bom_ref: Optional[str] = None) -> Component: |
There was a problem hiding this comment.
E302: expected 2 blank lines, found 1
ℹ️ Expand to see all @sonatype-lift commands
You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.
| Command | Usage |
|---|---|
@sonatype-lift ignore |
Leave out the above finding from this PR |
@sonatype-lift ignoreall |
Leave out all the existing findings from this PR |
@sonatype-lift exclude <file|issue|path|tool> |
Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file |
Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.
| product(_bom_getters, ['json'], [JsonV1Dot4, JsonV1Dot3, JsonV1Dot2]), | ||
| )) | ||
| @unpack | ||
| def test_serialize(self, bom_getter: Callable[[], Bom], target: str, schema_type: Union[Type[Json], Type[Xml]]) -> None: |
There was a problem hiding this comment.
E501: line too long (124 > 120 characters)
ℹ️ Expand to see all @sonatype-lift commands
You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.
| Command | Usage |
|---|---|
@sonatype-lift ignore |
Leave out the above finding from this PR |
@sonatype-lift ignoreall |
Leave out all the existing findings from this PR |
@sonatype-lift exclude <file|issue|path|tool> |
Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file |
Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.
| @classmethod | ||
| def deserialize(cls, o: object) -> List[LicenseChoice]: | ||
| raise NotImplementedError | ||
| return [LicenseChoice.from_json(data) for data in o] |
There was a problem hiding this comment.
E1101: Class 'LicenseChoice' has no 'from_json' member
ℹ️ Expand to see all @sonatype-lift commands
You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.
| Command | Usage |
|---|---|
@sonatype-lift ignore |
Leave out the above finding from this PR |
@sonatype-lift ignoreall |
Leave out all the existing findings from this PR |
@sonatype-lift exclude <file|issue|path|tool> |
Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file |
Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.
| """ | ||
| bom_expression = get_bom_for_issue_365_expression() | ||
| bom_multi = get_bom_for_issue_365_multiple_licenses() | ||
| component_multi: Component = bom_multi.components[0] |
There was a problem hiding this comment.
reportGeneralTypeIssues: Argument of type "Literal[0]" cannot be assigned to parameter "index" of type "slice" in function "getitem"
"Literal[0]" is incompatible with "slice"
❗❗ 3 similar findings have been found in this PR
🔎 Expand here to view all instances of this finding
| File Path | Line Number |
|---|---|
| tests/data.py | 437 |
| tests/data.py | 438 |
| tests/data.py | 438 |
Visit the Lift Web Console to find more details in your report.
ℹ️ Expand to see all @sonatype-lift commands
You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.
| Command | Usage |
|---|---|
@sonatype-lift ignore |
Leave out the above finding from this PR |
@sonatype-lift ignoreall |
Leave out all the existing findings from this PR |
@sonatype-lift exclude <file|issue|path|tool> |
Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file |
Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.
| @classmethod | ||
| def deserialize(cls, o: object) -> List[LicenseChoice]: | ||
| raise NotImplementedError | ||
| return [LicenseChoice.from_json(data) for data in o] |
There was a problem hiding this comment.
vulture-100: unreachable code after 'raise'
ℹ️ Expand to see all @sonatype-lift commands
You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.
| Command | Usage |
|---|---|
@sonatype-lift ignore |
Leave out the above finding from this PR |
@sonatype-lift ignoreall |
Leave out all the existing findings from this PR |
@sonatype-lift exclude <file|issue|path|tool> |
Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file |
Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.
fixes #365
implementation according to #365 (comment)
outpur is about to change,
so this is seen as a breaking change !