Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
edecc7bc
Commit
edecc7bc
authored
Dec 28, 2014
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make: add a code style checker for PSR1/PSR2
parent
f03a3a1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
Makefile
Makefile
+11
-1
No files found.
Makefile
View file @
edecc7bc
...
...
@@ -22,10 +22,20 @@ sweep:
!
-name
"*.map"
-type
f
-print0
|
\
xargs
-0
-n1
scripts/cleanfile
style
:
@
(
phpcs
--tab-width
=
4
--standard
=
PSR2
${
.CURDIR
}
/src/opnsense
\
||
true
)
>
${
.CURDIR
}
/.style.out
@
echo
-n
"Total number of style warnings: "
@
grep
'| WARNING'
${
.CURDIR
}
/.style.out |
wc
-l
@
echo
-n
"Total number of style errors: "
@
grep
'| ERROR'
${
.CURDIR
}
/.style.out |
wc
-l
@
cat
${
.CURDIR
}
/.style.out
@
rm
${
.CURDIR
}
/.style.out
setup
:
${
.CURDIR
}
/src/etc/rc.php_ini_setup
clean
:
git reset
--hard
HEAD
&&
git clean
-xdqf
.
.PHONY
:
mount umount install lint sweep setup clean
.PHONY
:
mount umount install lint sweep s
tyle s
etup clean
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment