• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sirbrillig / phpcs-variable-analysis
94%
2.x: 94%

Build:
Build:
LAST BUILD BRANCH: v2.12.0
DEFAULT BRANCH: 2.x
Repo Added 25 May 2022 08:57PM CUT
Files 9
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH v2.12.0
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • 2.x
  • accept-namespaces-in-pass-by-ref-functions
  • add-enum
  • add-perf-ci-guard
  • add-readonly-constructor-prom-support
  • add/psalm
  • add/scope-manager
  • allow-empty-body-for-abstract-methods-without-unused
  • allow-for-loop-increment-def-inside-loop
  • dependabot/github_actions/actions/checkout-4
  • dependabot/github_actions/coverallsapp/github-action-2
  • dependabot/github_actions/ramsey/composer-install-3
  • do-not-search-arrow-func-index-always
  • feature/add-dependabot-config-for-ghactions
  • feature/allow-for-phpunit-11
  • feature/composer-no-lock
  • feature/composer-psalm
  • feature/cs-enforce-tabs
  • feature/cs-qa-tests-declare-errorcodes-as-constants
  • feature/cs-use-camelcase-variables
  • feature/cs-use-psr2-braces
  • feature/cs-various-tweaks
  • feature/docs-align-param-comments
  • feature/fix-phpstan-error
  • feature/ghactions-cache-busting
  • feature/ghactions-change-xmllint-validation
  • feature/ghactions-minor-tweaks
  • feature/ghactions-php-8.3-update
  • feature/ghactions-switch-to-coveralls-reporter
  • feature/ghactions-tweaks
  • feature/ghactions-update-for-php-8.4-release
  • feature/ghactions-upgrade-php-coveralls-2.6.0
  • feature/ghactions-various-minor-tweaks
  • feature/ghactions-various-updates
  • feature/ghactions-work-around-for-coveralls-reporting
  • feature/ghactions-xmllint-bypass-apt-get-update
  • feature/make-tests-compatible-with-phpcs-3.8.0
  • feature/phpcs-switch-to-phpcsdevcs
  • feature/switch-to-fork-of-phpcs
  • feature/switch-to-ghactions-and-coveralls
  • feature/update-for-1.0-release-of-composer-phpcs-plugin
  • fix-anon-class-props-with-types
  • fix-arrow-func-as-arg
  • fix-constructor-promotion-with-namespace
  • fix-destructure-bug
  • fix-error-on-statement-find
  • fix-nested-parens-types
  • fix-nullable-constructor-promotion
  • fix-ternary-in-arrow-func
  • fix/another-static-var-detection
  • fix/enum-detection-for-non-enums
  • fix/func-call-detection
  • fix/newlines-in-arrow-functions
  • fix/pass-by-reference-unused
  • handle-compact-in-fat-arrow
  • handle-inline-if-list-destructure
  • improve-initializer-behavior
  • improve-nested-arrow-func-search
  • remove-php-errormsg-from-superglobals
  • run-static-analysis-on-8-1
  • support-constructor-promotion
  • support-nested-arrow-functions
  • v2.11.10
  • v2.11.11
  • v2.11.12
  • v2.11.13
  • v2.11.14
  • v2.11.15
  • v2.11.16
  • v2.11.17
  • v2.11.18
  • v2.11.18-beta.1
  • v2.11.18-beta.2
  • v2.11.19
  • v2.11.20
  • v2.11.21
  • v2.11.4
  • v2.11.5
  • v2.11.6
  • v2.11.7
  • v2.11.8
  • v2.11.9
  • v2.12.0

17 Mar 2025 04:17PM CUT coverage: 93.79% (-0.02%) from 93.812%
13911122344

push

github

web-flow
Accept namespaces in sitePassByRefFunctions (#351)

* Add test for using a namespace in sitePassByRefFunctions

* Add namespace to function names when looking for pass-by-reference

* Make sure cache is not used before it is ready

* Make sure we don't try to use null in getPassByReferenceFunction

* Init passByRefFunctionsCache to null explicitly

24 of 26 new or added lines in 2 files covered. (92.31%)

1903 of 2029 relevant lines covered (93.79%)

138.99 hits per line

Relevant lines Covered
Build:
Build:
2029 RELEVANT LINES 1903 COVERED LINES
138.99 HITS PER LINE
Source Files on 2.x
  • Tree
  • List 9
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Loading...
Coverage∆FileLinesRelevantCoveredMissedHits/Line
89.41
VariableAnalysis/Lib/Helpers.php1814 + 35859 + 13768 + 1291 + 1135.0 + 1.0
91.18
VariableAnalysis/Lib/ScopeManager.php106 34 31 3 344.0 + 4
96.39
...ysis/Sniffs/CodeAnalysis/VariableAnalysisSniff.php2090 + 28887 + 12855 + 1132 + 1150.0 + 2
100.0
VariableAnalysis/Lib/Constants.php258 226 226 0 158.0 + 4
100.0
VariableAnalysis/Lib/ScopeType.php0 0 0 0 0.0
100.0
VariableAnalysis/Lib/VariableInfo.php108 3 3 0 286.0 + 3
100.0
VariableAnalysis/Lib/ScopeInfo.php39 4 4 0 311.0 + 3
100.0
VariableAnalysis/Lib/EnumInfo.php44 5 5 0 3.0
100.0
VariableAnalysis/Lib/ForLoopInfo.php113 11 11 0 7.0
Showing 1 to 9 of 9 entries
  • Previous
  • 1
  • Next
  • ►
    93.79
    VariableAnalysis/

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
13911122344 v2.12.0 Accept namespaces in sitePassByRefFunctions (#351) * Add test for using a namespace in sitePassByRefFunctions * Add namespace to function names when looking for pass-by-reference * Make sure cache is not used before it is ready * Make sure we ... push 17 Mar 2025 10:31PM CUT web-flow github
93.79
13904453990 2.x Accept namespaces in sitePassByRefFunctions (#351) * Add test for using a namespace in sitePassByRefFunctions * Add namespace to function names when looking for pass-by-reference * Make sure cache is not used before it is ready * Make sure we ... push 17 Mar 2025 04:19PM CUT web-flow github
93.79
13888248578 accept-namespaces-in-pass-by-ref-functions Init passByRefFunctionsCache to null explicitly Pull #351 16 Mar 2025 11:04PM CUT sirbrillig github
93.79
13877062098 2.x GH Actions: use the xmllint-validate action runner (#350) Instead of doing all the installation steps for xmllint validation in the workflow, use the :sparkles: new dedicated `phpcsstandards/xmllint-validate` action runner instead. Ref: https://... push 15 Mar 2025 10:08PM CUT web-flow github
93.81
13853172128 feature/ghactions-change-xmllint-validation GH Actions: use the xmllint-validate action runner Instead of doing all the installation steps for xmllint validation in the workflow, use the :sparkles: new dedicated `phpcsstandards/xmllint-validate` action runner instead. Ref: https://github.... Pull #350 14 Mar 2025 09:01AM CUT jrfnl github
93.81
12640808375 2.x Allow finding arrow function variables when arrow function is in file scope (#347) * Add test for arrow function in global scope * Still look for arrow func when var scope is 0 `findVariableScopeExceptArrowFunctions()` can return null if it... push 06 Jan 2025 09:40PM CUT web-flow github
93.81
12227376500 2.x Add perf-guard github workflow (#345) * Add perf-guard github workflow * Fix typo * Switch to GITHUB_OUTPUT * Fix typo * Log performance * Temporarily reduce baseline for testing * Revert "Temporarily reduce baseline for testing... push 09 Dec 2024 01:46AM CUT web-flow github
93.81
12227330998 add-perf-ci-guard Revert "Temporarily break phpcs output to see what happens" This reverts commit ed540b8e9. Pull #345 09 Dec 2024 01:41AM CUT sirbrillig github
93.81
12227297555 add-perf-ci-guard Temporarily break phpcs output to see what happens Pull #345 09 Dec 2024 01:38AM CUT sirbrillig github
93.81
12227266517 add-perf-ci-guard Also output performance report Pull #345 09 Dec 2024 01:35AM CUT sirbrillig github
93.81
See All Builds (260)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc