8000 [EasyCodingStandard] More informational errors. · Issue #304 · deprecated-packages/symplify · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Dec 3, 2023. It is now read-only.
This repository was archived by the owner on Dec 3, 2023. It is now read-only.
[EasyCodingStandard] More informational errors. #304
@vlastavesely

Description

@vlastavesely

I have installed this:

	"require": {
		"php": "^7.1",
		"symplify/easy-coding-standard": "^2.2"
	},
	"scripts": {
		"cs": "vendor/bin/ecs check examples",
		"fs": "vendor/bin/ecs check examples --fix"
	},
	"minimum-stability": "dev"

with config:

parameters:
	indentation: tab

includes:
	- vendor/symplify/easy-coding-standard/config/php54-checkers.neon
	- vendor/symplify/easy-coding-standard/config/php70-checkers.neon
	- vendor/symplify/easy-coding-standard/config/php71-checkers.neon

And got totally confusing error:

> vendor/bin/ecs check examples

 [ERROR] syntax error, unexpected ''' (T_ENCAPSED_AND_WHITESPACE)               

Script vendor/bin/ecs check examples handling the cs event returned with error code 

It is not caused by tested files - I checked them and tried it even with empty directory.

It seems to be caused by PhpCsFixer\Fixer\Strict\DeclareStrictTypesFixer, for it works after I exclude it. Could be the error messages made more informational if it is matter of ecs and not any library used by it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0