Skip to content

Commit

Permalink
update editorconfig settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Pennebaker committed Nov 10, 2018
1 parent 6360fce commit 0188e58
Show file tree
Hide file tree
Showing 49 changed files with 813 additions and 1,358 deletions.
2 changes: 1 addition & 1 deletion .bowerrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"directory": "public/bower_components/"
"directory": "public/bower_components/"
}
40 changes: 20 additions & 20 deletions .cabal/config
Original file line number Diff line number Diff line change
Expand Up @@ -64,25 +64,25 @@ remote-build-reporting: anonymous
-- password:

install-dirs user
-- prefix: /Users/andrew/.cabal
-- bindir: $prefix/bin
-- libdir: $prefix/lib
-- libsubdir: $pkgid/$compiler
-- libexecdir: $prefix/libexec
-- datadir: $prefix/share
-- datasubdir: $pkgid
-- docdir: $datadir/doc/$pkgid
-- htmldir: $docdir/html
-- haddockdir: $htmldir
-- prefix: /Users/andrew/.cabal
-- bindir: $prefix/bin
-- libdir: $prefix/lib
-- libsubdir: $pkgid/$compiler
-- libexecdir: $prefix/libexec
-- datadir: $prefix/share
-- datasubdir: $pkgid
-- docdir: $datadir/doc/$pkgid
-- htmldir: $docdir/html
-- haddockdir: $htmldir

install-dirs global
-- prefix: /usr/local
-- bindir: $prefix/bin
-- libdir: $prefix/lib
-- libsubdir: $pkgid/$compiler
-- libexecdir: $prefix/libexec
-- datadir: $prefix/share
-- datasubdir: $pkgid
-- docdir: $datadir/doc/$pkgid
-- htmldir: $docdir/html
-- haddockdir: $htmldir
-- prefix: /usr/local
-- bindir: $prefix/bin
-- libdir: $prefix/lib
-- libsubdir: $pkgid/$compiler
-- libexecdir: $prefix/libexec
-- datadir: $prefix/share
-- datasubdir: $pkgid
-- docdir: $datadir/doc/$pkgid
-- htmldir: $docdir/html
-- haddockdir: $htmldir
60 changes: 15 additions & 45 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,67 +1,37 @@
# ln -s .../.editorconfig ~/.editorconfig

root = true

# Most text files
[*]
charset = utf-8
insert_final_newline = true
trim_trailing_whitespace = true
max_line_length = none
end_of_line = lf
indent_style = space
indent_size = 4 # bash8

# patchfiles
[*.patch]
trim_trailing_whitespace = false
# Freestyle text
[{*.txt,*.plist,*.emacs,*.el,*.abcl,*.lisp,*.lsp,*.scm,*.clj,*.eclrc,*.sbclrc}]
indent_size = none

# bash8
[{*.py,*.sh,*.bash,*.ksh,*.zsh,*.csh,*.tcsh,*.dash,*.fish}]
end_of_line = lf
indent_size = 4
# Windows junk
[{*.cmd,*.bat,*.reg,*.ps1,*.vbs,*.cs,*.fs,*.fsx,*.ahk}]
end_of_line = crlf

# Lexer restrictions
[{Makefile*,*.mf,*.go}]
[{Makefile*,GNUMakefile*,*.mf,*.makefile,*.go}]
indent_style = tab
[{*.fs,*.fsx}]
indent_style = space

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

[*.min.js]
# Compressed artifacts
[*.min.*,*-min.*]
insert_final_newline = false

# 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}]
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,*.ll}]
indent_size = 2
[{*.pl,*.pm,*.f08,*.j,*.lua,*.st,*.io,*.pas,*.oz}]
indent_size = 2
[{*.hs,*.cabal,*.ml,*.v,*.sml,*.fs,*.fsx,*.ma,*.psql,*.R}]
indent_size = 2
[{*.awk,*.erl,*.escript,*.yaws,*.bf,*.bs,*.cob,*.factor,*.tcl,*.rl}]
indent_size = 2
# Patch files
[*.patch]
trim_trailing_whitespace = false

# Generated files
# Machine-controlled files
[ConEmu.xml]
indent_style = tab
24 changes: 12 additions & 12 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"env": {
"node": true,
"browser": true,
"mocha": true,
"jquery": true
},
"rules": {
"global-strict": true,
"no-mixed-requires": true,
"no-unused-vars": true,
"quotes": "single"
}
"env": {
"node": true,
"browser": true,
"mocha": true,
"jquery": true
},
"rules": {
"global-strict": true,
"no-mixed-requires": true,
"no-unused-vars": true,
"quotes": "single"
}
}
16 changes: 8 additions & 8 deletions .excellent.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
---
MethodLineCountCheck:
threshold: 60
threshold: 60
FlogMethodCheck:
threshold: 100
threshold: 100
FlogBlockCheck:
threshold: 60
threshold: 60
CyclomaticComplexityMethodCheck:
threshold: 20
threshold: 20
CyclomaticComplexityBlockCheck:
threshold: 20
threshold: 20
ParameterNumberCheck:
false
false
AbcMetricMethodCheck:
false
false
ClassVariableCheck:
false
false
8 changes: 4 additions & 4 deletions .gitconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[core]
editor = vi
excludesfile = /Users/andrew/.gitignore-global
editor = vi
excludesfile = /Users/andrew/.gitignore-global
ignorecase = false

[push]
Expand All @@ -21,5 +21,5 @@ rebase = true
[mergetool]
keepBackup = false
[user]
name = Andrew Pennebaker
email = [email protected]
name = Andrew Pennebaker
email = [email protected]
2 changes: 1 addition & 1 deletion .gitignore-global
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ fabric.properties
.LSOverride

# Icon must end with two \r
Icon
Icon

# Thumbnails
._*
Expand Down
32 changes: 16 additions & 16 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"expr": true,
"maxerr": 10000,
"indent": 2,
"eqeqeq": true,
"quotmark": true,
"curly": true,
"camelcase": true,
"globalstrict": true,
"node": true,
"browser": true,
"globals": {
"alert": false,
"$": false,
"describe": false,
"it": false
}
"expr": true,
"maxerr": 10000,
"indent": 2,
"eqeqeq": true,
"quotmark": true,
"curly": true,
"camelcase": true,
"globalstrict": true,
"node": true,
"browser": true,
"globals": {
"alert": false,
"$": false,
"describe": false,
"it": false
}
}
26 changes: 13 additions & 13 deletions .jslintrc
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"node": true,
"browser": true,
"bitwise": true,
"nomen": true,
"plusplus": true,
"white": true,
"predef": [
"alert",
"$",
"describe",
"it"
],
"terse": true
"node": true,
"browser": true,
"bitwise": true,
"nomen": true,
"plusplus": true,
"white": true,
"predef": [
"alert",
"$",
"describe",
"it"
],
"terse": true
}
14 changes: 7 additions & 7 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
LineLength:
Max: 140
Max: 140
MethodLength:
Max: 60
Max: 60
CyclomaticComplexity:
Max: 20
Max: 20
SpecialGlobalVars:
Enabled: false
Enabled: false
NumericLiterals:
Enabled: false
Enabled: false
Style/FileName:
Exclude:
- 'Guardfile*'
Exclude:
- 'Guardfile*'
4 changes: 2 additions & 2 deletions .sbclrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
;;; The following lines added by ql:add-to-init-file:
#-quicklisp
(let ((quicklisp-init (merge-pathnames
"quicklisp/setup.lisp"
(user-homedir-pathname))))
"quicklisp/setup.lisp"
(user-homedir-pathname))))
(when (probe-file quicklisp-init)
(load quicklisp-init)))
24 changes: 12 additions & 12 deletions .scss-lint.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
---
exclude:
- 'node_modules/*'
- 'bower_components/*'
- 'node_modules/*'
- 'bower_components/*'

linters:
EmptyLineBetweenBlocks:
enabled: false
Indentation:
enabled: false
SingleLinePerSelector:
enabled: false
Comment:
enabled: false
LeadingZero:
enabled: false
EmptyLineBetweenBlocks:
enabled: false
Indentation:
enabled: false
SingleLinePerSelector:
enabled: false
Comment:
enabled: false
LeadingZero:
enabled: false
Loading

0 comments on commit 0188e58

Please sign in to comment.