Skip to content

Commit 8f159e1

Browse files
committed
init
0 parents  commit 8f159e1

12 files changed

+291
-0
lines changed

.gitattributes

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Git attributes to ignore selection of files and directories
2+
# when publishing any of releases release.
3+
.* export-ignore
4+
tests export-ignore
5+
vendor export-ignore
6+
7+
*.php diff=php
8+
* text=auto
9+
* eol=lf
10+
*.md text
11+
.gitattributes text
12+
.gitignore text
13+
.scrutinizer.yml text
14+
.travis.yml text
15+
composer.json text
16+
LICENSE text

.gitignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Files and directories to ignore
2+
.buildpath
3+
composer.phar
4+
composer.lock
5+
6+
/tests/results/log/*
7+
/tests/results/report/*
8+
/tests/results/testdox.html
9+
10+
/tmp/*
11+
!/tmp/.dirstamp
12+
/vendor/*
13+
!/vendor/.dirstamp
14+
.project
15+
16+
# Directories files to keep
17+
!/tests/results/log/.gitkeep
18+
!/tests/results/report/.gitkeep
19+
!/tmp/.gitkeep
20+
!/vendor/.gitkeep

.scrutinizer.yml

Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
filter:
2+
excluded_paths:
3+
- 'examples/*'
4+
- 'tests/*'
5+
- 'tmp/*'
6+
- 'vendor/*'
7+
checks:
8+
php:
9+
verify_property_names: true
10+
verify_argument_usable_as_reference: true
11+
verify_access_scope_valid: true
12+
variable_existence: true
13+
useless_calls: true
14+
use_statement_alias_conflict: true
15+
use_self_instead_of_fqcn: true
16+
uppercase_constants: true
17+
unused_variables: true
18+
unused_properties: true
19+
unused_parameters: true
20+
unused_methods: true
21+
unreachable_code: true
22+
too_many_arguments: true
23+
symfony_request_injection: true
24+
sql_injection_vulnerabilities: true
25+
spacing_of_function_arguments: true
26+
spacing_around_non_conditional_operators: true
27+
spacing_around_conditional_operators: true
28+
space_after_cast: true
29+
single_namespace_per_use: true
30+
simplify_boolean_return: true
31+
side_effects_or_types: true
32+
security_vulnerabilities: true
33+
scope_indentation:
34+
spaces_per_level: '4'
35+
return_doc_comments: true
36+
return_doc_comment_if_not_inferrable: true
37+
require_scope_for_properties: true
38+
require_scope_for_methods: true
39+
require_php_tag_first: true
40+
require_braces_around_control_structures: true
41+
remove_trailing_whitespace: true
42+
remove_php_closing_tag: true
43+
psr2_switch_declaration: true
44+
psr2_control_structure_declaration: true
45+
psr2_class_declaration: true
46+
property_assignments: true
47+
prefer_while_loop_over_for_loop: true
48+
prefer_unix_line_ending: true
49+
prefer_sapi_constant: true
50+
precedence_mistakes: true
51+
precedence_in_conditions: true
52+
phpunit_assertions: true
53+
php5_style_constructor: false
54+
parameter_non_unique: true
55+
parameter_doc_comments: true
56+
param_doc_comment_if_not_inferrable: true
57+
optional_parameters_at_the_end: true
58+
one_class_per_file: true
59+
non_commented_empty_catch_block: true
60+
no_unnecessary_if: true
61+
no_unnecessary_function_call_in_for_loop: true
62+
no_unnecessary_final_modifier: true
63+
no_underscore_prefix_in_properties: true
64+
no_underscore_prefix_in_methods: true
65+
no_trait_type_hints: true
66+
no_trailing_whitespace: true
67+
no_space_inside_cast_operator: true
68+
no_space_before_semicolon: true
69+
no_space_around_object_operator: true
70+
no_short_variable_names:
71+
minimum: '1'
72+
no_short_method_names:
73+
minimum: '2'
74+
no_property_on_interface: true
75+
no_non_implemented_abstract_methods: true
76+
no_mixed_inline_html: true
77+
no_goto: true
78+
no_global_keyword: true
79+
no_exit: true
80+
no_eval: true
81+
no_error_suppression: true
82+
no_empty_statements: true
83+
no_else_if_statements: true
84+
no_duplicate_arguments: true
85+
no_debug_code: true
86+
no_commented_out_code: true
87+
newline_at_end_of_file: true
88+
more_specific_types_in_doc_comments: true
89+
missing_arguments: true
90+
method_calls_on_non_object: true
91+
lowercase_php_keywords: true
92+
lowercase_basic_constants: true
93+
line_length:
94+
max_length: '120'
95+
instanceof_class_exists: true
96+
function_in_camel_caps: true
97+
function_body_start_on_new_line: true
98+
foreach_usable_as_reference: true
99+
foreach_traversable: true
100+
fix_use_statements:
101+
remove_unused: true
102+
preserve_multiple: false
103+
preserve_blanklines: false
104+
order_alphabetically: false
105+
fix_linefeed: true
106+
fix_line_ending: true
107+
fix_identation_4spaces: true
108+
ensure_lower_case_builtin_functions: true
109+
encourage_single_quotes: true
110+
duplication: false
111+
encourage_postdec_operator: true
112+
encourage_shallow_comparison: true
113+
deprecated_code_usage: true
114+
deadlock_detection_in_loops: true
115+
code_rating: true
116+
closure_use_not_conflicting: true
117+
closure_use_modifiable: true
118+
classes_in_camel_caps: true
119+
catch_class_exists: true
120+
blank_line_after_namespace_declaration: true
121+
avoid_useless_overridden_methods: true
122+
avoid_usage_of_logical_operators: true
123+
avoid_unnecessary_concatenation: true
124+
avoid_todo_comments: true
125+
avoid_tab_indentation: true
126+
avoid_superglobals: true
127+
avoid_perl_style_comments: true
128+
avoid_multiple_statements_on_same_line: true
129+
avoid_length_functions_in_loops: true
130+
avoid_fixme_comments: true
131+
avoid_duplicate_types: true
132+
avoid_corrupting_byteorder_marks: true
133+
avoid_conflicting_incrementers: true
134+
avoid_closing_tag: true
135+
avoid_aliased_php_functions: true
136+
assignment_of_null_return: true
137+
argument_type_checks: true
138+
no_long_variable_names:
139+
maximum: '20'
140+
align_assignments: true
141+
remove_extra_empty_lines: true
142+
tools:
143+
external_code_coverage: true
144+
php_cs_fixer:
145+
config: { level: psr2 }

.travis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
language: php
2+
3+
php:
4+
- 7.0
5+
- 7.0.8
6+
- nightly
7+
8+
before_script:
9+
- pip install --user codecov
10+
- cd /home/travis/build/aframevr/slackoverflow
11+
- composer install
12+
- cd $TRAVIS_BUILD_DIR/tests
13+
14+
script:
15+
- phpunit --coverage-clover="../coverage.clover"
16+
17+
after_success:
18+
- bash <(curl -s https://codecov.io/bash)
19+
- cd "../"
20+
- wget https://scrutinizer-ci.com/ocular.phar
21+
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License
2+
3+
Copyright © 2016 A-Frame authors.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# SlackOverflow
2+
3+
> Weebhook between slack and api.stackexchange.com
4+
> Work in progress...
5+
6+
[![Minimum PHP Version][php-image]][php-url]
7+
[![GitHub license][license-image]][license-url]
8+
[![Latest version][packagist-v-image]][packagist-url]
9+
[![Downloads total][packagist-dt-image]][packagist-url]
10+
11+
##### Development and Contributing
12+
13+
[![Coding Standards][psr-image]][psr-url]
14+
[![Build Status][travis-ci-image]][travis-ci-url]
15+
[![Scrutinizer Code Quality][scrutinizer-image]][scrutinizer-url]
16+
[![codecov][codecov-image]][codecov-url]
17+
18+
19+
<!-- ASSETS and LINKS -->
20+
<!-- PHP FIG-->
21+
[psr-image]: https://img.shields.io/badge/cs-PSR--2-237551.svg?style=flat-square
22+
[psr-url]: http://www.php-fig.org/
23+
<!-- PHP Version -->
24+
[php-image]: https://img.shields.io/badge/php-%3E%3D%207.0-8892BF.svg?style=flat-square
25+
[php-url]: https://php.net/
26+
<!-- License -->
27+
[license-image]: https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square
28+
[license-url]: https://raw.githubusercontent.com/aframevr/slackoverflow/master/LICENSE
29+
<!-- travis-ci -->
30+
[travis-ci-image]: https://travis-ci.org/aframevr/slackoverflow.svg?branch=master
31+
[travis-ci-url]: https://travis-ci.org/aframevr/slackoverflow
32+
<!-- packagist -->
33+
[packagist-v-image]: https://img.shields.io/packagist/v/aframevr/slackoverflow.svg?style=flat-square
34+
[packagist-dt-image]: http://img.shields.io/packagist/dt/aframevr/slackoverflow.svg?style=flat-square
35+
[packagist-url]: https://packagist.org/packages/aframevr/slackoverflow
36+
<!-- Scrutinizer -->
37+
[scrutinizer-image]: https://scrutinizer-ci.com/g/aframevr/slackoverflow/badges/quality-score.png?b=master
38+
[scrutinizer-url]: https://scrutinizer-ci.com/g/aframevr/slackoverflow/?branch=master
39+
<!-- codecov -->
40+
[codecov-image]: https://codecov.io/gh/aframevr/slackoverflow/branch/master/graph/badge.svg
41+
[codecov-url]: https://codecov.io/gh/aframevr/slackoverflow

composer.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"name" : "aframevr/slackoverflow",
3+
"description" : "Work in progress...",
4+
"type" : "library",
5+
"license" : "MIT",
6+
"require": {
7+
"php": ">= 7"
8+
},
9+
"minimum-stability" : "stable",
10+
"autoload" : {
11+
"psr-4" : {
12+
"AframeVR\\" : "src/"
13+
}
14+
},
15+
"config" : {
16+
"optimize-autoloader" : true
17+
},
18+
"homepage" : "https://github.com/aframevr/slackoverflow",
19+
"support" : {
20+
"issues" : "https://github.com/aframevr/slackoverflow/issues",
21+
"source" : "https://github.com/aframevr/slackoverflow"
22+
},
23+
"keywords" : [
24+
"php",
25+
"aframe"
26+
]
27+
}

examples/.dirstamp

Whitespace-only changes.

src/.dirstamp

Whitespace-only changes.

tests/.dirstamp

Whitespace-only changes.

tmp/.dirstamp

Whitespace-only changes.

vendor/.dirstamp

Whitespace-only changes.

0 commit comments

Comments
 (0)