Skip to content

Commit

Permalink
Cleanup .gitignore entries (exonum#724)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvlabat authored and stanislav-tkach committed Jun 7, 2018
1 parent 63fbdb7 commit c6f7c2a
Show file tree
Hide file tree
Showing 5 changed files with 780 additions and 23 deletions.
14 changes: 3 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,15 @@

# cargo
target
*/target
*.rs.bk
Cargo.lock

# fuzz testing
exonum/fuzz/target
exonum/fuzz/corpus
exonum/fuzz/artifacts

# node (for cspell)
/node_modules
/npm-debug.log
/package-lock.json

# node (for testkit example)
/testkit/examples/server/node_modules
/testkit/examples/server/npm-debug.log
# node
node_modules
npm-debug.log

# IDE files
.idea
Expand Down
14 changes: 2 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,18 +77,8 @@ jobs:
- ./node_modules/.bin/markdownlint --version
script:
- cargo fmt --all -- --write-mode=diff
- ./node_modules/.bin/cspell sandbox/{src,examples,tests}/**/*.rs
- ./node_modules/.bin/cspell exonum/{src,benches,tests}/**/*.rs
- ./node_modules/.bin/cspell exonum/fuzz/fuzz_targets/*.rs
- ./node_modules/.bin/cspell testkit/{src,examples,tests}/**/*.rs
- ./node_modules/.bin/cspell testkit/server/{src,examples,tests}/**/*.rs
- ./node_modules/.bin/cspell services/configuration/{src,examples}/**/*.rs
- ./node_modules/.bin/cspell services/time/{src,examples,tests}/**/*.rs
- ./node_modules/.bin/cspell examples/cryptocurrency/{src,examples,tests}/**/*.rs
- ./node_modules/.bin/cspell examples/cryptocurrency-advanced/{src,examples,tests}/**/*.rs
- ./node_modules/.bin/cspell examples/timestamping/{src,examples,tests}/**/*.rs
- find . -not -path "./3rdparty/*" -and -not -path "./node_modules/*" -name "*.md" | xargs ./node_modules/.bin/cspell
- find . -not -path "./3rdparty/*" -and -not -path "./node_modules/*" -name "*.md" | xargs ./node_modules/.bin/markdownlint --config .markdownlintrc
- npm run cspell
- npm run md
- cargo doc --no-deps
# TODO: a tmp hack to ignore warnings about missing pages [ECR-703]
- mkdir -p target/std/string
Expand Down
31 changes: 31 additions & 0 deletions cspell.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/usr/bin/env bash

# Script running cspell checks on all the specified project directories.

# Copyright 2018 The Exonum Team
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

set -e

./node_modules/.bin/cspell sandbox/{src,examples,tests}/**/*.rs
./node_modules/.bin/cspell exonum/{src,benches,tests}/**/*.rs
./node_modules/.bin/cspell exonum/fuzz/fuzz_targets/*.rs
./node_modules/.bin/cspell testkit/{src,examples,tests}/**/*.rs
./node_modules/.bin/cspell testkit/server/{src,examples,tests}/**/*.rs
./node_modules/.bin/cspell services/configuration/{src,examples}/**/*.rs
./node_modules/.bin/cspell services/time/{src,examples,tests}/**/*.rs
./node_modules/.bin/cspell examples/cryptocurrency/{src,examples,tests}/**/*.rs
./node_modules/.bin/cspell examples/cryptocurrency-advanced/{src,examples,tests}/**/*.rs
./node_modules/.bin/cspell examples/timestamping/{src,examples,tests}/**/*.rs
find . -not -path "./3rdparty/*" -and -not -path "./node_modules/*" -name "*.md" | xargs ./node_modules/.bin/cspell
Loading

0 comments on commit c6f7c2a

Please sign in to comment.