Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Ignore PHP namespace statements#328

Open
tillkruss wants to merge1 commit intocodeclimate:master
base:master
Choose a base branch
Loading
fromtillkruss:patch-1

Conversation

tillkruss
Copy link

@tillkrusstillkruss commentedJul 20, 2018
edited
Loading

We're seeing hundreds of code duplication warnings for namespace statements.

screen shot 2018-07-20 at 9 08 17 am

#245 didn't include the actualnamespace statements and this PR covers the case when there is a space between thenamespace anduse blocks.

@tillkruss
Copy link
Author

The CircleCI tests are don't seem to be working:https://circleci.com/gh/codeclimate/codeclimate-duplication

Any tips@larkinscott?

@tillkrusstillkruss changed the title[WIP] Ignore PHP namespace statementsIgnore PHP namespace statementsJul 20, 2018
@tillkruss
Copy link
Author

Any feedback on this PR@toddmazierski@brynary?

@larkinscott
Copy link
Contributor

👋@tillkruss Thanks for the PR! This seems reasonable to me.

Looking into this CI failure now.

@larkinscott
Copy link
Contributor

@tillkruss Thanks for bringing that CI failure to our attention. This should be fixed now if you rebase on top of master.

@tillkrusstillkruss reopened thisJul 20, 2018
@tillkruss
Copy link
Author

@larkinscott I rebased the branch, but now other tests are failing:

rspec ./spec/cc/engine/analyzers/php/main_spec.rb:138 # CC::Engine::Analyzers::Php::Main#run can parse php 7 coderspec ./spec/cc/engine/analyzers/php/main_spec.rb:93 # CC::Engine::Analyzers::Php::Main#run runs against complex files

Both fail due to:

 expected: > 0            got:   0

I assume the issue previously was the namespace and my PR eliminates the issue?

Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers
No reviews
Assignees

@larkinscottlarkinscott

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@tillkruss@larkinscott

[8]ページ先頭

©2009-2025 Movatter.jp