Christoph Wurst
caff1023ea
Format control structures, classes, methods and function
To continue this formatting madness, here's a tiny patch that adds
unified formatting for control structures like if and loops as well as
classes, their methods and anonymous functions. This basically forces
the constructs to start on the same line. This is not exactly what PSR2
wants, but I think we can have a few exceptions with "our" style. The
starting of braces on the same line is pracrically standard for our
code.
This also removes and empty lines from method/function bodies at the
beginning and end.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Christoph Wurst
afbd9c4e6e
Unify function spacing to PSR2 recommendation
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Christoph Wurst
74936c49ea
Remove unused imports
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Christoph Wurst
5bf3d1bb38
Update license headers
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Roeland Jago Douma
68748d4f85
Some php-cs fixes
* Order the imports
* No leading slash on imports
* Empty line before namespace
* One line per import
* Empty after imports
* Emmpty line at bottom of file
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
6 years ago
Joas Schilling
211212f4b3
App manager is not needed anymore
Signed-off-by: Joas Schilling <coding@schilljs.com>
8 years ago
Joas Schilling
17a26dfcc1
Validate the info.xml against the appstore schema file
Signed-off-by: Joas Schilling <coding@schilljs.com>
8 years ago
Morris Jobke
eb51f06a3b
Use ::class statement instead of string
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
8 years ago
Joas Schilling
3b267b165f
Check the migration files for table, column and index length errors
Signed-off-by: Joas Schilling <coding@schilljs.com>
9 years ago
Joas Schilling
eebd2811dc
Version and dependency are now required
Signed-off-by: Joas Schilling <coding@schilljs.com>
9 years ago
Morris Jobke
6dea5e6aad
Implement skip checkers and log the currently tested app
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
9 years ago
Joas Schilling
f920dfe09b
Skip the code checking for now
Signed-off-by: Joas Schilling <coding@schilljs.com>
9 years ago
Joas Schilling
31bb65fa36
Check the name length of database items
Signed-off-by: Joas Schilling <coding@schilljs.com>
9 years ago
Joas Schilling
93fc7fcdbe
Check the syntax of the language file
Signed-off-by: Joas Schilling <coding@schilljs.com>
9 years ago
Lukas Reschke
60d1e8e63e
Check for nextcloud version as well
The code checker didn't consider the "nextcloud" version before, resulting in fails such as https://travis-ci.org/nextcloud/richdocuments/jobs/181470760#L415-L416
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
9 years ago
Joas Schilling
e1df6b5702
Full support for autocomplete of app:*
Signed-off-by: Joas Schilling <coding@schilljs.com>
10 years ago
Joas Schilling
ba87db3fcc
Fix others
10 years ago
Thomas Müller
48b61b7b5a
Deprecate appinfo/update.php - RepairSteps within info.xml are to be used
10 years ago
Lukas Reschke
a4b19a5b1e
Rename files to be PSR-4 compliant
10 years ago
Thomas Müller
682821c71e
Happy new year!
10 years ago
Joas Schilling
c55da1fc8d
Add a warning to the app:check-code if the version is missing
10 years ago
Joas Schilling
fe04451cb1
Do not allow two different version requirements
10 years ago
Morris Jobke
b945d71384
update licence headers via script
10 years ago
Morris Jobke
5a3e57c2f5
encode arrays as string
11 years ago
Morris Jobke
9b652ed5d5
[App Code Check] add check for version and mandatory fields
* ref #17598
* including unit tests for mandatory fields/versions
11 years ago
Joas Schilling
3566dcf246
PR #17046 deprecated OCP\Util::mb_(sub)str_replace()
11 years ago
Robin McCorkell
0de5c35dba
Allow specifying the checkers used in app:check-code
By default, all are enabled, but specific ones can be selected through command
line options.
11 years ago
Joas Schilling
a0c6f2e5e0
Use the decorator pattern
11 years ago
Joas Schilling
bba87a2a3b
Restructor the code into different classes instead of extending
11 years ago
Joas Schilling
9e469046fa
Use non-zero exit code
11 years ago
Joas Schilling
4e95031ec4
Allow app:check-code to check for deprecated methods
11 years ago
Morris Jobke
f63915d0c8
update license headers and authors
11 years ago
Joas Schilling
e5bc50d156
Use non-zero exit code when app is not compliant (so CIs can detect the status)
11 years ago
Morris Jobke
56b1c93a79
Add verbosity option to app:check-code
* by default only lists files with errors
* option -v lists all files even if there are no errors
11 years ago
Joas Schilling
87787a3af4
Fix the "app-id" parameter description of app:check-code
11 years ago
Jenkins for ownCloud
b585d87d9d
Update license headers
11 years ago
Morris Jobke
06aef4e8b1
Revert "Updating license headers"
This reverts commit 6a1a4880f0 .
11 years ago
Jenkins for ownCloud
6a1a4880f0
Updating license headers
11 years ago
Thomas Müller
d74662df7d
implement php code checker to detect usage of not allowed private APIs - including console command to check local code to be used by developers
11 years ago