Skip to content

Commit

Permalink
editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
mcandre committed Dec 5, 2016
1 parent 81cc0d8 commit 70318b3
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 54 deletions.
70 changes: 39 additions & 31 deletions .editorconfig
Expand Up @@ -2,50 +2,58 @@

root = true

# Default to Google Style
# https://code.google.com/p/google-styleguide/
# bash8
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
charset = utf-8
trim_trailing_whitespace = true
max_line_length = 120
spaces_around_operators = true
spaces_around_brackets = false
max_line_length = none
indent_style = space
indent_size = 2
indent_brace_style = K&R
curly_bracket_next_line = false
continuation_indent_size = 4
indent_size = 4

# Make, Go
# Lexer restrictions
[{Makefile*,*.mf,*.go}]
indent_style = tab

# F#
[{*.fs,*.fsx}]
indent_style = space

# Markdown
[{*.md,*.markdown}]
indent_size = none

# PEP8
[*.py]
indent_size = 4

# JavaScript
[*.js]
# Natural HTML nesting
[{*.js}]
quote_type = single

# Lisp
[{*.lisp,*.scm,*.rkt,*.lsp,*.clj,*.el,*.emacs}]
# Poetry
[{*.txt,*.md}]
indent_size = none
[{*.lisp,*.lsp,*.scm,*.el,*.rkt,*.abcl,*.ccl,*.clisp,*.ecl,*.sbcl,.eclrc,.sbclrc,*.m,*.mm}]
indent_size = none

# Pagragraph-oriented text
[{*.txt,*.text,*.xml,*.*htm*,*.erb,*.tex,*.md,*.markdown,*.textile,*.ps,Makefile*,Rakefile*,*.mf,*.plist,*.bat,*.*sh,.*profile*,.editorconfig,.gitignore*,.*rc*,*.profile,*.epf,*.cfg}]
max_line_length = none

# Windows files
[{*.bat,*reg,*.ps1,*.vbs,*.cs,*.csproj,*.fs,*.sln,*.xaml*,*.ahk}]
# Windows junk
[{*.cmd,*.bat,*.reg,*.ps1,*.vbs,*.cs,*.fs,*.fsx,*.ahk}]
end_of_line = crlf

#
# legacy
#
[{*.rb,Gemfile,*.gemspec,Rakefile,Vagrantfile,Guardfile*,*.reek,*.pp,*.feature}]
indent_size = 2
[{*.js,*.json,*.coffee,*.ts,*.dart,*.pjs,.eslintrc,.jshintrc,.jslintrc,.bowerrc}]
indent_size = 2
[{*.html,*.css,*.less,*.scss,*.styl,*.php,*.tex}]
indent_size = 2
[{*.yml,*.yaml,*.xml}]
indent_size = 2
[{*.ps1,*.ahk,.emacs,.vimrc}]
indent_size = 2
[{*.java,*.groovy,*.scala,*.gradle}]
indent_size = 2
[{*.c,*.h,*.cpp,*.rs,*.d,*.swift,*.vala,*.sac}]
indent_size = 2
[{*.asm,*.s,*.ll}]
indent_size = 2
[{*.pl,*.pm,*.f08,*.j,*.lua,*.st,*.io,*.pas,*.oz}]
indent_size = 2
[{*.hs,*.ml,*.v,*.sml,*.fs,*.fsx,*.ma,*.psql,*.R}]
indent_size = 2
[{*.awk,*.erl,*.escript,*.yaws,*.bf,*.bs,*.cob,*.factor,*.tcl,*.rl}]
indent_size = 2
2 changes: 1 addition & 1 deletion .node-version
@@ -1 +1 @@
0.11.6
4.5.0
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -4,7 +4,7 @@ test: dashcheck.d example.d
-rdmd example.d

editorconfig:
find . -type f -name Thumbs.db -prune -o -type f -name .DS_Store -prune -o -type d -name .git -prune -o -type d -name .svn -prune -o -type d -name tmp -prune -o -type d -name bin -prune -o -type d -name target -prune -o -name "*.app*" -prune -o -type d -name node_modules -prune -o -type d -name bower_components -prune -o -type f -name "*[-.]min.js" -prune -o -type d -name "*.dSYM" -prune -o -type f -name "*.scpt" -prune -o -type d -name "*.xcodeproj" -prune -o -type d -name .vagrant -prune -o -type f -name .exe -prune -o -type f -name "*.o" -prune -o -type f -name "*.pyc" -prune -o -type f -name "*.hi" -prune -o -type f -name "*.beam" -prune -o -type f -name "*.png" -prune -o -type f -name "*.gif" -prune -o -type f -name "*.jp*g" -prune -o -type f -name "*.ico" -prune -o -type f -name "*.ttf" -prune -o -type f -name "*.zip" -prune -o -type f -name "*.jar" -prune -o -type f -name "*.dot" -prune -o -type f -name "*.pdf" -prune -o -type f -name "*.wav" -prune -o -type f -name "*.mp[34]" -prune -o -type f -name "*.svg" -prune -o -type f -name "*.flip" -prune -o -type f -name "*.class" -prune -o -type f -name "*.jad" -prune -o -type d -name .idea -prune -o -type f -name "*.iml" -prune -o -type f -name "*.log" -prune -o -type f -name "*" -exec node_modules/.bin/editorconfig-tools check {} \;
find . \( -wholename '*/bin/*' -o -wholename '*/ts/*.js' -o -wholename '*/dash/lib/*' -o -wholename '*/ash/lib/*' -o -name '*.bc' -o -name '*.aux' -o -name '*.jad' -o -name '*.m' -o -name '*.snu' -o -name '*.txt' -o -name '*.md' -o -name '*.rkt' -o -name '*.clj' -o -name '*.lsp' -o -name .yaws -o -name '*.pdf' -o -name '*.ps' -o -wholename '*/.idea/*' -o -name '*.iml' -o -name '*.ser' -o -name '*.[ps]k' -o -name '*.flip' -o -name '*.db' -o -name '*.log' -o -wholename '*/bower_components/*' -o -wholename '*/vendor/*' -o -wholename '*/*.xcodeproj/*' -o -wholename '*/*.dSYM/*' -o -wholename '*/build/*' -o -wholename '*/*.app/*' -o -name '*.scpt' -o -wholename '*/perl/Makefile' -o -wholename '*/CMakeFiles/*' -o -name '*.cmake' -o -name '*.lock' -o -name '*.cm[io]' -o -name '*.hi' -o -name '*.swiftdoc' -o -name '*.swiftmodule' -o -name '*.rlib' -o -name '*.dylib' -o -name '*.so' -o -name '*.o' -o -name '*.beam' -o -name '*.dump' -o -name '*.pyc' -o -name '*.jar' -o -name '*.class' -o -name '*.bin' -o -wholename '*/tmp/*' -o -name .gitmodules -o -wholename '*/.git/*' -o -wholename '*/node_modules/*' -o -wholename '*/.cabal/*' -o -name '*.ttf' -o -name '*.plist' -o -name '*.dot' -o -name '*.wav' -o -name '*.jpeg' -o -name '*.jpg' -o -name '*.ico' -o -name '*.png' -o -name '*.gif' -o -name .DS_Store -o -name Thumbs.db \) -prune -o -type f -print | pargs -n 100 node_modules/.bin/editorconfig-tools check

lint: editorconfig

Expand Down
18 changes: 3 additions & 15 deletions README.md
Expand Up @@ -12,10 +12,6 @@ $ rdmd example.d

See [example.d](https://github.com/mcandre/dashcheck/blob/master/example.d) for more information.

# HOMEPAGE

http://www.yellosoft.us/quickcheck

# INSTALL

```
Expand All @@ -29,11 +25,11 @@ $ make install

## Optional

* [Ruby](https://www.ruby-lang.org/) 2+
* [Bundler](http://bundler.io/)
* [ruby](https://www.ruby-lang.org/) 2+
* [Cucumber](http://cukes.info/)
* [Guard](http://guardgem.org/)
* [aspelllint](https://github.com/mcandre/aspelllint)
* [pargs](https://github.com/mcandre/pargs)
* [editorconfig-tools](https://www.npmjs.com/package/editorconfig-tools)

# DEVELOPMENT

Expand All @@ -55,14 +51,6 @@ Feature: Run example tests
0m0.016s
```

Guard can automatically run testing when the code changes:

```
$ bundle
$ guard -G Guardfile-cucumber
...
```

## Spell Check

```
Expand Down
8 changes: 2 additions & 6 deletions package.json
Expand Up @@ -11,15 +11,11 @@
"lib": "."
},
"engines": {
"node": ">=0.11.6"
"node": ">=4.5.0"
},
"scripts": {},
"dependencies": {},
"devDependencies": {
"grunt": "~0.4.5",
"grunt-cli": "~0.1.13",
"grunt-exec": "~0.4.6",
"jshint": ">=2.1.2",
"editorconfig-tools": ">= 0.0.1"
"editorconfig-tools": ">= 0.1.1"
}
}

0 comments on commit 70318b3

Please sign in to comment.