.codeclimate.yml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. version: "2"
  2. checks:
  3. argument-count:
  4. enabled: false
  5. complex-logic:
  6. enabled: false
  7. file-lines:
  8. enabled: false
  9. method-complexity:
  10. enabled: true
  11. config:
  12. threshold: 20
  13. method-count:
  14. enabled: false
  15. method-lines:
  16. enabled: false
  17. nested-control-flow:
  18. config:
  19. threshold: 20
  20. return-statements:
  21. enabled: false
  22. plugins:
  23. phan:
  24. enabled: true
  25. config:
  26. file_extensions: "php"
  27. fixme:
  28. enabled: true
  29. config:
  30. strings:
  31. - FIXME
  32. - BUG
  33. phpcodesniffer:
  34. enabled: true
  35. config:
  36. standard: "Symfony2"
  37. file_extensions: "php"
  38. checks:
  39. PSR1 Classes ClassDeclaration MissingNamespace:
  40. enabled: false
  41. PSR1 Files SideEffects FoundWithSymbols:
  42. enabled: false
  43. Squiz Strings ConcatenationSpacing PaddingFound:
  44. enabled: false
  45. phpmd:
  46. enabled: true
  47. config:
  48. file_extensions: "php"
  49. rulesets: "ruleset.xml"
  50. sonar-php:
  51. enabled: false
  52. checks:
  53. php:S1192:
  54. enabled: false
  55. duplication:
  56. enabled: false
  57. exclude_patterns:
  58. - var/cache/
  59. - var/log/
  60. - config/
  61. - app/SymfonyRequirements.php
  62. - app/Migrations/
  63. - app/Resources/
  64. - main/admin/db.php
  65. - main/admin/ldap_synchro.php
  66. - main/chat/emoji_strategy.php
  67. - main/document/Wami.swf
  68. - main/fonts/
  69. - main/inc/ajax/Wami.swf
  70. - main/inc/lib/browser/
  71. - main/inc/lib/internationalization_database/
  72. - main/inc/lib/javascript/
  73. - main/inc/lib/kses-0.2.2/
  74. - main/inc/lib/mimetex/
  75. - main/inc/lib/nanogong/
  76. - main/inc/lib/nusoap/
  77. - main/inc/lib/opengraph/*
  78. - main/inc/lib/ppt2png/
  79. - main/inc/lib/pear/
  80. - main/inc/lib/svg-edit/
  81. - main/inc/lib/swfobject/
  82. - main/inc/lib/wami-recorder/
  83. - main/inc/lib/xajax/
  84. - main/lp/packaging/
  85. - main/template/
  86. - main/lang/
  87. - public/libs/
  88. - public/img/
  89. - plugin/buycourses/src/Culqi/
  90. - plugin/buycourses/src/Requests/
  91. - plugin/buycourses/src/Requests.php
  92. - plugin/buycourses/src/paypalfunctions.php
  93. - plugin/vchamilo/cli/
  94. - plugin/pens/lib
  95. - plugin/bbb/lib/bbb_api.php
  96. - plugin/ims_lti/OAuthSimple.php
  97. - plugin/sepe/src/wsse/
  98. - plugin/test2pdf/class/
  99. - plugin/jcapture/lib/
  100. - plugin/jcapture/src/
  101. - tests/
  102. - vendor/
  103. - web/