From 740d0ea5fad17f6e543a177b1ea9ddb053b5e176 Mon Sep 17 00:00:00 2001 From: gero3 Date: Fri, 24 Jul 2015 22:41:46 +0000 Subject: [PATCH] set config for codestyle --- utils/codestyle/codestyle.sh | 5 +---- utils/codestyle/config.json | 27 ++++++++++++++++++++------- 2 files changed, 21 insertions(+), 11 deletions(-) diff --git a/utils/codestyle/codestyle.sh b/utils/codestyle/codestyle.sh index 5663cd0083..9a1811b692 100755 --- a/utils/codestyle/codestyle.sh +++ b/utils/codestyle/codestyle.sh @@ -1,5 +1,2 @@ - -jscs "../../src" --fix --preset=mdcs -jscs "../../examples/js" --fix --preset=mdcs - +jscs "../.." --fix --config=./config.json --max-errors=1000000 diff --git a/utils/codestyle/config.json b/utils/codestyle/config.json index 73bffcf7dc..fad7a876d2 100644 --- a/utils/codestyle/config.json +++ b/utils/codestyle/config.json @@ -1,13 +1,26 @@ { "preset": "mdcs", "excludeFiles": [ - "build/**", - "docs/**", - "editor/**", - "examples/**", - "node_modules/**", - "test/**", - "utils/**" + "../../.c9/", + "../../.c9version/", + "../../.git/", + "../../build/", + "../../docs/", + "../../editor/", + "../../node_modules/", + "../../test/", + "../../utils/", + "../../examples/files/", + "../../examples/fonts/", + "../../examples/models/", + "../../examples/obj/", + "../../examples/scenes/", + "../../examples/sounds/", + "../../examples/textures/", + "../../examples/js/libs/", + "../../examples/js/loaders/ctm/", + "../../examples/js/loaders/gltf/", + "../../examples/js/loaders/sea3d/" ] } \ No newline at end of file -- GitLab