Skip to content

Commit

Permalink
editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
apennebaker-ni committed Mar 3, 2015
1 parent f45826b commit 2fc0ea2
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 2 deletions.
42 changes: 42 additions & 0 deletions .editorconfig
@@ -0,0 +1,42 @@
# ln -s .../.editorconfig ~/.editorconfig

root = true

# Default to Google Style
# https://code.google.com/p/google-styleguide/
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
trim_trailing_whitespace = true

# Too many exceptions
max_line_length = 800

spaces_around_operators = true
spaces_around_brackets = false
indent_style = space
indent_size = 2
indent_brace_style = K&R
curly_bracket_next_line = false
continuation_indent_size 4

# Makefiles
[{Makefile*,*.mf}]
indent_style = tab

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

# JavaScript
[*.js]
quote_type = single

# Lisp
[{*.lisp,*.scm,*.rkt,*.lsp,*.clj,*.el}]
indent_size = none

# Windows files
[{*.bat,*reg,*.ps1,*.vbs,*.cs,*.fs,*.ahk}]
end_of_line = crlf
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -2,4 +2,5 @@
*.so
*.import.*
.DS_Store
Gemfile.lock
Gemfile.lock
node_modules/
5 changes: 4 additions & 1 deletion Makefile
Expand Up @@ -10,7 +10,10 @@ uninstall:
lili:
bundle exec lili .

lint: lili
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/editorconfig-tools/bin/index.js check {} \;

lint: lili editorconfig

clean:
-rm *.so
Expand Down
25 changes: 25 additions & 0 deletions package.json
@@ -0,0 +1,25 @@
{
"name": "cluckcheck",
"description": "a Chicken Scheme port of the QuickCheck unit test framework",
"version": "0.0.0",
"repository": {
"type": "git",
"url": "git://github.com/mcandre/cluckcheck.git"
},
"author": "Andrew Pennebaker <andrew.pennebaker@gmail.com> (http://www.yellosoft.us/)",
"directories": {
"lib": "."
},
"engines": {
"node": ">=0.8"
},
"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"
}
}

0 comments on commit 2fc0ea2

Please sign in to comment.