2019-03-09 19:44:14 +00:00
# JED Checker
2013-02-12 09:13:48 +00:00
This extension is able to check your components, modules or plugins for common errors that will prevent you
from publishing your extension on the JED (Joomla! Extensions Directory).
2017-04-04 16:16:54 +00:00
If you are a developer and want to contribute to this extension you can fork this repo.
2013-02-12 09:13:48 +00:00
2013-11-05 20:29:15 +00:00
## Uploading your package
2019-03-09 19:44:14 +00:00
2013-02-12 09:13:48 +00:00
After installing this extension in your Joomla! backend, you can use it by uploading a Joomla! extension-package using
the upload-button. Once uploaded, the contents of the package (your files) will be checked against JED-rules.
2013-11-05 20:29:15 +00:00
## Adding rules
2019-03-09 19:44:14 +00:00
2013-02-12 09:15:13 +00:00
If you want to write a rule have a look a the `administrator/components/com_jedchecker/library/rules` folder.
2013-02-12 09:13:48 +00:00
2013-02-12 09:15:13 +00:00
You just need to add a new file with your rule, for example `yourrule.php` .
2013-02-12 09:13:48 +00:00
2013-02-12 09:15:13 +00:00
The file `yourrule.php` needs to have a class `jedcheckerRulesYourrule` and that class needs to have a
2013-02-12 09:13:48 +00:00
function that accepts the basedir as parameter. This is all - the component will automatically call
your rule check function.
2013-11-05 20:29:15 +00:00
If you are going to contribute your rule to the project, then make sure that it follows the joomla coding conventions
and that it passes the code sniffer: http://docs.joomla.org/Joomla_CodeSniffer
## Checking on existing files and folders
2019-03-09 19:44:14 +00:00
2013-02-12 09:13:48 +00:00
The extension also supports a scan of a pre-defined set of existing files and folders.
2013-02-12 09:17:25 +00:00
For this to work, add a list of folders to a textfile `tmp/jed_checker/local.txt` .
2019-03-09 19:44:14 +00:00
There should be a folder on each line.
2013-02-12 09:13:48 +00:00
Once the file exists, a "Check" button becomes visible in the jedchecker-toolbar. Just hit it.
2013-02-12 09:17:25 +00:00
Example `tmp/jed_checker/local.txt` file:
2019-03-09 19:44:14 +00:00
components/com_jedchecker
administrator/components/com_jedchecker
2013-02-12 09:17:25 +00:00
plugins/system
2019-03-10 08:49:52 +00:00
## History of the Extension
2019-03-10 08:50:31 +00:00
This extension was previously maintained by Compojoom (Daniel Dimitrov). Other developers that collaborated with the original project were Denis Dulici (mijosoft.com), Riccardo Zorn (fasterjoomla.com), Bernard Toplak, and eaxs (projectfork.net).
2019-03-10 08:49:52 +00:00
Now, JED Checker is currently supported by Joomla (Open Source Matters).
2013-11-05 20:29:15 +00:00
## COPYRIGHT AND DISCLAIMER
2019-03-09 19:44:14 +00:00
2019-03-10 16:09:42 +00:00
Copyright (C) 2017 - 2019 Open Source Matters, Inc. All rights reserved.
Copyright (C) 2008 - 2016 compojoom.com . All rights reserved.
2013-11-05 20:29:15 +00:00
2017-02-14 13:24:21 +00:00
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
2013-11-05 20:29:15 +00:00
2017-02-14 13:24:21 +00:00
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
2013-11-05 20:29:15 +00:00
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.