Author: spouliot Date: 2008-02-17 16:42:24 -0500 (Sun, 17 Feb 2008) New Revision: 96006
Added: trunk/mono-tools/gendarme/AssemblyStaticInfo.cs trunk/mono-tools/gendarme/self-test.ignore Modified: trunk/mono-tools/gendarme/ trunk/mono-tools/gendarme/AssemblyInfo.cs.in trunk/mono-tools/gendarme/ChangeLog trunk/mono-tools/gendarme/Makefile.am trunk/mono-tools/gendarme/gendarme.mds Log: 2008-02-17 Sebastien Pouliot <[EMAIL PROTECTED]> * AssemblyInfo.cs.in: Remove static stuff and keep only the version. * AssemblyStaticInfo.cs: New. Keep static/shared stuff here. * self-test.ignore: New. Start an ignore list for self-test. * gendarme.mds: Update MonoDevelop project file. * Makefile.am: Update build file. Property changes on: trunk/mono-tools/gendarme ___________________________________________________________________ Name: svn:ignore - *.pidb + AssemblyInfo.cs bin gendarme gendarme.user* Makefile Makefile.in *.pidb Modified: trunk/mono-tools/gendarme/AssemblyInfo.cs.in =================================================================== --- trunk/mono-tools/gendarme/AssemblyInfo.cs.in 2008-02-17 21:40:01 UTC (rev 96005) +++ trunk/mono-tools/gendarme/AssemblyInfo.cs.in 2008-02-17 21:42:24 UTC (rev 96006) @@ -8,13 +8,5 @@ // using System.Reflection; -using System.Runtime.CompilerServices; -using System.Security.Permissions; [assembly: AssemblyVersion ("@GENDARME_VERSION@")] -[assembly: AssemblyTitle ("Gendarme")] -[assembly: AssemblyDescription ("Rule-based assembly analyzer")] -[assembly: AssemblyCopyright ("Copyright (C) 2005-2008 Novell, Inc. and contributors")] -[assembly: AssemblyCompany ("Novell, Inc.")] - -[assembly: PermissionSet (SecurityAction.RequestMinimum, Unrestricted = true)] Added: trunk/mono-tools/gendarme/AssemblyStaticInfo.cs =================================================================== --- trunk/mono-tools/gendarme/AssemblyStaticInfo.cs 2008-02-17 21:40:01 UTC (rev 96005) +++ trunk/mono-tools/gendarme/AssemblyStaticInfo.cs 2008-02-17 21:42:24 UTC (rev 96006) @@ -0,0 +1,23 @@ +// +// AssemblyStaticInfo.cs for Gendarme +// +// Authors: +// Sebastien Pouliot <[EMAIL PROTECTED]> +// +// Copyright (C) 2005-2008 Novell, Inc (http://www.novell.com) +// + +using System; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using System.Security.Permissions; + +[assembly: AssemblyTitle ("Gendarme")] +[assembly: AssemblyDescription ("Rule-based assembly analyzer")] +[assembly: AssemblyCopyright ("Copyright (C) 2005-2008 Novell, Inc. and contributors")] +[assembly: AssemblyCompany ("Novell, Inc.")] + +[assembly: PermissionSet (SecurityAction.RequestMinimum, Unrestricted = true)] +[assembly: CLSCompliant (false)] +[assembly: ComVisible (false)] Modified: trunk/mono-tools/gendarme/ChangeLog =================================================================== --- trunk/mono-tools/gendarme/ChangeLog 2008-02-17 21:40:01 UTC (rev 96005) +++ trunk/mono-tools/gendarme/ChangeLog 2008-02-17 21:42:24 UTC (rev 96006) @@ -1,3 +1,11 @@ +2008-02-17 Sebastien Pouliot <[EMAIL PROTECTED]> + + * AssemblyInfo.cs.in: Remove static stuff and keep only the version. + * AssemblyStaticInfo.cs: New. Keep static/shared stuff here. + * self-test.ignore: New. Start an ignore list for self-test. + * gendarme.mds: Update MonoDevelop project file. + * Makefile.am: Update build file. + 2008-02-12 Sebastien Pouliot <[EMAIL PROTECTED]> * MIT.X11: Update copyrights up to 2008 Modified: trunk/mono-tools/gendarme/Makefile.am =================================================================== --- trunk/mono-tools/gendarme/Makefile.am 2008-02-17 21:40:01 UTC (rev 96005) +++ trunk/mono-tools/gendarme/Makefile.am 2008-02-17 21:42:24 UTC (rev 96006) @@ -1,6 +1,6 @@ SUBDIRS = man framework console rules bin_SCRIPTS = gendarme -EXTRA_DIST = gendarme.in AssemblyInfo.cs.in MIT.X11 gendarme.mds gendarme.sln +EXTRA_DIST = gendarme.in AssemblyInfo.cs.in MIT.X11 gendarme.mds gendarme.sln self-test.ignore CLEANFILES = gendarme bin/rules.xml bin/Gendarme.Rules.*.xml @@ -43,7 +43,7 @@ echo -e "<?xml version='1.0'?>\n<monodoc>\n\t<source provider='ecma' basefile='gendarme' path='gendarme'/>\n</monodoc>" > doc/gendarme.source; self-test: all - cp rules/rules.xml bin; \ cd bin; \ - mono --debug gendarme.exe --set self-test --html self-test.html gendarme.exe Gendarme.*.dll; \ + mono --debug gendarme.exe --config ../rules/rules.xml --set self-test --html self-test.html --ignore=../self-test.ignore \ + gendarme.exe Gendarme.*.dll; \ cd ..; Modified: trunk/mono-tools/gendarme/gendarme.mds =================================================================== --- trunk/mono-tools/gendarme/gendarme.mds 2008-02-17 21:40:01 UTC (rev 96005) +++ trunk/mono-tools/gendarme/gendarme.mds 2008-02-17 21:42:24 UTC (rev 96006) @@ -6,6 +6,7 @@ <Entry build="True" name="rules" configuration="" /> <Entry build="True" name="tests" configuration="" /> <Entry build="True" name="unit-tests" configuration="Default" /> + <Entry build="True" name="Mono.Cecil" configuration="Debug|Any CPU" /> </Configuration> <Configuration name="Release" ctype="CombineConfiguration"> <Entry build="True" name="framework" configuration="Release" /> @@ -13,6 +14,7 @@ <Entry build="True" name="rules" configuration="" /> <Entry build="True" name="tests" configuration="" /> <Entry build="True" name="unit-tests" configuration="Default" /> + <Entry build="True" name="Mono.Cecil" configuration="Debug|Any CPU" /> </Configuration> </Configurations> <StartMode startupentry="console" single="True"> @@ -21,6 +23,7 @@ <Execute type="None" entry="rules" /> <Execute type="None" entry="tests" /> <Execute type="None" entry="unit-tests" /> + <Execute type="None" entry="Mono.Cecil" /> </StartMode> <MonoDevelop.ChangeLogAddIn.ChangeLogInfo policy="UpdateNearestChangeLog" /> <DeployTargets /> @@ -30,5 +33,6 @@ <Entry filename="rules/rules.mds" /> <Entry filename="rules/tests.mds" /> <Entry filename="rules/rules.md-nunit" /> + <Entry filename="../../cecil/lib/Mono.Cecil.csproj" /> </Entries> </Combine> \ No newline at end of file Added: trunk/mono-tools/gendarme/self-test.ignore =================================================================== --- trunk/mono-tools/gendarme/self-test.ignore 2008-02-17 21:40:01 UTC (rev 96005) +++ trunk/mono-tools/gendarme/self-test.ignore 2008-02-17 21:42:24 UTC (rev 96006) @@ -0,0 +1,11 @@ +# OK - The rule itself needs the literal new line characters to test against them +R: Gendarme.Rules.Portability.NewLineLiteralRule +M: Gendarme.Framework.RuleResult Gendarme.Rules.Portability.NewLineLiteralRule::CheckMethod(Mono.Cecil.MethodDefinition) + +# OK - For symmetry with GetPopCount this method is not turned to static +R: Gendarme.Rules.Correctness.MethodCanBeMadeStaticRule +M: System.Int32 Gendarme.Framework.Helpers.StackEntryAnalysis::GetPushCount(Mono.Cecil.Cil.Instruction) + +# OK - false positive, the real value can't be found looking in Main alone +R: Gendarme.Rules.Portability.ExitCodeIsLimitedOnUnixRule +A: gendarme, Version=0.1.0.0, Culture=neutral, PublicKeyToken=null _______________________________________________ Mono-patches maillist - Mono-patches@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-patches