summaryrefslogtreecommitdiff
path: root/extras/jedi_code_format
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2012-08-02 09:45:22 +0100
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2012-08-02 09:45:22 +0100
commit9343d81e0232a954043bd5eedda4d9a06ac3c763 (patch)
treec80eade38d69f16a4bad7f99caa1f126905d0fb5 /extras/jedi_code_format
parent63ca5e7f0264f732eb75862e451d42813ee85b29 (diff)
downloadfpGUI-9343d81e0232a954043bd5eedda4d9a06ac3c763.tar.xz
Adds my config file for the Jedi Code Formatter (jcf).
JCF is a open source tool available on SourceForge, that does really good code formatting. I use this tool to clean up my code formatting every now and again. This config file contains the rules I use for the fpGUI coding style.
Diffstat (limited to 'extras/jedi_code_format')
-rw-r--r--extras/jedi_code_format/JCFSettings.cfg182
1 files changed, 182 insertions, 0 deletions
diff --git a/extras/jedi_code_format/JCFSettings.cfg b/extras/jedi_code_format/JCFSettings.cfg
new file mode 100644
index 00000000..24e1b3a9
--- /dev/null
+++ b/extras/jedi_code_format/JCFSettings.cfg
@@ -0,0 +1,182 @@
+<?xml version="1.0" ?>
+<JediCodeFormatSettings>
+ <WriteVersion> 2.38 </WriteVersion>
+ <WriteDateTime> 41123.3945513079 </WriteDateTime>
+ <Description> Customised by Graeme Geldenhuys. </Description>
+ <Obfuscate>
+ <Enabled> False </Enabled>
+ <Caps> 1 </Caps>
+ <RemoveComments> True </RemoveComments>
+ <RemoveWhiteSpace> True </RemoveWhiteSpace>
+ <RemoveIndent> True </RemoveIndent>
+ <RebreakLines> True </RebreakLines>
+ </Obfuscate>
+ <Clarify>
+ <OnceOffs> 0 </OnceOffs>
+ <Warnings> True </Warnings>
+ <WarnUnusedParams> True </WarnUnusedParams>
+ <IgnoreUnusedParams> Sender </IgnoreUnusedParams>
+ <FileExtensions> dpr, inc, lpr, pas, pp </FileExtensions>
+ </Clarify>
+ <Indent>
+ <IndentationSpaces> 2 </IndentationSpaces>
+ <FirstLevelIndent> 0 </FirstLevelIndent>
+ <HasFirstLevelIndent> False </HasFirstLevelIndent>
+ <IndentGlobals> True </IndentGlobals>
+ <IndentClasses> True </IndentClasses>
+ <IndentProcedures> True </IndentProcedures>
+ <IndentBeginEnd> False </IndentBeginEnd>
+ <IndentbeginEndSpaces> 1 </IndentbeginEndSpaces>
+ <IndentLibraryProcs> True </IndentLibraryProcs>
+ <KeepCommentsWithCodeInGlobals> True </KeepCommentsWithCodeInGlobals>
+ <KeepCommentsWithCodeInProcs> True </KeepCommentsWithCodeInProcs>
+ <KeepCommentsWithCodeInClassDef> True </KeepCommentsWithCodeInClassDef>
+ <KeepCommentsWithCodeElsewhere> True </KeepCommentsWithCodeElsewhere>
+ <IndentElse> False </IndentElse>
+ <IndentCaseElse> True </IndentCaseElse>
+ </Indent>
+ <Spaces>
+ <TabsToSpaces> True </TabsToSpaces>
+ <SpacesToTabs> False </SpacesToTabs>
+ <SpacesPerTab> 2 </SpacesPerTab>
+ <SpacesForTab> 2 </SpacesForTab>
+ <FixSpacing> True </FixSpacing>
+ <SpaceBeforeClassHeritage> False </SpaceBeforeClassHeritage>
+ <SpacesBeforeColonVar> 0 </SpacesBeforeColonVar>
+ <SpacesBeforeColonConst> 0 </SpacesBeforeColonConst>
+ <SpacesBeforeColonParam> 0 </SpacesBeforeColonParam>
+ <SpacesBeforeColonFn> 0 </SpacesBeforeColonFn>
+ <SpacesBeforeColonClassVar> 0 </SpacesBeforeColonClassVar>
+ <SpacesBeforeColonRecordField> 0 </SpacesBeforeColonRecordField>
+ <SpacesBeforeColonCaseLabel> 0 </SpacesBeforeColonCaseLabel>
+ <SpacesBeforeColonLabel> 0 </SpacesBeforeColonLabel>
+ <SpacesBeforeColonInGeneric> 0 </SpacesBeforeColonInGeneric>
+ <MaxSpacesInCode> 2 </MaxSpacesInCode>
+ <UseMaxSpacesInCode> True </UseMaxSpacesInCode>
+ <SpaceForOperator> 0 </SpaceForOperator>
+ <SpaceBeforeOpenBracketsInFunctionDeclaration> False </SpaceBeforeOpenBracketsInFunctionDeclaration>
+ <SpaceBeforeOpenBracketsInFunctionCall> False </SpaceBeforeOpenBracketsInFunctionCall>
+ <SpaceBeforeOpenSquareBracketsInExpression> False </SpaceBeforeOpenSquareBracketsInExpression>
+ <SpaceAfterOpenBrackets> False </SpaceAfterOpenBrackets>
+ <SpaceBeforeCloseBrackets> False </SpaceBeforeCloseBrackets>
+ </Spaces>
+ <Returns>
+ <WhenRebreakLines> 1 </WhenRebreakLines>
+ <MaxLineLength> 255 </MaxLineLength>
+ <NumReturnsAfterFinalEnd> 2 </NumReturnsAfterFinalEnd>
+ <RemoveBadReturns> True </RemoveBadReturns>
+ <AddGoodReturns> True </AddGoodReturns>
+ <UsesOnePerLine> True </UsesOnePerLine>
+ <RemoveExpressionReturns> False </RemoveExpressionReturns>
+ <RemoveVarReturns> True </RemoveVarReturns>
+ <NoReturnsInProperty> True </NoReturnsInProperty>
+ <RemoveProcedureDefReturns> True </RemoveProcedureDefReturns>
+ <RemoveReturns> True </RemoveReturns>
+ <RemoveVarBlankLines> True </RemoveVarBlankLines>
+ <RemoveProcHeaderBlankLines> True </RemoveProcHeaderBlankLines>
+ <Block> 0 </Block>
+ <BlockBegin> 0 </BlockBegin>
+ <Label> 1 </Label>
+ <LabelBegin> 1 </LabelBegin>
+ <CaseLabel> 1 </CaseLabel>
+ <CaseBegin> 1 </CaseBegin>
+ <CaseElse> 1 </CaseElse>
+ <CaseElseBegin> 1 </CaseElseBegin>
+ <EndElse> 0 </EndElse>
+ <ElseIf> 2 </ElseIf>
+ <ElseBegin> 0 </ElseBegin>
+ <BeforeCompilerDirectUses> 1 </BeforeCompilerDirectUses>
+ <BeforeCompilerDirectStatements> 0 </BeforeCompilerDirectStatements>
+ <BeforeCompilerDirectGeneral> 1 </BeforeCompilerDirectGeneral>
+ <AfterCompilerDirectUses> 1 </AfterCompilerDirectUses>
+ <AfterCompilerDirectStatements> 0 </AfterCompilerDirectStatements>
+ <AfterCompilerDirectGeneral> 1 </AfterCompilerDirectGeneral>
+ <ReturnChars> 0 </ReturnChars>
+ <RemoveConsecutiveBlankLines> True </RemoveConsecutiveBlankLines>
+ <MaxConsecutiveBlankLines> 2 </MaxConsecutiveBlankLines>
+ <MaxBlankLinesInSection> 0 </MaxBlankLinesInSection>
+ <LinesBeforeProcedure> 1 </LinesBeforeProcedure>
+ </Returns>
+ <Comments>
+ <RemoveEmptyDoubleSlashComments> True </RemoveEmptyDoubleSlashComments>
+ <RemoveEmptyCurlyBraceComments> True </RemoveEmptyCurlyBraceComments>
+ </Comments>
+ <Capitalisation>
+ <Enabled> True </Enabled>
+ <ReservedWords> 1 </ReservedWords>
+ <Operators> 1 </Operators>
+ <Directives> 1 </Directives>
+ <Constants> 0 </Constants>
+ <Types> 1 </Types>
+ </Capitalisation>
+ <SpecificWordCaps>
+ <Enabled> False </Enabled>
+ <Words> </Words>
+ </SpecificWordCaps>
+ <Identifiers>
+ <Enabled> True </Enabled>
+ <Words> ActivePage, AnsiCompareStr, AnsiCompareText, AnsiUpperCase, AsBoolean, AsDateTime, AsFloat, AsInteger, Assign, Assigned, AsString, AsVariant, BeginDrag, Buttons, Canvas, Caption, Checked, Classes, ClassName, Clear, Close, Components, Controls, Count, Create, Data, Dec, Delete, Destroy, Dialogs, Enabled, EndDrag, EOF, Exception, Execute, Exit, False, FieldByName, First, Forms, Free, FreeAndNil, GetFirstChild, Graphics, Height, idAbort, idCancel, idIgnore, IDispatch, idNo, idOk, idRetry, idYes, Inc, Initialize, IntToStr, ItemIndex, IUnknown, Lines, Math, MaxValue, mbAbort, mbAll, mbCancel, mbHelp, mbIgnore, mbNo, mbOK, mbRetry, mbYes, mbYesToAll, Messages, MinValue, mnNoToAll, mrAbort, mrAll, mrCancel, mrIgnore, mrNo, mrNone, mrNoToAll, mrOk, mrRetry, mrYes, mrYesToAll, mtConfirmation, mtCustom, mtError, mtInformation, mtWarning, Name, Next, nil, Open, Ord, ParamStr, PChar, Perform, Pointer, ProcessMessages, ReadOnly, RecordCount, Register, Release, Result, Sender, SetFocus, Show, ShowMessage, Source, StdCtrls, StrToInt, SysUtils, TAutoObject, TButton, TComponent, TDataModule, Text, TForm, TfpgBevel, TfpgButton, TfpgColor, TfpgComboBox, TfpgEdit, TfpgForm, TfpgFrame, TfpgLabel, TfpgMessageDialog, TfpgPageControl, TfpgString, TfpgTabSheet, TFrame, TList, TNotifyEvent, TObject, TObjectList, TPageControl, TPersistent, True, TStringList, TStrings, TTabSheet, TtiListViewMediatorView, TtiObject, TtiObjectList, Unassigned, UTF8Copy, UTF8Length, Value, Visible, WideString, Width, Windows </Words>
+ </Identifiers>
+ <NotIdent>
+ <Enabled> True </Enabled>
+ <Words> Boolean, False, Name, nil, PChar, read, ReadOnly, True, WideString, write </Words>
+ </NotIdent>
+ <UnitNameCaps>
+ <Enabled> True </Enabled>
+ <Words> ActnColorMaps, ActnCtrls, ActnList, ActnMan, ActnMenus, ActnPopup, ActnRes, ADOConst, ADODB, ADOInt, AppEvnts, AxCtrls, BandActn, bdeconst, bdemts, Buttons, CheckLst, Classes, Clipbrd.pas, CmAdmCtl, ComCtrls, ComStrs, Consts, Controls, CtlConsts, CtlPanel, CustomizeDlg, DataBkr, DB, DBActns, dbcgrids, DBClient, DBClientActnRes, DBClientActns, DBCommon, DBConnAdmin, DBConsts, DBCtrls, DbExcept, DBGrids, DBLocal, DBLocalI, DBLogDlg, dblookup, DBOleCtl, DBPWDlg, DBTables, DBXpress, DdeMan, Dialogs, DrTable, DSIntf, ExtActns, ExtCtrls, ExtDlgs, FileCtrl, FMTBcd, Forms, Graphics, GraphUtil, Grids, HTTPIntr, IB, IBBlob, IBCustomDataSet, IBDatabase, IBDatabaseInfo, IBDCLConst, IBErrorCodes, IBEvents, IBExternals, IBExtract, IBGeneratorEditor, IBHeader, IBIntf, IBQuery, IBRestoreEditor, IBSecurityEditor, IBServiceEditor, IBSQL, IBSQLMonitor, IBStoredProc, IBTable, IBUpdateSQL, IBUtils, IBXConst, ImgList, LCLIntf, LCLType, ListActns, Mask, MConnect, Menus, Midas, MidasCon, MidConst, MPlayer, MtsRdm, Mxconsts, ObjBrkr, OleAuto, OleConst, OleCtnrs, OleCtrls, OleDB, OleServer, Outline, Printers, Provider, recerror, ScktCnst, ScktComp, ScktMain, SConnect, ShadowWnd, SimpleDS, SMINTF, SqlConst, SqlExpr, SqlTimSt, StdActnMenus, StdActns, StdCtrls, StdStyleActnCtrls, SvcMgr, SysUtils, TabNotBk, Tabs, TConnect, Themes, tiBaseObject, tiConstants, tiExcept, tiGUIConstants, tiLinux, tiObject, tiResources, tiWin32, ToolWin, ValEdit, VDBConsts, WinHelpViewer, XPActnCtrls, XPMan, XPStyleActnCtrls </Words>
+ </UnitNameCaps>
+ <Asm>
+ <Caps> 3 </Caps>
+ <BreaksAfterLabel> 2 </BreaksAfterLabel>
+ <BreaksAfterLabelEnabled> True </BreaksAfterLabelEnabled>
+ <StatementIndentEnabled> True </StatementIndentEnabled>
+ <StatementIndent> 7 </StatementIndent>
+ <ParamsIndentEnabled> True </ParamsIndentEnabled>
+ <ParamsIndent> 15 </ParamsIndent>
+ </Asm>
+ <PreProcessor>
+ <Enabled> True </Enabled>
+ <DefinedSymbols> DELPHI5_UP, FPC, LCL, LINUX, MSWINDOWS, UseMusic, WIN32 </DefinedSymbols>
+ <DefinedOptions> </DefinedOptions>
+ </PreProcessor>
+ <Align>
+ <AlignAssign> True </AlignAssign>
+ <AlignConst> True </AlignConst>
+ <AlignTypedef> True </AlignTypedef>
+ <AlignVars> False </AlignVars>
+ <AlignComment> True </AlignComment>
+ <AlignFields> False </AlignFields>
+ <InterfaceOnly> False </InterfaceOnly>
+ <MinColumn> 2 </MinColumn>
+ <MaxColumn> 60 </MaxColumn>
+ <MaxVariance> 10 </MaxVariance>
+ <MaxVarianceInterface> 10 </MaxVarianceInterface>
+ <MaxUnalignedStatements> 2 </MaxUnalignedStatements>
+ </Align>
+ <Replace>
+ <Enabled> False </Enabled>
+ <Words> </Words>
+ </Replace>
+ <Uses>
+ <RemoveEnabled> True </RemoveEnabled>
+ <InsertInterfaceEnabled> True </InsertInterfaceEnabled>
+ <InsertImplementationEnabled> True </InsertImplementationEnabled>
+ <FindReplaceEnabled> True </FindReplaceEnabled>
+ <Remove> </Remove>
+ <InsertInterface> </InsertInterface>
+ <InsertImplementation> </InsertImplementation>
+ <Find> </Find>
+ <Replace> </Replace>
+ </Uses>
+ <Transform>
+ <BeginEndStyle> 2 </BeginEndStyle>
+ <AddBlockEndSemicolon> True </AddBlockEndSemicolon>
+ <SortUsesInterface> False </SortUsesInterface>
+ <SortUsesImplmentation> False </SortUsesImplmentation>
+ <SortUsesProgram> False </SortUsesProgram>
+ <SortUsesBreakOnReturn> False </SortUsesBreakOnReturn>
+ <SortUsesBreakOnComment> False </SortUsesBreakOnComment>
+ <SortUsesSortOrder> 0 </SortUsesSortOrder>
+ <SortUsesNoComments> False </SortUsesNoComments>
+ </Transform>
+</JediCodeFormatSettings>