mi-schi / phpmd-extension Goto Github PK
View Code? Open in Web Editor NEWContains extra phpmd rules from clean code book and the best practices of my experiences.
License: MIT License
Contains extra phpmd rules from clean code book and the best practices of my experiences.
License: MIT License
it does work when its annotated above the class, but that means it will be suppressed for all methods within the controller. i only want to supress the warnings for a few methods in the controller. Please take a look into this. Thank you.
by adding the line <rule ref="../../../../../../rulesets/cleancode.xml" />
to the phpmd.xml file, the tool breaks. if i remove this line from phpmd.xml everything works just fine.
please fix <3
At the moment the phpmd/phpmd
package is stuck on the 2.10.1 version due to the composer lock being committed to the repository. Would it be possible to remove it or at least update it?
From my understanding the packages which are being distributed shouldn't have lock file committed and versions should be forced by composer.json
Hello
Do you consider adding this package to Packagist repository?
Zur Erinnerung hier fesgehalten. Überdenken der Sinnhaftigkeit von folgender Violation:
A return statement line should only contains Variable,MemberPrimaryPrefix,Literal,FunctionPostfix,Array,ArrayIndexExpression,CastExpression,AllocationExpression,CloneExpression. It increase the reading rate.
Don't add the Action suffix to the methods of the controller actions.This suffix became optional when annotations were introduced for controllers. In modern Symfony applications this suffix is neither required nor recommended .
Using typed properties:
<?php
class User {
public int $id;
public string $name;
}
?>
Results in:
Try to avoid public class variables. Use Getter to access the variable. It supports the principle of privacy.
Hello,
great work.
Is there a way to combine phpmd-extension with a git hook ?
I will define same standards and looking for a git hook.
I will use
https://github.com/edorian/php-coding-standard-generator
to define standards in the phpmd.xml.
Your sincerly
Stephan
Hi Michael,
I'm looking for a role for phpmd.
This role should identify if a script has been sufficiently documented.
I think that the number of lines of a file in the relation of the comment lines must be evaluated. Can you help with an idea?
Greeting Stephan
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.