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

Adjusted minimum stability flag to reflect dev-develop usage #187

Merged
merged 1 commit into from Apr 28, 2015
Merged

Adjusted minimum stability flag to reflect dev-develop usage #187

merged 1 commit into from Apr 28, 2015

Conversation

assertchris
Copy link
Contributor

Scrutinizer is having trouble, and I think this might help it along.

@assertchris
Copy link
Contributor Author

Scrutinizer are having issues analysing framework. I'm closing this until I hear back from them about that.

@tractorcow
Copy link

@assertchris should we turn off inspection of external code? https://scrutinizer-ci.com/docs/configuration/filter

Maybe add /vendor/* to the exclusion list?

@assertchris
Copy link
Contributor Author

Trouble is Scrutinizer won't be able to type check the code then.

@tractorcow
Copy link

Darn, well, scrutinizer doesn't seem to complain when being run on the framework itself.

https://scrutinizer-ci.com/g/silverstripe/silverstripe-framework/inspections/481a859c-dfb1-4b54-b2ee-d86f60168ecc/log

I'm going to re-open this PR to review the results again.

@tractorcow tractorcow reopened this Apr 19, 2015
@tractorcow
Copy link

@assertchris any other information you can post here on the issue as you understand it would be helpful. :D

@assertchris
Copy link
Contributor Author

Good idea. Well there are unstable dependencies, and the default minimum stability is "stable". That means, when composer install|update is run on this repository; the dependencies cannot be resolved. I suggested this change so that Travis and Scrutinizer would be able to run composer install|update.

@tractorcow
Copy link

@tractorcow
Copy link

And here is the config we are using for framework inspections.

tools:
    php_cs_fixer: true
    php_code_sniffer:
        config:
            standard: PSR1
    php_mess_detector: true
    php_cpd: true
    php_analyzer:
        filter:
            excluded_paths: ["*/Tests/*"]
    sensiolabs_security_checker: true

checks:
    php:
        verify_argument_usable_as_reference: false

Plus the .scrutinizer.yml included in the repo

https://github.com/silverstripe/silverstripe-framework/blob/3.1/.scrutinizer.yml

tools:
    custom_commands:
        -
            scope: file
            command: php tests/phpcs_runner.php %pathname%
            filter:
               excluded_paths: ["*/css/*", "css/*", "thirdparty/*", "*/jquery-changetracker/*", "parsers/HTML/BBCodeParser/*", "*/SSTemplateParser.php$", "docs/*", "*/images/*"]

I don't have access to the blog configuration.

@tractorcow
Copy link

I need to read through https://scrutinizer-ci.com/docs/configuration/best_practices and figure out what the current state is and what we should do to configure each module. :)

tractorcow pushed a commit that referenced this pull request Apr 28, 2015
Adjusted minimum stability flag to reflect dev-develop usage
@tractorcow tractorcow merged commit 8cd2b79 into silverstripe:master Apr 28, 2015
@assertchris assertchris deleted the minimum-stability-settings branch May 13, 2015 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants