meom / phpcs-composer Goto Github PK
View Code? Open in Web Editor NEWMEOM PHPCS rules.
Home Page: https://meom.fi
MEOM PHPCS rules.
Home Page: https://meom.fi
Mismatched text domain. Expected 'kala' but got 'meom-blocks'.
| | (WordPress.WP.I18n.TextDomainMismatch)
Above is outputted when using command ./vendor/bin/phpcs htdocs/wp-content/plugins/meomblocks
with this .phpcs.xml.dist
in meoblocks root.
<?xml version="1.0"?>
<ruleset name="Project Rules">
<rule ref="MEOM-default" />
<!-- Verify that the text_domain is set to the desired text-domain.
Multiple valid text domains can be provided as a new element. -->
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="meom-blocks"/>
</property>
</properties>
</rule>
</ruleset>
Maybe we need to remove checking kala
text-domain check from this main PHPCS rules and it in theme or plugin root folder.
Usual use case for short ternary is reading ACF field values and setting default if value is not set. Now it is not allowed.
$value = get_field('ploo') ? get_field('ploo') : 'moi;
could be written like
$value = get_field('ploo') ?: 'moi;
To allow short ternaries disable this: WordPress.PHP.DisallowShortTernary.Found
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.