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
50e9ebb6
Commit
50e9ebb6
authored
Aug 16, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make: add ruleset.xml for better style checks
parent
944de05c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
Makefile
Makefile
+2
-2
ruleset.xml
ruleset.xml
+6
-0
No files found.
Makefile
View file @
50e9ebb6
...
...
@@ -302,7 +302,7 @@ sweep: force
xargs
-0
-n1
scripts/cleanfile
style
:
want-pear-PHP_CodeSniffer
@
(
phpcs
--
tab-width
=
4
--standard
=
PSR2
${
.CURDIR
}
/src/opnsense/mvc
\
@
(
phpcs
--
standard
=
ruleset.xml
${
.CURDIR
}
/src/opnsense/mvc
\
||
true
)
>
${
.CURDIR
}
/.style.out
@
echo
-n
"Total number of style warnings: "
@
grep
'| WARNING'
${
.CURDIR
}
/.style.out |
wc
-l
...
...
@@ -312,7 +312,7 @@ style: want-pear-PHP_CodeSniffer
@
rm
${
.CURDIR
}
/.style.out
stylefix
:
want-pear-PHP_CodeSniffer
phpcbf
--standard
=
PSR2
${
.CURDIR
}
/src/opnsense/mvc
||
true
phpcbf
--standard
=
ruleset.xml
${
.CURDIR
}
/src/opnsense/mvc
||
true
setup
:
force
${
.CURDIR
}
/src/etc/rc.php_ini_setup
...
...
ruleset.xml
0 → 100644
View file @
50e9ebb6
<?xml version="1.0"?>
<ruleset
name=
"PSR2+"
>
<description>
Slightly enhanced version of the PSR2 standard
</description>
<rule
ref=
"Squiz.WhiteSpace.SemicolonSpacing"
/>
<rule
ref=
"PSR2"
/>
</ruleset>
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