fix Makefile, run gofmt on the all go files
This commit is contained in:
		
							parent
							
								
									757f57c223
								
							
						
					
					
						commit
						014b0576d6
					
				
							
								
								
									
										2
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								Makefile
									
									
									
									
									
								
							| @ -3,7 +3,7 @@ PHPFILE=example.php | ||||
| all: compile run | ||||
| 
 | ||||
| build: | ||||
| 	gofmt -l -s -w **/*.go | ||||
| 	find . -type f -iregex '.*\.go' -exec gofmt -l -s -w '{}' + | ||||
| 	go build | ||||
| 
 | ||||
| run: build | ||||
|  | ||||
| @ -45,7 +45,6 @@ func TestAltIf(t *testing.T) { | ||||
| 	actual, _, _ := php7.Parse(bytes.NewBufferString(src), "test.php") | ||||
| 	assertEqual(t, expected, actual) | ||||
| 
 | ||||
| 
 | ||||
| 	actual, _, _ = php5.Parse(bytes.NewBufferString(src), "test.php") | ||||
| 	assertEqual(t, expected, actual) | ||||
| } | ||||
| @ -75,7 +74,6 @@ func TestAltElseIf(t *testing.T) { | ||||
| 	actual, _, _ := php7.Parse(bytes.NewBufferString(src), "test.php") | ||||
| 	assertEqual(t, expected, actual) | ||||
| 
 | ||||
| 
 | ||||
| 	actual, _, _ = php5.Parse(bytes.NewBufferString(src), "test.php") | ||||
| 	assertEqual(t, expected, actual) | ||||
| } | ||||
| @ -102,7 +100,6 @@ func TestAltElse(t *testing.T) { | ||||
| 	actual, _, _ := php7.Parse(bytes.NewBufferString(src), "test.php") | ||||
| 	assertEqual(t, expected, actual) | ||||
| 
 | ||||
| 
 | ||||
| 	actual, _, _ = php5.Parse(bytes.NewBufferString(src), "test.php") | ||||
| 	assertEqual(t, expected, actual) | ||||
| } | ||||
| @ -141,7 +138,6 @@ func TestAltElseElseIf(t *testing.T) { | ||||
| 	actual, _, _ := php7.Parse(bytes.NewBufferString(src), "test.php") | ||||
| 	assertEqual(t, expected, actual) | ||||
| 
 | ||||
| 
 | ||||
| 	actual, _, _ = php5.Parse(bytes.NewBufferString(src), "test.php") | ||||
| 	assertEqual(t, expected, actual) | ||||
| } | ||||
|  | ||||
| @ -76,7 +76,6 @@ func TestClassConstListWithoutModifiers(t *testing.T) { | ||||
| 	actual, _, _ := php7.Parse(bytes.NewBufferString(src), "test.php") | ||||
| 	assertEqual(t, expected, actual) | ||||
| 
 | ||||
| 
 | ||||
| 	actual, _, _ = php5.Parse(bytes.NewBufferString(src), "test.php") | ||||
| 	assertEqual(t, expected, actual) | ||||
| } | ||||
| @ -1,8 +1,8 @@ | ||||
| package stmt_test | ||||
| 
 | ||||
| import ( | ||||
| 	"github.com/z7zmey/php-parser/node/name" | ||||
| 	"bytes" | ||||
| 	"github.com/z7zmey/php-parser/node/name" | ||||
| 	"testing" | ||||
| 
 | ||||
| 	"github.com/z7zmey/php-parser/node" | ||||
|  | ||||
| @ -1,9 +1,9 @@ | ||||
| package stmt_test | ||||
| 
 | ||||
| import ( | ||||
| 	"bytes" | ||||
| 	"github.com/z7zmey/php-parser/node/expr" | ||||
| 	"github.com/z7zmey/php-parser/node/name" | ||||
| 	"bytes" | ||||
| 	"testing" | ||||
| 
 | ||||
| 	"github.com/z7zmey/php-parser/node" | ||||
|  | ||||
| @ -1,4 +1,3 @@ | ||||
| 
 | ||||
| package stmt_test | ||||
| 
 | ||||
| import ( | ||||
|  | ||||
| @ -1,4 +1,3 @@ | ||||
| 
 | ||||
| package stmt_test | ||||
| 
 | ||||
| import ( | ||||
|  | ||||
| @ -1,9 +1,8 @@ | ||||
| 
 | ||||
| package stmt_test | ||||
| 
 | ||||
| import ( | ||||
| 	"github.com/z7zmey/php-parser/node/name" | ||||
| 	"bytes" | ||||
| 	"github.com/z7zmey/php-parser/node/name" | ||||
| 	"testing" | ||||
| 
 | ||||
| 	"github.com/z7zmey/php-parser/node" | ||||
|  | ||||
| @ -1,8 +1,8 @@ | ||||
| package stmt_test | ||||
| 
 | ||||
| import ( | ||||
| 	"github.com/z7zmey/php-parser/node/name" | ||||
| 	"bytes" | ||||
| 	"github.com/z7zmey/php-parser/node/name" | ||||
| 	"testing" | ||||
| 
 | ||||
| 	"github.com/z7zmey/php-parser/node" | ||||
| @ -56,7 +56,6 @@ func TestNamespaceStmts(t *testing.T) { | ||||
| 	assertEqual(t, expected, actual) | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| func TestAnonymousNamespace(t *testing.T) { | ||||
| 	src := `<? namespace {}` | ||||
| 
 | ||||
|  | ||||
| @ -1,9 +1,9 @@ | ||||
| package stmt_test | ||||
| 
 | ||||
| import ( | ||||
| 	"github.com/z7zmey/php-parser/node/scalar" | ||||
| 	"github.com/z7zmey/php-parser/node/expr" | ||||
| 	"bytes" | ||||
| 	"github.com/z7zmey/php-parser/node/expr" | ||||
| 	"github.com/z7zmey/php-parser/node/scalar" | ||||
| 	"testing" | ||||
| 
 | ||||
| 	"github.com/z7zmey/php-parser/node" | ||||
|  | ||||
| @ -1,8 +1,8 @@ | ||||
| package stmt_test | ||||
| 
 | ||||
| import ( | ||||
| 	"github.com/z7zmey/php-parser/node/name" | ||||
| 	"bytes" | ||||
| 	"github.com/z7zmey/php-parser/node/name" | ||||
| 	"testing" | ||||
| 
 | ||||
| 	"github.com/z7zmey/php-parser/node" | ||||
|  | ||||
| @ -1,9 +1,9 @@ | ||||
| package stmt_test | ||||
| 
 | ||||
| import ( | ||||
| 	"bytes" | ||||
| 	"github.com/z7zmey/php-parser/node/expr" | ||||
| 	"github.com/z7zmey/php-parser/node/name" | ||||
| 	"bytes" | ||||
| 	"testing" | ||||
| 
 | ||||
| 	"github.com/z7zmey/php-parser/node" | ||||
|  | ||||
| @ -1,8 +1,8 @@ | ||||
| package stmt_test | ||||
| 
 | ||||
| import ( | ||||
| 	"github.com/z7zmey/php-parser/node/name" | ||||
| 	"bytes" | ||||
| 	"github.com/z7zmey/php-parser/node/name" | ||||
| 	"testing" | ||||
| 
 | ||||
| 	"github.com/z7zmey/php-parser/node" | ||||
| @ -297,7 +297,6 @@ func TestUseListConstTypeAliases(t *testing.T) { | ||||
| 	assertEqual(t, expected, actual) | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| func TestGroupUse(t *testing.T) { | ||||
| 	src := `<? use Foo\{Bar, Baz};` | ||||
| 
 | ||||
| @ -441,7 +440,6 @@ func TestConstGroupUse(t *testing.T) { | ||||
| 	assertEqual(t, expected, actual) | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| func TestMixedGroupUse(t *testing.T) { | ||||
| 	src := `<? use Foo\{const Bar, function Baz};` | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user