Questions tagged [scrutinizer]

Scrutinizer is a free-to-use (open-source) + commercial code analysis-tool, running automated code quality tests against your code.

Scrutinizer is a free-to-use (open-source) + commercial code analysis-tool, running automated code quality tests against your code.

References

37 questions
16
votes
3 answers

Using Vagrant on cloud CI services

Are there any cloud CI services that allow Vagrant VMs to run using VirtualBox as a provider? Early investigation shows this seems not to be possible with Travis CI or Circle CI, although the vagrant-aws plugin allows for the use of AWS servers as a…
7
votes
1 answer

Scrutinizer says it was notified by Travis that the "tests failed", but the tests did pass

I have this project on GitHub. In my .travis.yml file, I use the same configuration I use on every project, to upload the code coverage data to Scrutinizer: after_script: - wget https://scrutinizer-ci.com/ocular.phar - php ocular.phar…
4
votes
2 answers

How to install php-zip extention on scrutinizer-ci?

I tried to use scrutinizer on my repo but return: Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Your requirements could not be resolved to an installable set of packages. …
Muhammad Dyas Yaskur
  • 6,914
  • 10
  • 48
  • 73
4
votes
1 answer

CI accessing property on interface

I'm using scrutinizer to analyze my code. And almost everything has been fixed but I can't seem to fix this issue. Accessing id on the interface Illuminate\Contracts\Auth\Authenticatable suggest that you code against a concrete implementation. How…
Joren Van Hocht
  • 845
  • 1
  • 9
  • 21
4
votes
2 answers

Why does Scrutinizer say "duplicate code" when code is totally different?

Why does Scrutinizer say "duplicate code" when these two methods are totally different? Is this a false-positive or does Scrutinizer indeed want to see this in a more abstract kind of way?
Sliq
  • 15,937
  • 27
  • 110
  • 143
3
votes
1 answer

Generating Code Coverage in scrutinizer

I created a little package and I want to get some qualifications for it. So one of them is Scrutinizer Coverage and Code Quality. As in the tutorial I created a file and renamed it to scrutinizer.yml and put the following into it: build: tests: …
Babak no'doust
  • 631
  • 7
  • 18
3
votes
0 answers

Scrutinizer PHP Analyzer and global composer dependencies

Our project depends on the bower asset plugin, which has to be installed globally. The question is how to teach scrutinizer to install it before running PHP Analyzer: Adding it to dependencies doesn't do the trick. Here is the configuration: build: …
hypeJunction
  • 351
  • 1
  • 9
2
votes
0 answers

How do you work around the code complexity limit in scrutinizer-ci?

I'm using scrutinizer-ci for an open source project, and many of my files get an F simply because they are "too complex" or "too long". For example in this file, all my functions have C+ but the overall file score is F coz its "too complex". I mean…
Nightfury
  • 91
  • 1
  • 5
2
votes
1 answer

Disable xdebug during scrutinizer inspections

We're not using code coverage so there's no need for xdebug to be enabled. Leaving it enabled but unused is adding significant overhead to our test runtime. I understand the generic steps of how to disable xdebug but I'm looking for answers…
pdbrito
  • 552
  • 8
  • 13
2
votes
0 answers

How to avoid this bug in Scrutinizer for Laravel project?

When I check my Laravel app on Scrutinizer shows me some bugs like this one: The method with does only exist in Illuminate\View\View, but not in Illuminate\Contracts\View\Factory. The code is: $data['records'] =…
Paco Orozco
  • 669
  • 1
  • 6
  • 17
2
votes
1 answer

Scrutinizer Laravel 5.2 could not be analyzed

Since I upgraded Laravel to 5.2, Scrutinizer throws an error saying that it couldn't be analyzed: My composer.json is: "name": "laravel/laravel", "description": "The Laravel Framework.", "keywords": ["framework", "laravel"], "license":…
mastercheef85
  • 2,109
  • 3
  • 18
  • 25
2
votes
1 answer

Scrutinizer + PHP + MongoDB: Connection refused

I can't connect to MongoDB when running my tests on Scrutinizer. My testsuite errors out with MongoConnectionException: Failed to connect to: localhost:27017: Connection refused Does it need any credentials? Do I need to enable MongoDB somehow? Do…
Rudolph Gottesheim
  • 1,671
  • 1
  • 17
  • 30
2
votes
0 answers

How do you use Scrutinizer's dependency_paths config setting to hide issues in certain folders?

I'm using Scrutinizer-CI's static analysis functions to provide feedback on my PHP code. Per their documentation, I have a .scrutinizer.yml file in the root of my project that seems to be successfully configuring Scrutinizer's options the way I…
matt
  • 345
  • 2
  • 15
2
votes
0 answers

How can I force Scrutinizer to scan .inc files

It seems Scrutinizer does not find or detect the .inc files as PHP although they are PHP files but need this extension. Is there some setting for the YAML-file to treat the .inc files as PHP files and actually detect them, and can I rename *.inc to…
user753676
1
vote
1 answer

In Php, how do I set the return type of a variable using inline type hinting

How can I avoid this "error": Basically docblocks for DataObject::get_one says that it returns a DataObject, which is true, but most of the time it is a class that extends DataObject - e.g. class HealthCheck extends DataObject in this case. If I…
1
2 3