phpmd Questions

3

Solved

I have both xdebug and PHP_CodeSniffer (PHPCS) working great on my installation of PHPStorm, but the one really annoying part is that the debugger now seems to be treating Code Sniffer errors as br...
Quiroz asked 17/7, 2012 at 17:49

2

command phpmd app,config,routes text phpmd.xml I use phpmd on Laravel project, there is a rule named CouplingBetweenObjects under design.xml, I want to ignore all files in app/Http/Controllers dir...
Dodgson asked 9/7, 2020 at 3:8

5

Solved

I have this code in a function: if ($route !== null) { // a route was found $route->dispatch(); } else { // show 404 page $this->showErrorPage(404); } Now PHPmd gives an error: The m...
Controvert asked 20/9, 2015 at 7:48

4

Solved

I've just fired up PHPMD for the first time and, predictably, I've got an error I can't figure out. The error is Avoid using static access to class 'InvalidArgumentException' in method 'setLang...
Adulate asked 3/9, 2013 at 5:56

2

These two PHP class methods violates Single Responsibility Principle (SRP) according to the phpmd rule booleanargumentflag. How should they be written to avoid this? If the solution is to remove ...
Pharos asked 16/9, 2015 at 8:9

1

I've been trying to configure phpmd to work with PhpStorm, but I'm stuck here. Here's the error I have: PHP Mess Detector phpmd: Can not correctly run the tool with parameters: C:/Users/me/App...
Capsulize asked 22/8, 2016 at 8:12

2

Solved

I have Ubuntu 14.04 + Sublime text 3 and installed phpcs packages additionalty I have installed phpcs and php-cs-fixer on my system From this blog I have found that phpmd (PHP Mess Detector) is ...
Margaretemargaretha asked 15/1, 2015 at 7:5

2

I have the PTI Eclipse plugin installed. There is a possibility to change PDepend, CodeSniffer and UnitTest When I try right-clicking on any file I have a Mess Detector option as well but nothing...
Honoria asked 5/2, 2013 at 10:32

1

How can I locally disable a single phpmd rule for a few lines and then re-enable a rule, for example the unusedcode?
Modiolus asked 27/4, 2015 at 19:43

2

Solved

I'm trying to understand how Cyclomatic Complexity works and how I can avoid the warnings. Yes, I understand that the goal of writing code is not to avoid arbitrary warnings, but I'd at least like ...
Anemochore asked 3/12, 2013 at 16:59

2

Solved

I have this function that is responsible for converting a file's name and mime-type into something more "human" (e.g. file.png, image/png to [Image, PNG]). What I found interesting was that groups ...
Devoice asked 15/1, 2014 at 19:26
1

© 2022 - 2024 — McMap. All rights reserved.