WebProject-xyz/ikea-tradfri-php

View on GitHub
.codeclimate.yml

Summary

Maintainability
Test Coverage
version: "2"
checks:
  argument-count:
    config:
      threshold: 4
  complex-logic:
    config:
      threshold: 4
  file-lines:
    config:
      threshold: 250
  method-complexity:
    config:
      threshold: 10
  method-count:
    config:
      threshold: 20
  method-lines:
    config:
      threshold: 40
  nested-control-flow:
    config:
      threshold: 4
  return-statements:
    config:
      threshold: 4
  similar-code:
    config:
      threshold: # language-specific defaults. an override will affect all languages.
  identical-code:
    config:
      threshold: # language-specific defaults. an override will affect all languages.

plugins:
  phpmd:
    enabled: true
    config:
      file_extensions:
        - php
      rulesets: "unusedcode,codesize,build/configs/ruleset.xml"
  phpcodesniffer:
    enabled: true
    config:
      file_extensions: "php"
      standard: "PSR2,PSR1"
    checks:
      Generic Functions OpeningFunctionBraceBsdAllman BraceOnSameLine:
        enabled: false
      PSR2 Methods MethodDeclaration Underscore:
        enabled: false
      PSR2 Classes PropertyDeclaration Underscore:
        enabled: false
      PSR1 Files SideEffects FoundWithSymbols:
        enabled: false
      Generic Files LineLength TooLong:
        enabled: false
      Generic Files LineLength MaxExceeded:
        enabled: false
      Generic WhiteSpace ScopeIndent IncorrectExact:
        enabled: false
      PSR2 Methods FunctionCallSignature Indent:
        enabled: false
      PSR2 Methods FunctionCallSignature SpaceBeforeOpenBracket:
        enabled: false
      Squiz Functions GlobalFunction Found:
        enabled: false
      Squiz Functions MultiLineFunctionDeclaration FirstParamSpacing:
        enabled: false
      PEAR Functions FunctionCallSignature SpaceBeforeOpenBracket:
        enabled: false
      PEAR Functions ValidDefaultValue NotAtEnd:
        enabled: false
  sonar-php:
    enabled: true
    config:
      tests_patterns:
        - tests/Unit/**
  duplication:
    enabled: true

exclude_patterns:
- .git/**/*
- vendor/**/*
- tests/**/*
- wiki/**/*
- .php-cs-fixer.php