Automattic / Automattic/phpcs-neutron-standard

Auto fix PEAR.Functions.FunctionCallSignature.Indent

Open
#49 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
PHP
Stars
93
Forks
9
PR merge metrics
No merged PRs in 30d

Description

PEAR.Functions.FunctionCallSignature.Indent is good at finding incorrect indentation, but since auto-fix must be per-sniff and not per error, the current auto-fix requires running all of PEAR.Functions.FunctionCallSignature and there's some awkward formatting in that sniff.

Let's duplicate it and do a better job of fixing the indentation.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the PEAR.Functions.FunctionCallSignature.Indent sniff and the broader PEAR.Functions.FunctionCallSignature sniff in the repository. Read how their auto-fix behavior is registered and run the relevant PHPCS checks to compare the existing formatting. Done means a separate sniff provides cleaner indentation fixes without requiring the full parent sniff.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
tooling
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.