-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #122 from adangel/issue-121
Escape violation messages
- Loading branch information
Showing
13 changed files
with
148 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
test/resources/summary_report_builder_issue121/base-report.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<pmd xmlns="http://pmd.sourceforge.net/report/2.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://pmd.sourceforge.net/report/2.0.0 http://pmd.sourceforge.net/report_2_0_0.xsd" | ||
version="6.3.0-SNAPSHOT" timestamp="2018-04-16T22:41:45.065"> | ||
<file name="Same1.java"> | ||
<violation beginline="402" endline="402" begincolumn="22" endcolumn="36" rule="CyclomaticComplexity" ruleset="Design" externalInfoUrl="https://docs.pmd-code.org/snapshot/pmd_rules_apex_design.html#cyclomaticcomplexity" priority="3"> | ||
The method 'foo(List<SObject>, Map<Id,SObject>)' has a cyclomatic complexity of 19. | ||
</violation> | ||
</file> | ||
</file> | ||
</pmd> |
10 changes: 10 additions & 0 deletions
10
test/resources/summary_report_builder_issue121/base_branch_info.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"branch_last_sha":"test sha", | ||
"branch_last_message":"test message", | ||
"branch_name":"base_branch", | ||
"timestamp":"foo", | ||
"execution_time":121.123, | ||
"jdk_version":"test version", | ||
"language":"test language", | ||
"pull_request":42 | ||
} |
Empty file.
16 changes: 16 additions & 0 deletions
16
test/resources/summary_report_builder_issue121/expected_base_data.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
let project = { | ||
"source_link_base":"https://github.com/pmd/sample_project/tree/main", | ||
"source_link_template":"https://github.com/pmd/sample_project/tree/main/{file}#L{line}", | ||
"file_index":[ | ||
"Same1.java" | ||
], | ||
"violations":[ | ||
{ | ||
"t":"+", | ||
"l":402, | ||
"f":0, | ||
"r":"CyclomaticComplexity", | ||
"m":"The method 'foo(List<SObject>, Map<Id,SObject>)' has a cyclomatic complexity of 19." | ||
} | ||
] | ||
} |
16 changes: 16 additions & 0 deletions
16
test/resources/summary_report_builder_issue121/expected_patch_data.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
let project = { | ||
"source_link_base":"https://github.com/pmd/sample_project/tree/main", | ||
"source_link_template":"https://github.com/pmd/sample_project/tree/main/{file}#L{line}", | ||
"file_index":[ | ||
"Same1.java" | ||
], | ||
"violations":[ | ||
{ | ||
"t":"+", | ||
"l":402, | ||
"f":0, | ||
"r":"CyclomaticComplexity", | ||
"m":"The method 'foo(List<SObject>, Map<Id, SObject>)' has a cyclomatic complexity of 19." | ||
} | ||
] | ||
} |
16 changes: 16 additions & 0 deletions
16
test/resources/summary_report_builder_issue121/expected_project_data.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
let project = { | ||
"source_link_base":"https://github.com/pmd/sample_project/tree/main", | ||
"source_link_template":"https://github.com/pmd/sample_project/tree/main/{file}#L{line}", | ||
"file_index":[ | ||
"Same1.java" | ||
], | ||
"violations":[ | ||
{ | ||
"t":"~", | ||
"l":402, | ||
"f":0, | ||
"r":"CyclomaticComplexity", | ||
"m":"The method 'foo(List<SObject>, Map<Id<del class=\"differ\">,</del><ins class=\"differ\">, </ins>SObject>)' has a cyclomatic complexity of 19." | ||
} | ||
] | ||
} |
12 changes: 12 additions & 0 deletions
12
test/resources/summary_report_builder_issue121/patch-report.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<pmd xmlns="http://pmd.sourceforge.net/report/2.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://pmd.sourceforge.net/report/2.0.0 http://pmd.sourceforge.net/report_2_0_0.xsd" | ||
version="6.3.0-SNAPSHOT" timestamp="2018-04-16T22:41:45.065"> | ||
<file name="Same1.java"> | ||
<violation beginline="402" endline="402" begincolumn="22" endcolumn="36" rule="CyclomaticComplexity" ruleset="Design" externalInfoUrl="https://docs.pmd-code.org/snapshot/pmd_rules_apex_design.html#cyclomaticcomplexity" priority="3"> | ||
The method 'foo(List<SObject>, Map<Id, SObject>)' has a cyclomatic complexity of 19. | ||
</violation> | ||
</file> | ||
</file> | ||
</pmd> |
10 changes: 10 additions & 0 deletions
10
test/resources/summary_report_builder_issue121/patch_branch_info.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"branch_last_sha":"test sha", | ||
"branch_last_message":"test message", | ||
"branch_name":"patch_branch", | ||
"timestamp":"foo2", | ||
"execution_time":121.123, | ||
"jdk_version":"test version", | ||
"language":"test language", | ||
"pull_request":42 | ||
} |
14 changes: 14 additions & 0 deletions
14
test/resources/summary_report_builder_issue121/project-list.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0"?> | ||
|
||
<projectlist xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="projectlist_1_2_0.xsd"> | ||
<description>Standard Projects</description> | ||
|
||
<project> | ||
<name>sample_project</name> | ||
<type>git</type> | ||
<connection>https://github.com/pmd/sample_project</connection> | ||
<tag>main</tag> | ||
</project> | ||
|
||
</projectlist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters