You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2014/04/23 16:43:15 UTC

[lucy-commits] [3/3] git commit: Add devel/conf files

Add devel/conf files

Copied from Lucy. Adjusted rat-excludes.


Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/501820b2
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/501820b2
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/501820b2

Branch: refs/heads/master
Commit: 501820b2201a3bee795b0dc65eed06b37b5eb813
Parents: d048685
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Wed Apr 23 16:36:38 2014 +0200
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Wed Apr 23 16:36:38 2014 +0200

----------------------------------------------------------------------
 devel/conf/astylerc      | 63 +++++++++++++++++++++++++++++++++++++
 devel/conf/clownfish.vim | 73 +++++++++++++++++++++++++++++++++++++++++++
 devel/conf/perltidyrc    | 21 +++++++++++++
 devel/conf/rat-excludes  | 55 ++++++++++++++++++++++++++++++++
 4 files changed, 212 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/501820b2/devel/conf/astylerc
----------------------------------------------------------------------
diff --git a/devel/conf/astylerc b/devel/conf/astylerc
new file mode 100644
index 0000000..6141893
--- /dev/null
+++ b/devel/conf/astylerc
@@ -0,0 +1,63 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You 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.
+
+# Disallow tabs.
+--convert-tabs
+
+# Attach opening brackets to the previous line rather than place them on a
+# dedicated line.
+--brackets=attach
+
+# Indent switches and case statements.
+--indent-switches
+--indent-cases 
+
+# Indent backslash continuations within a preprocessor directive.
+--indent-preprocessor 
+
+# Vertically align subsections of multi-part conditionals.
+--min-conditional-indent=0 
+
+# Force space around operators, i.e. "foo = 7" not "foo=7".
+--pad-oper
+
+# Don't cuddle elses.
+--break-elseifs 
+--break-closing-brackets 
+
+# Allow all statements to occupy one line, particularly conditional 
+# statements:
+# 
+#    if (foo) do_stuff();
+#
+--keep-one-line-statements
+
+# Allow single-line blocks:
+# 
+# int
+# Foo_get_thing(Foo *self)
+# { return self->thing; }
+# 
+--keep-one-line-blocks
+
+# Force space between if/when/while and opening paren.
+--pad-header 
+
+# Tighten parens around their contents.
+--unpad-paren 
+
+# Allow continuation lines to start at anywhere up to column 79.
+--max-instatement-indent=79
+

http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/501820b2/devel/conf/clownfish.vim
----------------------------------------------------------------------
diff --git a/devel/conf/clownfish.vim b/devel/conf/clownfish.vim
new file mode 100644
index 0000000..bfe37f3
--- /dev/null
+++ b/devel/conf/clownfish.vim
@@ -0,0 +1,73 @@
+" Licensed to the Apache Software Foundation (ASF) under one or more
+" contributor license agreements.  See the NOTICE file distributed with
+" this work for additional information regarding copyright ownership.
+" The ASF licenses this file to You 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.
+"
+" Vim syntax file
+" Language:     Clownfish
+" Maintainer:   Apache Lucy Developers
+" URL:          http://lucy.apache.org
+
+if exists("b:current_syntax")
+    finish
+endif
+
+syn keyword cfishType int8_t  int16_t  int32_t  int64_t  bool_t
+syn keyword cfishType uint8_t uint16_t uint32_t uint64_t
+syn keyword cfishType size_t
+syn keyword cfishType float double
+syn keyword cfishType char short int long
+syn keyword cfishType va_list
+syn keyword cfishType void
+syn keyword cfishType class
+syn keyword cfishType parcel
+
+syn keyword cfishAttribute inherits nickname
+
+syn keyword cfishModifier public private
+syn keyword cfishModifier abstract inert const final
+syn keyword cfishModifier incremented decremented nullable
+
+syn keyword cfishConstant NULL true false
+
+syn match  cfishNumber  "\<\d\+\>"
+syn match  cfishNumber  "\<0[xX]\x\+\>"
+syn match  cfishNumber  "\<\d\+\.\d\+\>"
+
+syn region cfishString start=+"+ skip=+\\\\\|\\"+ end=+"+
+
+syn keyword cfishTodo TODO XXX
+syn region cfishComment start="/\*" end="\*/" contains=cfishTodo
+syn match cfishLineComment "//.*" contains=cfishTodo
+syn region cfishDocuComment start="/\*\*" end="\*/" contains=cfishDocuCommentBrief,cfishDocuCommentTags,cfishTodo
+syn region cfishDocuCommentBrief contained matchgroup=cfishDocuComment start="/\*\*" matchgroup=cfishDocuCommentBrief keepend end="\.$" end="\.\s\+" end="\*/"
+syn match cfishDocuCommentTags contained "@param\s\+\S\+" contains=cfishDocuCommentParam
+syn match cfishDocuCommentParam contained "\s\S\+"
+
+hi def link cfishType               Type
+hi def link cfishConstant           Constant
+hi def link cfishModifier           Operator
+hi def link cfishExposure           Operator
+hi def link cfishAttribute          Statement
+hi def link cfishNumber             Number
+hi def link cfishString             String
+hi def link cfishTodo               Todo
+hi def link cfishDocuCommentBrief   SpecialComment
+hi def link cfishDocuComment        Comment
+hi def link cfishComment            Comment
+hi def link cfishLineComment        Comment
+hi def link cfishDocuCommentTags    Special
+hi def link cfishDocuCommentParam   Function
+
+let b:current_syntax = "clownfish"
+

http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/501820b2/devel/conf/perltidyrc
----------------------------------------------------------------------
diff --git a/devel/conf/perltidyrc b/devel/conf/perltidyrc
new file mode 100755
index 0000000..b7e223e
--- /dev/null
+++ b/devel/conf/perltidyrc
@@ -0,0 +1,21 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You 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.
+
+--perl-best-practices
+--nostandard-output
+--nostandard-error-output
+--noblanks-before-comments 
+--noblanks-before-subs 
+

http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/501820b2/devel/conf/rat-excludes
----------------------------------------------------------------------
diff --git a/devel/conf/rat-excludes b/devel/conf/rat-excludes
new file mode 100644
index 0000000..86525b7
--- /dev/null
+++ b/devel/conf/rat-excludes
@@ -0,0 +1,55 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You 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.
+
+# Ignore the .git directory.
+.git/**
+
+# CHANGES and MANIFEST files do not require license headers.
+CHANGES
+compiler/perl/MANIFEST
+runtime/perl/MANIFEST
+
+# doc file does not require license.
+CONTRIBUTING
+
+# These files are autogenerated by running CFCLexHeader.l through Flex.
+# Flex's licensing explicitly disclaims copyright on generated lexers.
+compiler/src/CFCLexHeader.h
+compiler/src/CFCLexHeader.c
+
+# The Lemon parser generator is in the public domain.  See LUCY-173.
+lemon/lemon.c
+lemon/lempar.c
+
+# Clownfish parcel files (.cfp) are in JSON format and cannot have comments.
+compiler/c/t/cfbase/Animal.cfp
+compiler/c/t/cfext/AnimalExtension.cfp
+compiler/perl/t/cfbase/Animal.cfp
+compiler/perl/t/cfclash/bar/Bar.cfp
+compiler/perl/t/cfclash/class/AnimalExtension.cfp
+compiler/perl/t/cfclash/foo/Foo.cfp
+compiler/perl/t/cfext/AnimalExtension.cfp
+runtime/core/Clownfish.cfp
+runtime/core/TestClownfish.cfp
+
+# gitignore files should be ignored
+.gitignore
+compiler/.gitignore
+compiler/c/.gitignore
+compiler/perl/.gitignore
+devel/benchmarks/method_dispatch/.gitignore
+lemon/.gitignore
+runtime/c/.gitignore
+runtime/perl/.gitignore