Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disussion#7862: adds first test case #7890

Closed
Changes from 1 commit
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
6cf7b26
disussion#7862: adds first test case
BruceGitHub Apr 23, 2022
d0f4311
adds pretty options
BruceGitHub May 11, 2022
e84df65
fix test
BruceGitHub May 11, 2022
3c204d5
adds helper classes
BruceGitHub May 11, 2022
4baa288
changes ConsoleReport.php to use pretty option
BruceGitHub May 11, 2022
10e4fba
fix code style
BruceGitHub May 11, 2022
6c88ff9
disussion#7862: adds first test case
BruceGitHub Apr 23, 2022
5882b16
adds pretty options
BruceGitHub May 11, 2022
38e63e0
fix test
BruceGitHub May 11, 2022
4fd6c8a
adds helper classes
BruceGitHub May 11, 2022
749d437
changes ConsoleReport.php to use pretty option
BruceGitHub May 11, 2022
d398f05
fix code style
BruceGitHub May 11, 2022
4f91c39
spyke commit use InvolvedTypes.php
BruceGitHub May 17, 2022
7226ac8
Merge remote-tracking branch 'origin/pr-prettry-print-from-discussion…
BruceGitHub May 17, 2022
7f181e2
simplify the code
BruceGitHub May 17, 2022
3fe68d2
cs-fix
BruceGitHub May 18, 2022
c28eab1
changes namespace of InvolvedTypes.php, fixes some test
BruceGitHub May 18, 2022
f41279b
fixes typo
BruceGitHub May 19, 2022
e2a6c50
cs-fix
BruceGitHub May 19, 2022
9ab3e42
try to fix issue with windows
BruceGitHub May 19, 2022
4949c77
fix test ReportOutputTest.php
BruceGitHub May 19, 2022
0a4ade0
try to fix psalm issues
BruceGitHub May 19, 2022
b8843d6
supress psalm error for probable error
BruceGitHub May 19, 2022
48f77df
suppress psalm error in test
BruceGitHub May 19, 2022
454753a
adds test InvolvedTypesTest.php
BruceGitHub May 23, 2022
029a06f
refactor PrettyFormat.php
BruceGitHub May 23, 2022
b0ff81a
change name PrettyGeneric.php to PrettyHelper.php
BruceGitHub May 23, 2022
7883ece
Merge branch 'master' into pr-prettry-print-from-discussion-7862
BruceGitHub May 23, 2022
1e45d5e
adds test for PrettyCompareTest.php
BruceGitHub May 27, 2022
8008f8f
adds test for PrettyFormatTest.php
BruceGitHub May 27, 2022
74db30e
adds test for PrettyCursorBracketTest.php
BruceGitHub May 27, 2022
9f46f65
adds test for PrettyCompareTest.php
BruceGitHub May 27, 2022
ecd78ab
try to fix windows issues
BruceGitHub May 28, 2022
187584b
Merge branch 'master' into pr-prettry-print-from-discussion-7862
BruceGitHub May 28, 2022
6472936
try to fix windows issues attempt 1
BruceGitHub May 28, 2022
0160796
try to fix windows issues attempt 1 + csfix
BruceGitHub May 28, 2022
62b57b6
try to fix windows issues attempt 2
BruceGitHub May 28, 2022
257a69d
Merge branch 'master' into pr-prettry-print-from-discussion-7862
BruceGitHub May 30, 2022
5b41392
try to fix windows issues attempt 3
BruceGitHub May 30, 2022
76ede51
try to fix windows issues attempt 4 (double quote)
BruceGitHub Jun 2, 2022
fdd3f32
try to fix windows issues attempt 5 (mark test as skipped)
BruceGitHub Jun 2, 2022
e151de1
try to fix windows issues attempt 6 (normalized to \n)
BruceGitHub Jun 2, 2022
f42aee2
try to fix windows issues attempt 6-a (enable some test \n)
BruceGitHub Jun 2, 2022
3a25e06
try to fix windows issues attempt 6-b (add compare test \n)
BruceGitHub Jun 2, 2022
ba18b91
try to fix windows issues attempt 6-c (add format test \n)
BruceGitHub Jun 2, 2022
935806f
optimize common code with trait
BruceGitHub Jun 2, 2022
155c6d0
Revert "optimize common code with trait"
BruceGitHub Jun 3, 2022
e322eef
new testcase and micro fix
BruceGitHub Jun 10, 2022
1483b93
improve code and test of prettyFormat
BruceGitHub Jun 10, 2022
8bac4c6
improvement code, and test of prettyMatchToken
BruceGitHub Jun 10, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
adds pretty options
BruceGitHub committed May 11, 2022
commit 5882b16062b892647f15a7c43c6fb6125501e9e4
4 changes: 4 additions & 0 deletions src/Psalm/Report.php
Original file line number Diff line number Diff line change
@@ -76,6 +76,9 @@ abstract class Report
/** @var int */
protected $total_expression_count;

/** @var bool */
protected $pretty_print_array = false;

/**
* @param array<int, IssueData> $issues_data
* @param array<string, int> $fixable_issue_counts
@@ -102,6 +105,7 @@ public function __construct(
$this->show_info = $report_options->show_info;
$this->pretty = $report_options->pretty;
$this->in_ci = $report_options->in_ci;
$this->pretty_print_array = $report_options->pretty_print_array;

$this->mixed_expression_count = $mixed_expression_count;
$this->total_expression_count = $total_expression_count;
3 changes: 3 additions & 0 deletions src/Psalm/Report/ReportOptions.php
Original file line number Diff line number Diff line change
@@ -43,4 +43,7 @@ final class ReportOptions

/** @var bool */
public $in_ci = false;

/** @var bool */
public $pretty_print_array = false;
}