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
Adjusted minimum stability flag to reflect dev-develop usage #187
Conversation
Scrutinizer are having issues analysing framework. I'm closing this until I hear back from them about that. |
@assertchris should we turn off inspection of external code? https://scrutinizer-ci.com/docs/configuration/filter Maybe add /vendor/* to the exclusion list? |
Trouble is Scrutinizer won't be able to type check the code then. |
Darn, well, scrutinizer doesn't seem to complain when being run on the framework itself. I'm going to re-open this PR to review the results again. |
@assertchris any other information you can post here on the issue as you understand it would be helpful. :D |
Good idea. Well there are unstable dependencies, and the default minimum stability is "stable". That means, when |
We seem to be running a lot more tests on the modules than we are on core. For comparison: framework: https://scrutinizer-ci.com/g/silverstripe/silverstripe-framework/inspections/481a859c-dfb1-4b54-b2ee-d86f60168ecc/log |
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. |
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. :) |
Adjusted minimum stability flag to reflect dev-develop usage
Scrutinizer is having trouble, and I think this might help it along.