Skip to content

Commit

Permalink
Merge pull request #21 from enb-make/issue-18
Browse files Browse the repository at this point in the history
Issue 18 Implement tests for borschik technology
  • Loading branch information
blond committed Jun 26, 2015
2 parents 8ea2581 + 3380d89 commit dcecd32
Show file tree
Hide file tree
Showing 19 changed files with 951 additions and 70 deletions.
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
root = true

[*]
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 4

[package.json]
indent_size = 2
57 changes: 57 additions & 0 deletions .jscs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
module.exports = {
excludeFiles: [
'node_modules',
'coverage',
'test'
],
requireSpaceAfterKeywords: ['if', 'else', 'for', 'while', 'do', 'switch', 'return', 'try', 'catch'],
requireSpaceBeforeBlockStatements: true,
requireSpacesInConditionalExpression: true,
requireSpacesInFunction: {
beforeOpeningCurlyBrace: true
},
requireSpacesInAnonymousFunctionExpression: {
beforeOpeningRoundBrace: true
},
disallowSpacesInNamedFunctionExpression: {
beforeOpeningRoundBrace: true
},
requireMultipleVarDecl: true,
requireBlocksOnNewline: 1,
disallowPaddingNewlinesInBlocks: true,
disallowSpacesInsideArrayBrackets: 'nested',
disallowSpacesInsideParentheses: true,
requireSpacesInsideObjectBrackets: 'all',
disallowQuotedKeysInObjects: 'allButReserved',
disallowSpaceAfterObjectKeys: true,
requireCommaBeforeLineBreak: true,
requireOperatorBeforeLineBreak: true,
disallowSpaceAfterPrefixUnaryOperators: true,
disallowSpaceBeforePostfixUnaryOperators: true,
requireSpaceBeforeBinaryOperators: true,
requireSpaceAfterBinaryOperators: true,
requireCamelCaseOrUpperCaseIdentifiers: true,
disallowKeywords: ['with'],
disallowMultipleLineStrings: true,
disallowMultipleLineBreaks: true,
validateLineBreaks: 'LF',
validateQuoteMarks: {
mark: '\'',
escape: true
},
disallowMixedSpacesAndTabs: true,
disallowTrailingWhitespace: true,
disallowKeywordsOnNewLine: ['else', 'catch'],
requireLineFeedAtFileEnd: true,
maximumLineLength: 120,
requireCapitalizedConstructors: true,
safeContextKeyword: ['_this'],
disallowYodaConditions: true,
validateJSDoc: {
checkParamNames: true,
checkRedundantParams: true,
requireParamTypes: true
},
requireSpaceAfterLineComment: true,
disallowNewlineBeforeBlockStatements: true
};
2 changes: 2 additions & 0 deletions .jshintignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
node_modules
coverage
test/fixtures
15 changes: 10 additions & 5 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
{
"bitwise": true,
"curly": true,
"eqeqeq": true,
"forin": true,
"freeze": true,
"immed": true,
"newcap": true,
"latedef": "nofunc",
"noarg": true,
"noempty": true,
"nonbsp": true,
"nonew": true,
"undef": true,
"unused": true,
"trailing": true,
"maxlen": 120,
"quotmark": "single",
"node": true

"node": true,

"expr": true,
"sub": true
}
13 changes: 11 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
sudo: false

language: node_js

node_js:
- "0.10"
matrix:
include:
- node_js: iojs-v1
- node_js: "0.10"
- node_js: "0.12"
env: COVERALLS=1

after_success:
- if [ "x$COVERALLS" = "x1" ]; then npm run coveralls; fi
37 changes: 37 additions & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
Контрибьюторам
==============

Этот документ описывает некоторые положения о совместной работе над проектом `enb-borschik`.

Мейнтейнер проекта — [Андрей Абрамов (@blond)](https://github.com/blond).

Проект развивается с помощью сообщества. Мейнтейнер мерджит пулл-реквесты, исправляет особо критичные баги.

Контрибьютеры
-------------

Список контрибьютеров данного проекта доступен по ссылке https://github.com/enb-make/enb-borschik/graphs/contributors.

Вы так же можете получить его с помощью команды `git log --pretty=format:"%an <%ae>" | sort -u`.

Пулл-реквесты
-------------

Если вы что-то исправили или добавили в пакет `enb-borschik`, вы можете отправить пулл-реквест. Он будет рассмотрен мейнтейнером и,
либо принят, либо прокомментирован для дальнейшей доработки, либо отклонен.

Ошибки
------

Если вы нашли ошибку, недоделку, опечатку и вообще любой дефект в `enb-borschik`, пожалуйста, сообщите об этом, используя github-issues.
И да. Чем подробнее вы опишите ошибку, тем быстрее её смогут воспроизвести и исправить, и тем больше ментейнеры будут вам признательны :)
К сожалению, неизбежны ситуации, когда ошибка будет воспроизводиться только на вашем проекте или в вашем серверном окружении, и ментейнер
не сможет не только исправить, а даже воспроизвести её. В таких случаях, мы будем верить, вы сами сможете найти нужное исправление и со временем предложить ментейнеру фикс.

Фичи
----

Если вы придумали новую фичу, весьма вероятно, что её реализацию вам придётся писать самому.
Но вы не постесняйтесь, спросите у ментейнеров имена разработчиков, которые хорошо разбираются в `enb-borschik` — с ними можно скооперироваться, чтобы реализовать вашу задумку.
Если вы не можете её реализовать сами и не смогли заинтересовать других крутых разработчиков, но фича невероятно крутая — заведите таск в Issues, что-нибудь придумаем.
В крайнем случае объясним вам, что хотеть эту фичу вам не нужно. Или что с ней нужно повременить. Но это в крайнем случае :)
20 changes: 0 additions & 20 deletions LICENSE

This file was deleted.

Loading

0 comments on commit dcecd32

Please sign in to comment.