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

Custom localfile #3956

Closed
wants to merge 1,304 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1304 commits
Select commit Hold shift + click to select a range
de3ca90
Merge pull request #644 from PHPCSStandards/feature/tokenizer-replace…
jrfnl Oct 25, 2024
bd7137c
Tokenizer/PHP: add tests for tokenization of `yield` and `yield from`
jrfnl Oct 23, 2024
7507442
Tokenizer/PHP: simplify the "yield"/"yield from" polyfill code
jrfnl Oct 23, 2024
df8bfe9
Tokenizer/PHP: bug fix - "yield" vs function return by ref (PHP 5.4)
jrfnl Oct 24, 2024
aafc72f
Merge pull request #645 from PHPCSStandards/feature/tokenizer-php-yie…
jrfnl Oct 25, 2024
09b7e41
Tokenizers/YieldTest: improve tests
jrfnl Oct 25, 2024
028501d
Merge pull request #646 from PHPCSStandards/feature/tokenizer-yieldte…
jrfnl Oct 25, 2024
3ba1aff
Generic/DisallowShortOpenTag: improve code coverage (#638)
rodrigoprimo Oct 25, 2024
40daeca
Generic/AbstractClassNamePrefix: rename test case file
rodrigoprimo Oct 24, 2024
e95d796
Generic/AbstractClassNamePrefix: fix up incorrect code comment
rodrigoprimo Oct 24, 2024
b80228e
Generic/AbstractClassNamePrefix: improve code coverage and clean up t…
rodrigoprimo Oct 24, 2024
7185370
Merge pull request #641 from rodrigoprimo/test-coverage-abstract-clas…
jrfnl Oct 25, 2024
0f5680a
Generic/RequireExplicitBooleanOperatorPrecedence: remove
rodrigoprimo Oct 18, 2024
56b6785
Generic/CamelCapsFunctionName: improve inline documentation
rodrigoprimo Oct 24, 2024
afcb7a2
Generic/CamelCapsFunctionName: rename test case file
rodrigoprimo Oct 24, 2024
d59edc4
Generic/CamelCapsFunctionName: improve code coverage and remove unnec…
rodrigoprimo Oct 24, 2024
2fe2330
Merge pull request #642 from rodrigoprimo/test-coverage-camel-caps-fu…
jrfnl Oct 29, 2024
8a7ee56
:sparkles: New `Generic.Strings.UnnecessaryHeredoc` sniff (#633)
jrfnl Oct 29, 2024
ad45d8a
Generic/ConstructorName: fix minor bug
rodrigoprimo Oct 29, 2024
9f6ceb7
Generic/InterfaceNameSuffix: cleanup existing tests
rodrigoprimo Oct 29, 2024
ceef93e
Generic/InterfaceNameSuffix: rename test case file
rodrigoprimo Oct 29, 2024
e84d732
Generic/InterfaceNameSuffix: improve code coverage
rodrigoprimo Oct 29, 2024
2b7a230
Generic/InterfaceNameSuffix: add inline comment
rodrigoprimo Oct 29, 2024
0d3cab5
Squiz/PostStatementComment: use a different error code for annotation…
rodrigoprimo Oct 30, 2024
1c620d9
PHPCS ruleset: allow for trailing annotations
jrfnl Oct 28, 2024
db870d6
Merge pull request #651 from PHPCSStandards/feature/phpcs-ruleset-min…
jrfnl Oct 30, 2024
960262c
Merge pull request #649 from rodrigoprimo/fix-bug-constructor-name
jrfnl Oct 30, 2024
0714850
Generic/ConstructorName: bug fix - allow for unconventional spacing a…
jrfnl Oct 30, 2024
a3a67d8
Generic/ConstructorName: bug fix - false positive on static call to o…
jrfnl Oct 30, 2024
7b98484
Generic/ConstructorName: minor efficiency tweak
jrfnl Oct 30, 2024
d02c686
Merge pull request #650 from rodrigoprimo/test-coverage-interface-nam…
jrfnl Oct 30, 2024
4c5c195
Generic/DuplicateClassName: bug fix - ignore namespace operator
jrfnl Oct 30, 2024
9c7cffe
Generic/DuplicateClassName: bug fix - ignore comments in namespace de…
jrfnl Oct 30, 2024
3dd91e2
Generic/DuplicateClassName: bug fix - namespace is reset on PHP open tag
jrfnl Oct 30, 2024
a7d8693
Generic/DuplicateClassName: use helper method
jrfnl Oct 30, 2024
060338f
Generic/DuplicateClassName: performance fix
jrfnl Oct 30, 2024
0b81673
Generic/ArrayIndent: add XML documentation (#432)
rodrigoprimo Oct 31, 2024
e8363e0
Tests: add tests for the Util\Tokens::tokenName() method
jrfnl Oct 31, 2024
7bdd340
Tests: add tests for the Util\Tokens::getHighestWeightedToken() method
jrfnl Oct 31, 2024
7f39f60
Merge pull request #655 from PHPCSStandards/feature/test-util-tokens-…
jrfnl Oct 31, 2024
41ac463
Util\Timing: add tests
jrfnl Oct 31, 2024
937b55a
Generic/TraitNameSuffix: cleanup existing tests
rodrigoprimo Oct 31, 2024
7ee8321
Generic/TraitNameSuffix: rename test case file
rodrigoprimo Oct 31, 2024
d9b1b6e
Generic/TraitNameSuffix: improve code coverage
rodrigoprimo Oct 31, 2024
54cb911
Generic/TraitNameSuffix: add inline comment
rodrigoprimo Oct 31, 2024
4bcd18a
Merge pull request #656 from PHPCSStandards/feature/test-util-timing
jrfnl Oct 31, 2024
a3f31a9
Util\Timing::getHumanReadableDuration: improve time display
jrfnl Oct 31, 2024
7ee4cf5
Util\Timing::getHumanReadableDuration: magic numbers to constants
jrfnl Oct 31, 2024
01e247b
Merge pull request #659 from rodrigoprimo/test-coverage-trait-name-su…
jrfnl Nov 1, 2024
a22a1cb
Merge pull request #652 from PHPCSStandards/feature/generic-construct…
jrfnl Nov 2, 2024
f145bb4
Merge pull request #653 from PHPCSStandards/feature/generic-duplicate…
jrfnl Nov 2, 2024
db1ebe1
Merge pull request #658 from PHPCSStandards/feature/util-timer-gethum…
jrfnl Nov 2, 2024
62cda40
PHP 8.3 | Tokenizer/PHP: support "yield from" with comments
jrfnl Oct 24, 2024
b768302
Tokenizer: apply tab replacement to "yield from"
jrfnl Oct 22, 2024
08e3d96
Generic/LanguageConstructSpacing: update for changed "yield from" tok…
jrfnl Oct 22, 2024
007267c
Generic/LanguageConstructSpacing: don't auto-fix 'yield from' with co…
jrfnl Oct 24, 2024
a504083
Generic/LowerCaseKeyword: add extra tests with "yield from"
jrfnl Oct 23, 2024
8da7f11
Generic/ScopeIndent: add extra test with multi-token "yield from"
jrfnl Oct 23, 2024
7349295
Generic/DisallowTabIndent: improve handling of `yield from`
jrfnl Oct 24, 2024
fc6d98a
Generic/DisallowSpaceIndent: add test with multi-line `yield from`
jrfnl Jul 4, 2024
c2b6235
Merge pull request #647 from PHPCSStandards/feature/529-tokenizer-yie…
jrfnl Nov 2, 2024
fda697f
GH Actions: update for the release of PHP 8.4
jrfnl Nov 11, 2024
b7dcdf8
Merge pull request #666 from PHPCSStandards/feature/ghactions-dont-fa…
jrfnl Nov 11, 2024
0b88936
PHPCS ruleset: make the file level `@author` tag optional
jrfnl Nov 11, 2024
141ef43
Merge pull request #667 from PHPCSStandards/feature/phpcs-ruleset-tweak
jrfnl Nov 11, 2024
9b4d240
Generators: always present docs in alphabetical order
jrfnl Nov 4, 2024
016c88c
Generators/HTML: move static string to class constant
jrfnl Nov 4, 2024
810e5eb
CS/QA: minor cleanup
jrfnl Nov 4, 2024
fcf7fdd
Docs: minor fixes
jrfnl Oct 18, 2024
c774767
Merge pull request #668 from PHPCSStandards/feature/generators-consis…
jrfnl Nov 12, 2024
be5dfdc
Merge pull request #669 from PHPCSStandards/feature/generator-html-st…
jrfnl Nov 12, 2024
d228eb4
Merge pull request #670 from PHPCSStandards/feature/various-small-tweaks
jrfnl Nov 12, 2024
1241dda
Changelog for the 3.11.0 release
jrfnl Sep 18, 2024
70c08f8
Merge pull request #672 from PHPCSStandards/feature/changelog-3.11.0
jrfnl Nov 12, 2024
204c963
Config: update version nr to next
jrfnl Nov 12, 2024
06d0d20
GH Actions/basics: add check for valid XML docs
jrfnl Nov 12, 2024
12c11ba
Docs: fix up two XML docs
jrfnl Nov 12, 2024
7f5d178
Merge pull request #674 from PHPCSStandards/feature/validate-xml-doc-…
jrfnl Nov 12, 2024
a220c80
Tests: Add unit tests for Common::prepareForOutput()
MatmaRex Nov 11, 2024
755f0bc
GH Actions: run tests on Windows too
jrfnl Nov 11, 2024
0194e46
Merge pull request #663 from MatmaRex/prepareForOutput-tests
jrfnl Nov 13, 2024
1fcf37f
GH Actions/quicktest: fiddle the PHP versions
jrfnl Nov 13, 2024
512647f
GH Actions: don't convert line endings
jrfnl Nov 13, 2024
76b2aa7
Merge pull request #677 from PHPCSStandards/feature/ghactions-tweak-q…
jrfnl Nov 13, 2024
8bfc8da
Common::escapeshellcmd(): add tests
jrfnl Nov 13, 2024
d27d3b0
Merge pull request #679 from PHPCSStandards/feature/common-escapeshel…
jrfnl Nov 13, 2024
fd1b525
Tests: add `@group Windows` to more tests
jrfnl Nov 13, 2024
ea1a168
CONTRIBUTING: document use of the `@group Windows` annotation
jrfnl Nov 13, 2024
eca6b24
GH Actions: exclude PHP 5.4-Windows combi everywhere
jrfnl Nov 13, 2024
26ddb35
Merge pull request #678 from PHPCSStandards/feature/tests-add-windows…
jrfnl Nov 13, 2024
71b4524
Common::getSniffCode(): be more lenient about sniffs not following na…
jrfnl Nov 12, 2024
7d33bcd
Merge pull request #676 from PHPCSStandards/feature/675-common-sniffc…
jrfnl Nov 13, 2024
f9c5f18
Generators: add initial set of tests (#671)
jrfnl Nov 13, 2024
3d64cb2
RuleInclusionAbsoluteWindowsTest: minor tweaks
jrfnl Nov 14, 2024
76927ef
Generators/Generator: minor tweak
jrfnl Nov 3, 2024
e11d8f2
Merge pull request #685 from PHPCSStandards/feature/ruleinclusionabso…
jrfnl Nov 15, 2024
56784f1
Merge pull request #686 from PHPCSStandards/feature/generator-minor-t…
jrfnl Nov 15, 2024
36e6746
Generators HTML/Markdown: don't print header/footer when there are no…
jrfnl Nov 4, 2024
3820695
Generators/Markdown: reset error_reporting to original value
jrfnl Nov 3, 2024
78d3d3d
RuleInclusionTest: record code coverage
jrfnl Nov 15, 2024
7e29324
RuleInclusionTest: add test with directory include
jrfnl Nov 15, 2024
8ed93db
Merge pull request #690 from PHPCSStandards/feature/ruleinclusiontest…
jrfnl Nov 15, 2024
168c0d1
Changelog for the 3.11.1 release
jrfnl Nov 12, 2024
19473c3
Merge pull request #691 from PHPCSStandards/feature/changelog-3.11.1
jrfnl Nov 16, 2024
98c8972
Config: update version nr to next
jrfnl Nov 16, 2024
6792fb1
Merge pull request #687 from PHPCSStandards/feature/generators-html-m…
jrfnl Nov 18, 2024
06ebc1c
Merge pull request #688 from PHPCSStandards/feature/generators-html-m…
jrfnl Nov 18, 2024
dfce5e2
Generators HTML/Markdown: add extra test around error silencing
jrfnl Nov 18, 2024
a52c354
ShowSniffDeprecationsTest: fix bug in tests
jrfnl Nov 18, 2024
5e1e3a6
Merge pull request #695 from PHPCSStandards/feature/generator-html-ma…
jrfnl Nov 18, 2024
15db723
Merge pull request #696 from PHPCSStandards/feature/ruleset-showsniff…
jrfnl Nov 18, 2024
2a045d3
Generators/HTML: only display a TOC when there is more than one doc
jrfnl Nov 5, 2024
12235bd
Generators/Markdown: fix footer not parsing
jrfnl Nov 3, 2024
8c08a1d
Tests/Ruleset/XML fixtures: add direct link between fixture and test …
jrfnl Nov 16, 2024
9f81294
Merge pull request #700 from PHPCSStandards/feature/ruleset-tests-min…
jrfnl Nov 21, 2024
80b5656
Tests/Ruleset/fixtures: move existing fixtures to subdirectory
jrfnl Nov 14, 2024
866f7cf
Merge pull request #701 from PHPCSStandards/feature/ruleset-tests-fix…
jrfnl Nov 21, 2024
4e36c11
Ruleset: add tests for custom property type handling
jrfnl Nov 16, 2024
bed42db
Tests: set up mechanism to allow for testing CBF specific code
jrfnl Nov 17, 2024
806f4ad
Merge pull request #697 from PHPCSStandards/generators-html-only-disp…
jrfnl Nov 22, 2024
e3400e3
Merge pull request #698 from PHPCSStandards/feature/generators-markdo…
jrfnl Nov 22, 2024
a25d8cf
Tests/Ruleset: introduce an abstract base TestCase
jrfnl Nov 19, 2024
db02f0d
Tests/Ruleset: start using the new `AbstractRulesetTestCase`
jrfnl Nov 19, 2024
7aa3a24
Merge pull request #703 from PHPCSStandards/feature/tests-allow-for-t…
jrfnl Nov 22, 2024
374519b
Merge pull request #704 from PHPCSStandards/feature/ruleset-add-prope…
jrfnl Nov 22, 2024
b5a81c6
Ruleset::getIgnorePatterns(): add tests (#705)
jrfnl Nov 22, 2024
a480170
Ruleset::getIncludePatterns(): add tests (#706)
jrfnl Nov 22, 2024
9ed4ae8
GH Actions/test: allow concurrency for build against "main" branches
jrfnl Nov 22, 2024
40c7a43
Merge pull request #710 from PHPCSStandards/feature/ghactions-dont-ca…
jrfnl Nov 22, 2024
fa96dd3
Merge pull request #702 from PHPCSStandards/feature/ruleset-tests-bas…
jrfnl Nov 22, 2024
8b8aa2e
Generators: add tests for handling documentation titles
jrfnl Nov 3, 2024
8b39d66
Merge pull request #716 from PHPCSStandards/feature/generators-add-te…
jrfnl Nov 23, 2024
3f33a50
Generators: add tests for handling <standard> element
jrfnl Nov 4, 2024
65d57b1
Generators HTML/Markdown: consistent encoding cross-PHP
jrfnl Nov 4, 2024
a2de7e1
Merge pull request #717 from PHPCSStandards/feature/generators-add-te…
jrfnl Nov 23, 2024
02fe700
Generators: add tests for handling code sample titles
jrfnl Nov 3, 2024
9819deb
Merge pull request #718 from PHPCSStandards/feature/generators-add-te…
jrfnl Nov 23, 2024
87d5030
Generators: add tests for handling code samples
jrfnl Nov 3, 2024
fe3111c
GH Actions: tweak auto-label configuration
jrfnl Nov 23, 2024
69c122d
Merge pull request #719 from PHPCSStandards/feature/generators-add-te…
jrfnl Nov 23, 2024
f6ecacd
Merge pull request #720 from PHPCSStandards/feature/labeller-handle-n…
jrfnl Nov 23, 2024
e2dcc7f
Generators: add tests covering handling of unsupported doc structures
jrfnl Nov 4, 2024
ceebf9d
Merge pull request #721 from PHPCSStandards/feature/generators-add-te…
jrfnl Nov 23, 2024
9780e28
Generators/Markdown: add blank line after title
jrfnl Nov 5, 2024
baec97e
Generators/HTML: fix line break handling
jrfnl Nov 3, 2024
aed8d93
Generators/Text::printTitle(): minor tweaks
jrfnl Nov 3, 2024
08f41df
Util/HelpTest: test CBF-only code
jrfnl Nov 24, 2024
823dc9a
Merge pull request #725 from PHPCSStandards/feature/common-help-add-a…
jrfnl Nov 24, 2024
609ac10
Generic/LowercasedFilename: improve code coverage (#681)
rodrigoprimo Nov 26, 2024
ab4bae2
Generic/EmptyPHPStatement: remove some unreachable code
rodrigoprimo Apr 25, 2024
498ecda
Generic/EmptyPHPStatement: rename test case file
rodrigoprimo Nov 20, 2024
6105bf7
Generic/EmptyPHPStatement: add tests for the short open tag
rodrigoprimo Nov 20, 2024
eb7c3a9
Generic/EmptyPHPStatement: minor tweaks to test case file
rodrigoprimo Nov 25, 2024
c88c241
Merge pull request #699 from rodrigoprimo/test-coverage-empty-php-sta…
jrfnl Nov 26, 2024
715242e
Generic//EmptyPHPStatement: reduce complexity/nesting levels
jrfnl Nov 25, 2024
1a84fda
GH Actions: run phar building test more selectively
jrfnl Nov 26, 2024
c41a2a6
Merge pull request #730 from PHPCSStandards/feature/ghactions-build-p…
jrfnl Nov 26, 2024
243aaf4
GH Actions: fix snafu with code coverage
jrfnl Nov 26, 2024
9acd28c
Merge pull request #732 from PHPCSStandards/feature/ghactions-fix-cod…
jrfnl Nov 26, 2024
3924468
Merge pull request #729 from PHPCSStandards/feature/generic-emptystat…
jrfnl Nov 26, 2024
f8ed72b
GH Actions/test: allow concurrency for code coverage builds - take two
jrfnl Nov 27, 2024
ffd4f09
Merge pull request #735 from PHPCSStandards/feature/ghactions-dont-ca…
jrfnl Nov 27, 2024
a60ed63
Generic/UpperCaseConstantName: handle unconventional spacing and comm…
rodrigoprimo Nov 5, 2024
67ae154
Generic/UpperCaseConstantName: handle unconventional spacing and comm…
rodrigoprimo Nov 6, 2024
fb13110
Generic/UpperCaseConstantName: false positives when constant name is …
rodrigoprimo Nov 6, 2024
66837c3
Generic/UpperCaseConstantName: fix attributes false positive
rodrigoprimo Nov 6, 2024
0ac027f
Generic/UpperCaseConstantName: minor improvement to the error message…
rodrigoprimo Nov 5, 2024
d129e9b
Generic/UpperCaseConstantName: remove special case for double-colon
rodrigoprimo Nov 11, 2024
17b9164
Generic/UpperCaseConstantName: rename test case file
rodrigoprimo Nov 5, 2024
2e68850
Generic/UpperCaseConstantName: `findNext()` may return `false`
rodrigoprimo Nov 8, 2024
eef593b
Generic/UpperCaseConstantName: improve code coverage
rodrigoprimo Nov 6, 2024
6080303
Improve tests based on feedback from PR review
rodrigoprimo Nov 26, 2024
fe50ba7
Generic/UpperCaseConstantName: fix false positive for class instantia…
rodrigoprimo Nov 26, 2024
829c9da
Generic/UpperCaseConstantName: move parse error test to its own file
rodrigoprimo Nov 26, 2024
205425b
Merge pull request #722 from PHPCSStandards/feature/generators-markdo…
jrfnl Nov 27, 2024
becac94
Merge pull request #723 from PHPCSStandards/feature/generators-html-f…
jrfnl Nov 27, 2024
a13cdfd
Merge pull request #724 from PHPCSStandards/feature/generators-add-te…
jrfnl Nov 27, 2024
70f8f2c
Generic/OpeningFunctionBraceKernighanRichie: remove repeated call to …
rodrigoprimo Nov 21, 2024
a375eea
Generic/OpeningFunctionBraceKernighanRichie: improve handling of tabs…
rodrigoprimo Nov 21, 2024
111d851
Generic/OpeningFunctionBraceKernighanRichie: rename test case file
rodrigoprimo Nov 21, 2024
195346f
Generic/OpeningFunctionBraceKernighanRichie: improve test coverage
rodrigoprimo Nov 21, 2024
286cd81
Generic/OpeningFunctionBraceKernighanRitchie: simplify logic to find …
rodrigoprimo Nov 26, 2024
941a00e
Merge pull request #707 from rodrigoprimo/test-converage-opening-func…
jrfnl Nov 27, 2024
6b106cc
Generic/OpeningFunctionBraceKernighanRitchie: improve error message
jrfnl Nov 27, 2024
ca4081c
Generators/Markdown: fix line break and indentation handling
jrfnl Nov 3, 2024
5a36502
Generators/Text: trim code titles
jrfnl Nov 3, 2024
f2fedfb
Generators HTML/Markdown: fix whitespace handling in code title
jrfnl Nov 3, 2024
66d3ac5
Squiz ruleset: update property format
jrfnl Nov 27, 2024
d2e201a
Merge pull request #741 from PHPCSStandards/feature/squiz-ruleset-fix…
jrfnl Nov 27, 2024
778f533
Merge pull request #736 from PHPCSStandards/feature/generic-openingfu…
jrfnl Nov 27, 2024
e66802a
Ruleset::processRuleset(): add tests for handling of broken rulesets
jrfnl Nov 17, 2024
0a364dc
Ruleset::processRule(): add test for handling of invalid `<type>` dir…
jrfnl Nov 18, 2024
fbe7599
Merge pull request #737 from PHPCSStandards/feature/generator-markdow…
jrfnl Dec 1, 2024
d77d651
Merge pull request #738 from PHPCSStandards/feature/generator-text-tr…
jrfnl Dec 1, 2024
daf63d9
Merge pull request #739 from PHPCSStandards/feature/generator-html-ma…
jrfnl Dec 1, 2024
0c2d6d4
Generic/CyclomaticComplexity: rename test case file
rodrigoprimo Nov 14, 2024
2371b0a
Generic/CyclomaticComplexity: improve code coverage
rodrigoprimo Nov 14, 2024
54a05bc
Generic/CyclomaticComplexity: ensure the sniff bails if `scope_closer…
rodrigoprimo Dec 2, 2024
cb96819
Ruleset: add tests for handling of `php[cs|cbf]-only` attributes with…
jrfnl Dec 2, 2024
585602f
Ruleset: add tests for handling of `php[cs|cbf]-only` attributes with…
jrfnl Dec 2, 2024
c942e6a
Ruleset::processRuleset(): add tests for handling `<autoload>` direct…
jrfnl Dec 2, 2024
ee7034b
Merge pull request #684 from rodrigoprimo/test-coverage-cyclomatic-co…
jrfnl Dec 2, 2024
130180d
GH Actions: change PHAR building to reusable workflow
jrfnl Nov 30, 2024
cd617bf
Ruleset::expandSniffDirectory(): add test
jrfnl Nov 20, 2024
48c5e81
Ruleset::setSniffProperty(): add test for edge case / unused sniff
jrfnl Nov 18, 2024
6273fd9
Merge pull request #752 from PHPCSStandards/feature/ruleset-add-tests…
jrfnl Dec 7, 2024
32c5cd9
Merge pull request #753 from PHPCSStandards/feature/ruleset-setsniff-…
jrfnl Dec 7, 2024
a0ef032
Ruleset::processRuleset(); add various tests for things not already c…
jrfnl Nov 20, 2024
aab0862
Merge pull request #754 from PHPCSStandards/feature/ruleset-process-r…
jrfnl Dec 7, 2024
856219c
Squiz/ArrayDeclaration: improves test coverage
rodrigoprimo Jun 25, 2024
8e0074a
Squiz/ArrayDeclaration: improve handling of short lists inside a foreach
rodrigoprimo Nov 20, 2024
0d969c9
Merge pull request #748 from rodrigoprimo/fix-array-declaration-short…
jrfnl Dec 7, 2024
21dc873
GH Actions: Bump actions/attest-build-provenance from 1 to 2
dependabot[bot] Dec 9, 2024
50216b1
Generic/NestingLevel: ensure the sniff bails if `scope_closer` is not…
rodrigoprimo Dec 9, 2024
c1c8517
Generic/NestingLevel: rename test case file
rodrigoprimo Nov 19, 2024
9794ed8
Generic/NestingLevel: improve code coverage
rodrigoprimo Dec 9, 2024
9811fc5
Generic/NestingLevel: improve tests by adding more tokens
rodrigoprimo Dec 9, 2024
5033272
Merge pull request #764 from rodrigoprimo/test-coverage-nesting-level
jrfnl Dec 10, 2024
799e293
Merge pull request #751 from PHPCSStandards/feature/ghactions-make-ph…
jrfnl Dec 11, 2024
9bb88c4
GH Actions: automate release verification steps
jrfnl Dec 8, 2024
224a57f
Add release checklist
jrfnl Dec 8, 2024
3a44d3d
Merge pull request #758 from PHPCSStandards/feature/32-automate-relea…
jrfnl Dec 11, 2024
644fc29
Changelog for the 3.11.2 release
jrfnl Nov 16, 2024
1368f4a
Merge pull request #760 from PHPCSStandards/feature/changelog-3.11.2
jrfnl Dec 11, 2024
855f261
Config: update version nr to next
jrfnl Dec 11, 2024
98a0c4e
GH Actions/verify-release: show output for release attestations
jrfnl Dec 12, 2024
d7ecf7e
Ruleset::registerSniffs(): add tests
jrfnl Nov 20, 2024
d6bbff9
Tokenizer/PHP: add extra tests for DNF type tokenization
jrfnl Oct 24, 2024
3d14d00
Config: add tests for the `--generator=` argument (#765)
rodrigoprimo Dec 12, 2024
e8edff7
Merge pull request #768 from PHPCSStandards/feature/ghactions-verify-…
jrfnl Dec 14, 2024
142ad8e
Ruleset::__construct(): add tests
jrfnl Dec 14, 2024
46b9a59
Ruleset::populateTokenListeners(): add tests (#757)
jrfnl Dec 19, 2024
efdacba
Merge pull request #772 from PHPCSStandards/feature/ruleset-add-tests…
jrfnl Dec 19, 2024
12c260f
Merge pull request #769 from PHPCSStandards/feature/632-follow-up-tok…
jrfnl Dec 19, 2024
a9b6fa0
Generic/InlineControlStructure: stop listening for T_SWITCH tokens
rodrigoprimo Oct 4, 2024
4c92408
Tests/Tokenizer: tests to ensure scope is set correctly for T_SWITCH
rodrigoprimo May 22, 2024
b9809c7
Tests/Tokenizer: tests for T_CASE and T_IF scope condition
rodrigoprimo Jul 26, 2024
9546775
Tests/Tokenizer: scope opener is set correctly for T_SWITCH
rodrigoprimo Aug 12, 2024
82fae8e
Tests/Tokenizer: expand `recurseScopeMap()` tests for the case keyword
rodrigoprimo Aug 12, 2024
61b9e9b
Tests/Tokenizer: test to ensure scope closer is set correctly for T_CASE
rodrigoprimo Aug 13, 2024
105b4be
Tests/Tokenizer: test related to setting the scope for T_CASE
rodrigoprimo Aug 12, 2024
b35dba4
Merge pull request #595 from rodrigoprimo/inline-control-strutucture-…
jrfnl Dec 20, 2024
c06284d
Squiz/FileComment: update year in test case fixed file
github-actions[bot] Jan 1, 2025
b43e1d8
Merge pull request #778 from PHPCSStandards/feature/squiz-filecomment…
jrfnl Jan 1, 2025
73e8089
Tokenizer/PHP: prevent an "Undefined array key" notice during live co…
jrfnl Jan 10, 2025
d74714d
Fix fixer conflict: PSR12/Squiz.Functions.FunctionDeclarationArgument…
fredden Sep 22, 2024
ab09909
Merge pull request #620 from fredden/feature/fixer-conflict/PSR12/Squ…
jrfnl Jan 11, 2025
ba08a82
Merge pull request #782 from PHPCSStandards/feature/tokenizer-php-pre…
jrfnl Jan 11, 2025
aebd84b
Squiz/FunctionSpacing: fixer is broken with doc comment on closing br…
klausi Jan 12, 2025
b7ebea1
Config: can use custom LocalFile object
forrest79 Jan 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
31 changes: 22 additions & 9 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,14 +1,27 @@
.cspell.json export-ignore
.gitattributes export-ignore
.github/ export-ignore
.gitignore export-ignore
package.xml export-ignore
phpcs.xml.dist export-ignore
phpstan.neon export-ignore
phpunit.xml.dist export-ignore
scripts/ export-ignore
#
# Exclude these files from release archives.
# This will also make them unavailable when using Composer with `--prefer-dist`.
# If you develop for this repo using Composer, use `--prefer-source`.
# https://www.reddit.com/r/PHP/comments/2jzp6k/i_dont_need_your_tests_in_my_production/
# https://blog.madewithlove.be/post/gitattributes/
#
.github/ export-ignore
scripts/ export-ignore
.cspell.json export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.markdownlint-cli2.yaml export-ignore
.remarkignore export-ignore
.remarkrc export-ignore
.yamllint.yml export-ignore
phpcs.xml.dist export-ignore
phpstan.neon.dist export-ignore
phpunit.xml.dist export-ignore

#
# Declare files that should always have CRLF line endings on checkout.
#
*WinTest.inc text eol=crlf
*WinTest.php text eol=crlf
src/Standards/Generic/Tests/Files/LineEndingsUnitTest*.inc text eol=crlf
tests/Core/Fixer/Fixtures/GenerateDiffTest-WindowsLineEndings.inc text eol=crlf
447 changes: 447 additions & 0 deletions .github/CONTRIBUTING.md

Large diffs are not rendered by default.

27 changes: 16 additions & 11 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,20 @@ standard repository (not here).
-->

## Describe the bug

A clear and concise description of what the bug is.

### Code sample
```php
echo "A short code snippet that can be used to reproduce the bug. Do NOT paste screenshots of code!";
echo 'A short code snippet that can be used to reproduce the bug.';
echo 'Do NOT paste screenshots of code!";
```

### Custom ruleset
```xml
<?xml version="1.0"?>
<ruleset name="My Custom Standard">
<description>If you are using a custom ruleset, please enter it here.</description>
<description>If you are using a custom ruleset, please enter the relevant part here.</description>
</ruleset>
```

Expand All @@ -39,28 +41,31 @@ Steps to reproduce the behavior:
1. Create a file called `test.php` with the code sample above...
2. Run `phpcs test.php ...`
3. See error message displayed
```
```text
PHPCS output here
```

## Expected behavior

A clear and concise description of what you expected to happen.

## Versions (please complete the following information)

| | |
|-|-|
| Operating System | [e.g., Windows 10, MacOS 10.15]
| PHP version | [e.g., 7.2, 7.4]
| PHP_CodeSniffer version | [e.g., 3.5.5, master]
| Standard | [e.g., PSR2, PSR12, Squiz, custom]
| Install type | [e.g. Composer (global/local), PHAR, PEAR, git clone, other (please expand)]
| | |
|--------------------------|---------------------------------------------------------------------- |
| Operating System | [e.g., Windows 10, MacOS 10.15] |
| PHP version | [e.g., 7.2, 8.1] |
| PHP_CodeSniffer version | [e.g., 3.7.2, master] |
| Standard | [e.g., PSR2, PSR12, Squiz, custom] |
| Install type | [e.g. Composer (global/local), PHAR, git clone, other (please expand)] |

## Additional context

Add any other context about the problem here.

## Please confirm:
## Please confirm

- [ ] I have searched the issue list and am not opening a duplicate issue.
- [ ] I have read the [Contribution Guidelines](https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/.github/CONTRIBUTING.md) and this is not a [support question](https://github.com/PHPCSStandards/PHP_CodeSniffer/discussions).
- [ ] I confirm that this bug is a bug in PHP_CodeSniffer and not in one of the external standards.
- [ ] I have verified the issue still exists in the `master` branch of PHP_CodeSniffer.
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: true
contact_links:
- name: Community Support
url: https://github.com/PHPCSStandards/PHP_CodeSniffer/discussions?discussions_q=-category%3AAnnouncements
about: Support questions belong in Discussions, not in the issue tracker.
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: Feature request
about: I have a suggestion (and may want to implement it).
title: ''
labels: ['Status: triage', 'Type: enhancement']
assignees: ''

---

## Is your feature request related to a problem?
<!-- Please provide a clear and concise description of what the feature is which you'd like to see implemented. -->

## Describe the solution you'd like
<!--
A clear and concise description of what you want to happen.

Please include some code samples of what should be flagged and preferably also some
code samples of what should *not* be flagged.
-->

## Additional context (optional)
<!-- Add any other context or screenshots about the feature request here. -->

- [ ] I have read the [Contribution Guidelines](https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/.github/CONTRIBUTING.md) and this is not a [support question](https://github.com/PHPCSStandards/PHP_CodeSniffer/discussions).
- [ ] I intend to create a pull request to implement this feature.
16 changes: 16 additions & 0 deletions .github/community-cc-list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# PHP_CodeSniffer Community CC List

<!--
This list will be used on select tickets to ping the wider PHP_CodeSniffer community for input.

If you want to be on this list, feel free to submit a PR to add yourself.
If you want to be removed from the list, dito, submit a PR to remove yourself and it will be merged without questions.

PRs adding/removing other people to/from the list will only be merged if the people being added/removed leave a comment on the PR consenting to it.

When updating the list, please list GitHub handles in alphabetical order.

For more context, see https://github.com/PHPCSStandards/PHP_CodeSniffer/issues/227
-->

/cc @asispts @dingo-d @fredden @GaryJones @greg0ire @kukulich @michalbundyra @Ocramius @sirbrillig @stronk7 @weierophinney @wimg
16 changes: 16 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Dependabot configuration.
#
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 5
commit-message:
prefix: "GH Actions:"
labels:
- "Type: chores/QA"
101 changes: 101 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
version: 1
appendOnly: true
labels:
- label: "Status: triage"
draft: false
author-can-merge: false

- label: "Core Component: Config & Ruleset & CLI options"
draft: false
files:
- "src/Config.php$"
- label: "Core Component: Config & Ruleset & CLI options"
draft: false
files:
- "src/Ruleset.php$"
- label: "Core Component: File"
draft: false
files:
- "src/Files/.*"
- label: "Core Component: Fixer"
draft: false
files:
- "src/Fixer.php$"
- label: "Core Component: Generators"
draft: false
files:
- "src/Generators/.*"
- label: "Core Component: Reports"
draft: false
files:
- "src/Reports/.*"
- label: "Core Component: Tokenizer"
draft: false
files:
- "src/Tokenizers/.*"
- label: "Core Component: Utils"
draft: false
files:
- "src/Util/.*"

- label: "Focus: Comments/Docblocks"
draft: false
files:
- "src/Standards/.*/Sniffs/Commenting/"
- label: "Focus: Fixer Conflicts"
draft: false
body: ".* fixer conflict.*"

- label: "Standard: Generic"
draft: false
files:
- "src/Standards/Generic/(Docs|Sniffs)/.*"
- label: "Standard: MySource"
draft: false
files:
- "src/Standards/MySource/(Docs|Sniffs)/.*"
- label: "Standard: PEAR"
draft: false
files:
- "src/Standards/PEAR/(Docs|Sniffs)/.*"
- label: "Standard: PSR1"
draft: false
files:
- "src/Standards/PSR1/(Docs|Sniffs)/.*"
- label: "Standard: PSR2"
draft: false
files:
- "src/Standards/PSR2/(Docs|Sniffs)/.*"
- label: "Standard: PSR12"
draft: false
files:
- "src/Standards/PSR12/(Docs|Sniffs)/.*"
- label: "Standard: Squiz"
draft: false
files:
- "src/Standards/Squiz/(Docs|Sniffs)/.*"
- label: "Standard: Zend"
draft: false
files:
- "src/Standards/Zend/(Docs|Sniffs)/.*"

- label: "Type: breaking change"
draft: false
body: '[Xx]\] Breaking change'
- label: "Type: bug"
draft: false
body: '[Xx]\] Bug fix'
- label: "Type: enhancement"
draft: false
body: '[Xx]\] New feature'
- label: "Type: documentation"
draft: false
body: '[Xx]\] Documentation improvement'
- label: "Type: documentation"
draft: false
files:
- 'src/Standards/.*/Docs/[A-Za-z0-9-]*/.*Standard.xml$'
- label: "Type: documentation"
draft: false
files:
- "*.md$"
18 changes: 10 additions & 8 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,21 @@
Please target the `master` branch when submitting your pull request, unless your change **only** applies to PHPCS 4.x.
-->

## Description
# Description
<!--
What do you want to achieve with this PR? Why did you write this code? What problem does this PR solve?
Describe your changes in detail and, if relevant, explain which choices you have made and why.
-->


### Suggested changelog entry
<!-- Please provide a short description of the change for the changelog. -->
## Suggested changelog entry
<!--
Please provide a short description of the change for the changelog.
This is only needed when this is an end-user, integrators or external standard maintainers facing change.
-->


### Related issues/external references
## Related issues/external references

Fixes #

Expand All @@ -32,20 +35,19 @@ Fixes #
## PR checklist
<!-- Go over all the following points, and put an `x` in all the boxes that apply. -->
- [ ] I have checked there is no other PR open for the same change.
- [ ] I have read the [Contribution Guidelines](.github/CONTRIBUTING.md).
- [ ] I have read the [Contribution Guidelines](https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/.github/CONTRIBUTING.md).
- [ ] I grant the project the right to include and distribute the code under the BSD-3-Clause license (and I have the right to grant these rights).
- [ ] I have added tests to cover my changes.
- [ ] I have verified that the code complies with the projects coding standards.
- [ ] [Required for new sniffs] I have added XML documentation for the sniff.
- [ ] [Required for new files] I have added any new files to the `package.xml` file.
- [ ] \[Required for new sniffs\] I have added XML documentation for the sniff.

<!--
============================================================================================
Please make sure your pull request passes all continuous integration checks!

PRs which are failing their CI checks will likely be ignored by the maintainers.

PRs using atomic, descriptive commits are hugely appreciated as it will make
Small PRs using atomic, descriptive commits are hugely appreciated as it will make
reviewing your changes easier for the maintainers.
============================================================================================
-->
Loading
Loading