Sniff Out Unclean Code with PHP CodeSniffer

  Рет қаралды 12,760

Codecourse

Codecourse

Күн бұрын

Пікірлер: 13
@codecourse
@codecourse 10 жыл бұрын
Sniff Out Unclean Code with PHP CodeSniffer
@Sandman267
@Sandman267 10 жыл бұрын
Could you do a video on composer? I always see it in Github readme files but I have never used it, or the bash shell you showed, and the website doesn't really explain it for me. How do I use it (and what for) and how do I set it up?
@mysterion4105
@mysterion4105 10 жыл бұрын
For Brackets users can install the extension PHP Code Quality Tools.
@dealloc
@dealloc 10 жыл бұрын
If you wan't an easier and more consistent way to follow coding standards, linting, etc. I highly recommend using SublimeLinter for all your linters. You can get phpcs, jshint, csslint and all the other linters you wan't. It's easy to configurate, update and install as well and you're not forced to wait for an update for a linter, since SublimeLinter is just a wrapper for native linters.
@codecourse
@codecourse 10 жыл бұрын
Great tip, thanks for sharing this.
@CzajekTutorialowiec
@CzajekTutorialowiec 10 жыл бұрын
None of this standards is for me because of brackets in a new line... Another thing is, that I have a project with 720 files and it would be hard for me to change everything manually...
@CzajekTutorialowiec
@CzajekTutorialowiec 10 жыл бұрын
Oh, but 'CSScomb JS' is a great plugin to make your css as clean as possible (makes everything automatically). :D
@involix
@involix 10 жыл бұрын
the same thing here. also I don't see any logical explanation why I should use spaces instead of tabs...
@CzajekTutorialowiec
@CzajekTutorialowiec 10 жыл бұрын
Eugene Cooper Exactly!
@xlxAciDxlx
@xlxAciDxlx 10 жыл бұрын
It's about preference, really. Some people prefer same-line brackets, while I prefer having them on new lines. The same thing with spaces vs. tabs. Though I have noticed there's a universal advantage to using tabs compared to spaces, especially if going from/to an IDE.
@dealloc
@dealloc 10 жыл бұрын
If you're working in a team or a community with multiple developers, it's a good idea to follow a standard, even though your preference is different. It's what gives the best result for everyone - also those who picks up the code later on. I started following the PSR-2 coding standard, because I benefit from it when using others code.
@writemurat
@writemurat 10 жыл бұрын
Thanks.
@1kalekip1
@1kalekip1 10 жыл бұрын
PSR-2 is a joke.
How to Learn to Code FAST (Do This or Keep Struggling)
11:00
Andy Sterkowitz
Рет қаралды 726 М.
Measure PHP Code Quality With Static Analysis Using PHPStan
14:23
Beachcasts Programming Videos
Рет қаралды 10 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
Writing Code That Runs FAST on a GPU
15:32
Low Level
Рет қаралды 578 М.
Easy PHP Database Handling With PHP ActiveRecord
16:35
Codecourse
Рет қаралды 13 М.
Coding a Web Server in 25 Lines - Computerphile
17:49
Computerphile
Рет қаралды 360 М.
PHP Code Quality using CodeSniffer phpcbf, phpcs
8:02
Emad Zaamout
Рет қаралды 1,7 М.
PHP статический анализ кода: Code Sniffer
19:28
Андрей Шестаков
Рет қаралды 1,8 М.
I really need to check php compatibility
10:43
Daniel Persson
Рет қаралды 3,4 М.
PHP Code Sniffer: Build Standards Tailored to Your Needs
14:59
Przemysław Hernik
Рет қаралды 2,3 М.