diff options
Diffstat (limited to 'gendarme')
38 files changed, 112 insertions, 85 deletions
diff --git a/gendarme/gendarme.mds b/gendarme/gendarme.mds index fabcfd68..c3e5c261 100644 --- a/gendarme/gendarme.mds +++ b/gendarme/gendarme.mds @@ -1,4 +1,4 @@ -<Combine name="gendarme" fileversion="2.0" outputpath="./build/bin/"> +<Combine name="gendarme" fileversion="2.0" outputpath="build/bin/"> <Configurations active="Debug"> <Configuration name="Debug" ctype="CombineConfiguration"> <Entry build="True" name="framework" configuration="Debug" /> @@ -25,10 +25,10 @@ <MonoDevelop.ChangeLogAddIn.ChangeLogInfo policy="UpdateNearestChangeLog" /> <DeployTargets /> <Entries> - <Entry filename="./framework/framework.mdp" /> - <Entry filename="./console/console.mdp" /> - <Entry filename="./rules/rules.mds" /> - <Entry filename="./rules/tests.mds" /> - <Entry filename="./rules/rules.md-nunit" /> + <Entry filename="framework/framework.mdp" /> + <Entry filename="console/console.mdp" /> + <Entry filename="rules/rules.mds" /> + <Entry filename="rules/tests.mds" /> + <Entry filename="rules/rules.md-nunit" /> </Entries> </Combine>
\ No newline at end of file diff --git a/gendarme/rules/Gendarme.Rules.BadPractice/Gendarme.Rules.BadPractice.mdp b/gendarme/rules/Gendarme.Rules.BadPractice/Gendarme.Rules.BadPractice.mdp index 2e6fdccc..fc922586 100644 --- a/gendarme/rules/Gendarme.Rules.BadPractice/Gendarme.Rules.BadPractice.mdp +++ b/gendarme/rules/Gendarme.Rules.BadPractice/Gendarme.Rules.BadPractice.mdp @@ -16,11 +16,12 @@ <Contents> <File name="CloneMethodShouldNotReturnNullRule.cs" subtype="Code" buildaction="Compile" /> <File name="EqualShouldHandleNullArgRule.cs" subtype="Code" buildaction="Compile" /> - <File name="Gendarme.Rules.BadPractice.xml.in" subtype="Code" buildaction="Nothing" /> - <File name="ImplementingEqualsButNotGetHashCodeAndViceVersaRule.cs" subtype="Code" buildaction="Compile" /> <File name="ToStringReturnsNullRule.cs" subtype="Code" buildaction="Compile" /> <File name="ConstructorShouldNotCallVirtualMethodsRule.cs" subtype="Code" buildaction="Compile" /> <File name="GetEntryAssemblyMayReturnNullRule.cs" subtype="Code" buildaction="Compile" /> + <File name="ChangeLog" subtype="Code" buildaction="Nothing" /> + <File name="CheckNewExceptionWithoutThrowingRule.cs" subtype="Code" buildaction="Compile" /> + <File name="CheckNewThreadWithoutStartRule.cs" subtype="Code" buildaction="Compile" /> </Contents> <References> <ProjectReference type="Assembly" localcopy="True" refto="../../../lib/Mono.Cecil.dll" /> diff --git a/gendarme/rules/Gendarme.Rules.BadPractice/Makefile.am b/gendarme/rules/Gendarme.Rules.BadPractice/Makefile.am index 02203228..8ae12874 100644 --- a/gendarme/rules/Gendarme.Rules.BadPractice/Makefile.am +++ b/gendarme/rules/Gendarme.Rules.BadPractice/Makefile.am @@ -2,8 +2,8 @@ SUBDIRS=Test badpractice_rulesdir=$(prefix)/lib/gendarme badpractice_rules_SCRIPTS = ../../bin/Gendarme.Rules.BadPractice.dll -badpractice_rules_DATA = Gendarme.Rules.BadPractice.xml -EXTRA_DIST = $(badpractice_rules_sources) $(badpractice_rules_sources_in) Gendarme.Rules.BadPractice.xml \ +badpractice_rules_DATA = +EXTRA_DIST = $(badpractice_rules_sources) $(badpractice_rules_sources_in) \ Gendarme.Rules.BadPractice.mdp CLEANFILES = $(badpractice_rules_SCRIPTS) $(badpractice_rules_SCRIPTS).mdb Test.Rules.BadPractice.dll DISTCLEANFILES = Makefile.in Gendarme.Rules.BadPractice.xml TestResult.xml @@ -18,8 +18,8 @@ badpractice_rules_build_sources = $(addprefix $(srcdir)/, $(badpractice_rules_so badpractice_rules_build_sources += $(badpractice_rules_generated_sources) ../../bin/Gendarme.Rules.BadPractice.dll: $(badpractice_rules_build_sources) - $(GMCS) -debug -target:library -r:$(top_builddir)/gendarme/bin/Mono.Cecil.dll -r:../../bin/Gendarme.Framework.dll -out:$@ $(badpractice_rules_build_sources) - cp Gendarme.Rules.*.xml ../../bin/ + $(GMCS) -debug -target:library -r:$(top_builddir)/gendarme/bin/Mono.Cecil.dll -r:../../bin/Gendarme.Framework.dll \ + -out:$@ $(badpractice_rules_build_sources) badpractice_test_sources = CloneMethodShouldNotReturnNullTest.cs EqualShouldHandleNullArgTest.cs \ ToStringReturnsNullTest.cs GetEntryAssemblyMayReturnNullTest.cs ConstructorShouldNotCallVirtualMethodsTest.cs \ @@ -27,7 +27,7 @@ badpractice_test_sources = CloneMethodShouldNotReturnNullTest.cs EqualShouldHand badpractice_test_build_sources = $(addprefix $(srcdir)/Test/, $(badpractice_test_sources)) -Test.Rules.BadPractice.dll: $(badpractice_rules_build_sources) $(badpractice_rules_SCRIPTS) +Test.Rules.BadPractice.dll: $(badpractice_test_build_sources) $(badpractice_rules_SCRIPTS) $(GMCS) -target:library -r:$(top_builddir)/gendarme/bin/Mono.Cecil.dll -pkg:mono-nunit -r:../../bin/Gendarme.Framework.dll \ -r:$(badpractice_rules_SCRIPTS) -out:$@ $(badpractice_test_build_sources) diff --git a/gendarme/rules/Gendarme.Rules.BadPractice/Test/Test.Rules.BadPractice.mdp b/gendarme/rules/Gendarme.Rules.BadPractice/Test/Test.Rules.BadPractice.mdp index 28b46141..e3afd715 100644 --- a/gendarme/rules/Gendarme.Rules.BadPractice/Test/Test.Rules.BadPractice.mdp +++ b/gendarme/rules/Gendarme.Rules.BadPractice/Test/Test.Rules.BadPractice.mdp @@ -16,10 +16,12 @@ <Contents> <File name="CloneMethodShouldNotReturnNullTest.cs" subtype="Code" buildaction="Compile" /> <File name="EqualShouldHandleNullArgTest.cs" subtype="Code" buildaction="Compile" /> - <File name="ImplementingEqualsButNotGetHashCodeAndViceVersaTest.cs" subtype="Code" buildaction="Compile" /> <File name="ToStringReturnsNullTest.cs" subtype="Code" buildaction="Compile" /> <File name="ConstructorShouldNotCallVirtualMethodsTest.cs" subtype="Code" buildaction="Compile" /> <File name="GetEntryAssemblyMayReturnNullTest.cs" subtype="Code" buildaction="Compile" /> + <File name="ChangeLog" subtype="Code" buildaction="Nothing" /> + <File name="CheckNewExceptionWithoutThrowingTest.cs" subtype="Code" buildaction="Compile" /> + <File name="CheckNewThreadWithoutStartTest.cs" subtype="Code" buildaction="Compile" /> </Contents> <References> <ProjectReference type="Assembly" localcopy="True" refto="../../../../lib/Mono.Cecil.dll" /> diff --git a/gendarme/rules/Gendarme.Rules.Concurrency/Gendarme.Rules.Concurrency.mdp b/gendarme/rules/Gendarme.Rules.Concurrency/Gendarme.Rules.Concurrency.mdp index 7b263761..0a713b18 100644 --- a/gendarme/rules/Gendarme.Rules.Concurrency/Gendarme.Rules.Concurrency.mdp +++ b/gendarme/rules/Gendarme.Rules.Concurrency/Gendarme.Rules.Concurrency.mdp @@ -16,6 +16,7 @@ <Contents> <File name="DoubleCheckLockingRule.cs" subtype="Code" buildaction="Compile" /> <File name="WriteStaticFieldFromInstanceMethodRule.cs" subtype="Code" buildaction="Compile" /> + <File name="NonConstantStaticFieldsShouldNotBeVisibleRule.cs" subtype="Code" buildaction="Compile" /> </Contents> <References> <ProjectReference type="Project" localcopy="True" refto="framework" /> diff --git a/gendarme/rules/Gendarme.Rules.Concurrency/Makefile.am b/gendarme/rules/Gendarme.Rules.Concurrency/Makefile.am index 2934afdf..c59b709f 100644 --- a/gendarme/rules/Gendarme.Rules.Concurrency/Makefile.am +++ b/gendarme/rules/Gendarme.Rules.Concurrency/Makefile.am @@ -2,8 +2,8 @@ SUBDIRS=Test concurrency_rulesdir=$(prefix)/lib/gendarme concurrency_rules_SCRIPTS = ../../bin/Gendarme.Rules.Concurrency.dll -concurrency_rules_DATA = Gendarme.Rules.Concurrency.xml -EXTRA_DIST = $(concurrency_rules_sources) $(concurrency_rules_sources_in) Gendarme.Rules.Concurrency.xml \ +concurrency_rules_DATA = +EXTRA_DIST = $(concurrency_rules_sources) $(concurrency_rules_sources_in) \ Gendarme.Rules.Concurrency.mdp Gendarme.Rules.Concurrency.csproj CLEANFILES = $(concurrency_rules_SCRIPTS) $(concurrency_rules_SCRIPTS).mdb Test.Rules.Concurrency.dll DISTCLEANFILES = Makefile.in Gendarme.Rules.Concurrency.xml TestResult.xml @@ -17,15 +17,15 @@ concurrency_rules_build_sources = $(addprefix $(srcdir)/, $(concurrency_rules_so concurrency_rules_build_sources += $(concurrency_rules_generated_sources) ../../bin/Gendarme.Rules.Concurrency.dll: $(concurrency_rules_build_sources) - $(GMCS) -debug -target:library -r:$(top_builddir)/gendarme/bin/Mono.Cecil.dll -r:../../bin/Gendarme.Framework.dll -out:$@ $(concurrency_rules_build_sources) - cp Gendarme.Rules.*.xml ../../bin/ + $(GMCS) -debug -target:library -r:$(top_builddir)/gendarme/bin/Mono.Cecil.dll -r:../../bin/Gendarme.Framework.dll \ + -out:$@ $(concurrency_rules_build_sources) concurrency_test_sources = DoubleCheckLockingTest.cs WriteStaticFieldFromInstanceMethodTest.cs \ NonConstantStaticFieldsShouldNotBeVisibleTest.cs concurrency_test_build_sources = $(addprefix $(srcdir)/Test/, $(concurrency_test_sources)) -Test.Rules.Concurrency.dll: $(concurrency_rules_build_sources) $(concurrency_rules_SCRIPTS) +Test.Rules.Concurrency.dll: $(concurrency_test_build_sources) $(concurrency_rules_SCRIPTS) $(GMCS) -target:library -r:$(top_builddir)/gendarme/bin/Mono.Cecil.dll -pkg:mono-nunit -r:../../bin/Gendarme.Framework.dll \ -r:$(concurrency_rules_SCRIPTS) -out:$@ $(concurrency_test_build_sources) diff --git a/gendarme/rules/Gendarme.Rules.Concurrency/Test/Test.Rules.Concurrency.mdp b/gendarme/rules/Gendarme.Rules.Concurrency/Test/Test.Rules.Concurrency.mdp index 332bc7c2..291dd60e 100644 --- a/gendarme/rules/Gendarme.Rules.Concurrency/Test/Test.Rules.Concurrency.mdp +++ b/gendarme/rules/Gendarme.Rules.Concurrency/Test/Test.Rules.Concurrency.mdp @@ -16,6 +16,8 @@ <Contents> <File name="DoubleCheckLockingTest.cs" subtype="Code" buildaction="Compile" /> <File name="WriteStaticFieldFromInstanceMethodTest.cs" subtype="Code" buildaction="Compile" /> + <File name="NonConstantStaticFieldsShouldNotBeVisibleTest.cs" subtype="Code" buildaction="Compile" /> + <File name="ChangeLog" subtype="Code" buildaction="Nothing" /> </Contents> <References> <ProjectReference type="Project" localcopy="True" refto="Gendarme.Rules.Concurrency" /> diff --git a/gendarme/rules/Gendarme.Rules.Correctness/Gendarme.Rules.Correctness.mdp b/gendarme/rules/Gendarme.Rules.Correctness/Gendarme.Rules.Correctness.mdp index bfd0c110..92cf4cf5 100644 --- a/gendarme/rules/Gendarme.Rules.Correctness/Gendarme.Rules.Correctness.mdp +++ b/gendarme/rules/Gendarme.Rules.Correctness/Gendarme.Rules.Correctness.mdp @@ -35,10 +35,10 @@ <File name="graph/INode.cs" subtype="Code" buildaction="Compile" /> <File name="graph/Node.cs" subtype="Code" buildaction="Compile" /> <File name="CallingEqualsWithNullArgRule.cs" subtype="Code" buildaction="Compile" /> - <File name="Gendarme.Rules.Correctness.xml.in" subtype="Code" buildaction="Nothing" /> <File name="AvoidConstructorsInStaticTypesRule.cs" subtype="Code" buildaction="Compile" /> <File name="FloatComparisonRule.cs" subtype="Code" buildaction="Compile" /> <File name="UseValueInPropertySetterRule.cs" subtype="Code" buildaction="Compile" /> + <File name="DontCompareWithNaNRule.cs" subtype="Code" buildaction="Compile" /> </Contents> <References> <ProjectReference type="Assembly" localcopy="True" refto="../../../lib/Mono.Cecil.dll" /> diff --git a/gendarme/rules/Gendarme.Rules.Correctness/Makefile.am b/gendarme/rules/Gendarme.Rules.Correctness/Makefile.am index b3c69fb1..33e9acd8 100644 --- a/gendarme/rules/Gendarme.Rules.Correctness/Makefile.am +++ b/gendarme/rules/Gendarme.Rules.Correctness/Makefile.am @@ -2,8 +2,8 @@ SUBDIRS=Test correctness_rulesdir=$(prefix)/lib/gendarme correctness_rules_SCRIPTS = ../../bin/Gendarme.Rules.Correctness.dll -correctness_rules_DATA = Gendarme.Rules.Correctness.xml -EXTRA_DIST = $(correctness_rules_sources) $(correctness_rules_sources_in) Gendarme.Rules.Correctness.xml \ +correctness_rules_DATA = +EXTRA_DIST = $(correctness_rules_sources) $(correctness_rules_sources_in) \ Gendarme.Rules.Correctness.mdp Gendarme.Rules.Correctness.csproj CLEANFILES = $(correctness_rules_SCRIPTS) $(correctness_rules_SCRIPTS).mdb Test.Rules.Correctness.dll DISTCLEANFILES = Makefile.in Gendarme.Rules.Correctness.xml TestResult.xml @@ -21,8 +21,8 @@ correctness_rules_build_sources = $(addprefix $(srcdir)/, $(correctness_rules_so correctness_rules_build_sources += $(correctness_rules_generated_sources) ../../bin/Gendarme.Rules.Correctness.dll: $(correctness_rules_build_sources) - $(GMCS) -debug -target:library -r:$(top_builddir)/gendarme/bin/Mono.Cecil.dll -r:../../bin/Gendarme.Framework.dll -out:$@ $(correctness_rules_build_sources) - cp Gendarme.Rules.*.xml ../../bin/ + $(GMCS) -debug -target:library -r:$(top_builddir)/gendarme/bin/Mono.Cecil.dll -r:../../bin/Gendarme.Framework.dll \ + -out:$@ $(correctness_rules_build_sources) correctness_test_sources = BadRecursiveInvocationTest.cs MethodCanBeMadeStaticTest.cs UseValueInPropertySetterTest.cs \ AvoidConstructorsInStaticTypesTest.cs CallingEqualsWithNullArgTest.cs FloatComparisonRuleTest.cs \ @@ -30,7 +30,7 @@ correctness_test_sources = BadRecursiveInvocationTest.cs MethodCanBeMadeStaticTe correctness_test_build_sources = $(addprefix $(srcdir)/Test/, $(correctness_test_sources)) -Test.Rules.Correctness.dll: $(correctness_rules_build_sources) $(correctness_rules_SCRIPTS) +Test.Rules.Correctness.dll: $(correctness_test_build_sources) $(correctness_rules_SCRIPTS) $(GMCS) -target:library -r:$(top_builddir)/gendarme/bin/Mono.Cecil.dll -pkg:mono-nunit -r:../../bin/Gendarme.Framework.dll \ -r:$(correctness_rules_SCRIPTS) -out:$@ $(correctness_test_build_sources) diff --git a/gendarme/rules/Gendarme.Rules.Correctness/Test/Test.Rules.Correctness.mdp b/gendarme/rules/Gendarme.Rules.Correctness/Test/Test.Rules.Correctness.mdp index 1c0b8803..18b2cefa 100644 --- a/gendarme/rules/Gendarme.Rules.Correctness/Test/Test.Rules.Correctness.mdp +++ b/gendarme/rules/Gendarme.Rules.Correctness/Test/Test.Rules.Correctness.mdp @@ -20,6 +20,8 @@ <File name="AvoidConstructorsInStaticTypesTest.cs" subtype="Code" buildaction="Compile" /> <File name="FloatComparisonRuleTest.cs" subtype="Code" buildaction="Compile" /> <File name="UseValueInPropertySetterTest.cs" subtype="Code" buildaction="Compile" /> + <File name="ChangeLog" subtype="Code" buildaction="Nothing" /> + <File name="DontCompareWithNaNTest.cs" subtype="Code" buildaction="Compile" /> </Contents> <References> <ProjectReference type="Project" localcopy="True" refto="Gendarme.Rules.Correctness" /> diff --git a/gendarme/rules/Gendarme.Rules.Design/Gendarme.Rules.Design.mdp b/gendarme/rules/Gendarme.Rules.Design/Gendarme.Rules.Design.mdp index 5954c80b..d928aaee 100644 --- a/gendarme/rules/Gendarme.Rules.Design/Gendarme.Rules.Design.mdp +++ b/gendarme/rules/Gendarme.Rules.Design/Gendarme.Rules.Design.mdp @@ -15,7 +15,6 @@ </Configurations> <Contents> <File name="DontDeclareProtectedFieldsInSealedClassRule.cs" subtype="Code" buildaction="Compile" /> - <File name="Gendarme.Rules.Design.xml.in" subtype="Code" buildaction="Nothing" /> <File name="UsingCloneWithoutImplementingICloneableRule.cs" subtype="Code" buildaction="Compile" /> <File name="AbstractTypesShouldNotHavePublicConstructorsRule.cs" subtype="Code" buildaction="Compile" /> <File name="AvoidEmptyInterfaceRule.cs" subtype="Code" buildaction="Compile" /> diff --git a/gendarme/rules/Gendarme.Rules.Design/Makefile.am b/gendarme/rules/Gendarme.Rules.Design/Makefile.am index dbc1211e..12f0678a 100644 --- a/gendarme/rules/Gendarme.Rules.Design/Makefile.am +++ b/gendarme/rules/Gendarme.Rules.Design/Makefile.am @@ -2,8 +2,8 @@ SUBDIRS=Test design_rulesdir=$(prefix)/lib/gendarme design_rules_SCRIPTS = ../../bin/Gendarme.Rules.Design.dll -design_rules_DATA = Gendarme.Rules.Design.xml -EXTRA_DIST = $(design_rules_sources) $(design_rules_sources_in) Gendarme.Rules.Design.xml \ +design_rules_DATA = +EXTRA_DIST = $(design_rules_sources) $(design_rules_sources_in) \ Gendarme.Rules.Design.mdp CLEANFILES = $(design_rules_SCRIPTS) $(design_rules_SCRIPTS).mdb Test.Rules.Design.dll DISTCLEANFILES = Makefile.in Gendarme.Rules.Design.xml TestResult.xml @@ -26,8 +26,8 @@ design_rules_build_sources = $(addprefix $(srcdir)/, $(design_rules_sources)) design_rules_build_sources += $(design_rules_generated_sources) ../../bin/Gendarme.Rules.Design.dll: $(design_rules_build_sources) - $(GMCS) -debug -target:library -langversion:linq -r:$(top_builddir)/gendarme/bin/Mono.Cecil.dll -r:System.Core.dll -r:../../bin/Gendarme.Framework.dll -out:$@ $(design_rules_build_sources) - cp Gendarme.Rules.*.xml ../../bin/ + $(GMCS) -debug -target:library -langversion:linq -r:$(top_builddir)/gendarme/bin/Mono.Cecil.dll -r:System.Core.dll \ + -r:../../bin/Gendarme.Framework.dll -out:$@ $(design_rules_build_sources) design_test_sources = DontDeclareProtectedFieldsInSealedClassTest.cs UsingCloneWithoutImplementingICloneableTest.cs \ EnumsShouldDefineAZeroValueTest.cs FlagsShouldNotDefineAZeroValueTest.cs \ @@ -42,7 +42,7 @@ design_test_sources = DontDeclareProtectedFieldsInSealedClassTest.cs UsingCloneW design_test_build_sources = $(addprefix $(srcdir)/Test/, $(design_test_sources)) -Test.Rules.Design.dll: $(design_rules_build_sources) $(design_rules_SCRIPTS) +Test.Rules.Design.dll: $(design_test_build_sources) $(design_rules_SCRIPTS) $(GMCS) -target:library -r:$(top_builddir)/gendarme/bin/Mono.Cecil.dll -pkg:mono-nunit -r:../../bin/Gendarme.Framework.dll \ -r:$(design_rules_SCRIPTS) -out:$@ $(design_test_build_sources) diff --git a/gendarme/rules/Gendarme.Rules.Design/Test/Test.Rules.Design.mdp b/gendarme/rules/Gendarme.Rules.Design/Test/Test.Rules.Design.mdp index dcdddc51..ae0af67c 100644 --- a/gendarme/rules/Gendarme.Rules.Design/Test/Test.Rules.Design.mdp +++ b/gendarme/rules/Gendarme.Rules.Design/Test/Test.Rules.Design.mdp @@ -39,6 +39,7 @@ <File name="OperatorEqualsShouldBeOverloadedTest.cs" subtype="Code" buildaction="Compile" /> <File name="OverrideEqualsMethodTest.cs" subtype="Code" buildaction="Compile" /> <File name="ProvideAlternativeNamesForOperatorOverloadsTest.cs" subtype="Code" buildaction="Compile" /> + <File name="ChangeLog" subtype="Code" buildaction="Nothing" /> </Contents> <References> <ProjectReference type="Assembly" localcopy="True" refto="../../../../lib/Mono.Cecil.dll" /> diff --git a/gendarme/rules/Gendarme.Rules.Exceptions/Gendarme.Rules.Exceptions.mdp b/gendarme/rules/Gendarme.Rules.Exceptions/Gendarme.Rules.Exceptions.mdp index 08d89d5e..f7eb36ed 100644 --- a/gendarme/rules/Gendarme.Rules.Exceptions/Gendarme.Rules.Exceptions.mdp +++ b/gendarme/rules/Gendarme.Rules.Exceptions/Gendarme.Rules.Exceptions.mdp @@ -14,7 +14,6 @@ </Configuration> </Configurations> <Contents> - <File name="DontDestroyStackTrace.cs" subtype="Code" buildaction="Compile" /> <File name="ISEHCatchBlock.cs" subtype="Code" buildaction="Compile" /> <File name="ISEHGuardedBlock.cs" subtype="Code" buildaction="Compile" /> <File name="ISEHHandlerBlock.cs" subtype="Code" buildaction="Compile" /> @@ -28,6 +27,8 @@ <File name="Impl/SEHHandlerBlock.cs" subtype="Code" buildaction="Compile" /> <File name="Impl/SEHHandlerBlockCollection.cs" subtype="Code" buildaction="Compile" /> <File name="DontSwallowErrorsCatchingNonspecificExceptionsRule.cs" subtype="Code" buildaction="Compile" /> + <File name="DoNotDestroyStackTraceRule.cs" subtype="Code" buildaction="Compile" /> + <File name="ChangeLog" subtype="Code" buildaction="Nothing" /> </Contents> <References> <ProjectReference type="Project" localcopy="True" refto="framework" /> diff --git a/gendarme/rules/Gendarme.Rules.Exceptions/Makefile.am b/gendarme/rules/Gendarme.Rules.Exceptions/Makefile.am index a01a4b3e..46007fd9 100644 --- a/gendarme/rules/Gendarme.Rules.Exceptions/Makefile.am +++ b/gendarme/rules/Gendarme.Rules.Exceptions/Makefile.am @@ -2,8 +2,8 @@ SUBDIRS=Test exceptions_rulesdir=$(prefix)/lib/gendarme exceptions_rules_SCRIPTS = ../../bin/Gendarme.Rules.Exceptions.dll -exceptions_rules_DATA = Gendarme.Rules.Exceptions.xml -EXTRA_DIST = $(exceptions_rules_sources) $(exceptions_rules_sources_in) Gendarme.Rules.Exceptions.xml \ +exceptions_rules_DATA = +EXTRA_DIST = $(exceptions_rules_sources) $(exceptions_rules_sources_in) \ Gendarme.Rules.Exceptions.mdp Gendarme.Rules.Exceptions.csproj CLEANFILES = $(exceptions_rules_SCRIPTS) $(exceptions_rules_SCRIPTS).mdb Test.Rules.Exceptions.dll DISTCLEANFILES = Makefile.in Gendarme.Rules.Exceptions.xml TestResult.xml @@ -21,8 +21,8 @@ exceptions_rules_build_sources = $(addprefix $(srcdir)/, $(exceptions_rules_sour exceptions_rules_build_sources += $(exceptions_rules_generated_sources) ../../bin/Gendarme.Rules.Exceptions.dll: $(exceptions_rules_build_sources) - $(GMCS) -debug -target:library -r:$(top_builddir)/gendarme/bin/Mono.Cecil.dll -r:../../bin/Gendarme.Framework.dll -out:$@ $(exceptions_rules_build_sources) - cp Gendarme.Rules.*.xml ../../bin/ + $(GMCS) -debug -target:library -r:$(top_builddir)/gendarme/bin/Mono.Cecil.dll -r:../../bin/Gendarme.Framework.dll \ + -out:$@ $(exceptions_rules_build_sources) exceptions_test_sources = DontDestroyStackTraceTest.cs DontSwallowErrorsCatchingNonspecificExceptionsTest.cs exceptions_test_build_sources = $(addprefix $(srcdir)/Test/, $(exceptions_test_sources)) diff --git a/gendarme/rules/Gendarme.Rules.Exceptions/Test/Test.Rules.Exceptions.mdp b/gendarme/rules/Gendarme.Rules.Exceptions/Test/Test.Rules.Exceptions.mdp index 7e6ed9ff..5e9b516b 100644 --- a/gendarme/rules/Gendarme.Rules.Exceptions/Test/Test.Rules.Exceptions.mdp +++ b/gendarme/rules/Gendarme.Rules.Exceptions/Test/Test.Rules.Exceptions.mdp @@ -14,8 +14,9 @@ </Configuration> </Configurations> <Contents> - <File name="TestPatterns.cs" subtype="Code" buildaction="Compile" /> <File name="DontSwallowErrorsCatchingNonspecificExceptionsTest.cs" subtype="Code" buildaction="Compile" /> + <File name="ChangeLog" subtype="Code" buildaction="Nothing" /> + <File name="DontDestroyStackTraceTest.cs" subtype="Code" buildaction="Compile" /> </Contents> <References> <ProjectReference type="Project" localcopy="True" refto="Gendarme.Rules.Exceptions" /> diff --git a/gendarme/rules/Gendarme.Rules.Interoperability/Gendarme.Rules.Interoperability.mdp b/gendarme/rules/Gendarme.Rules.Interoperability/Gendarme.Rules.Interoperability.mdp index 6d6d602f..8d156918 100644 --- a/gendarme/rules/Gendarme.Rules.Interoperability/Gendarme.Rules.Interoperability.mdp +++ b/gendarme/rules/Gendarme.Rules.Interoperability/Gendarme.Rules.Interoperability.mdp @@ -16,7 +16,9 @@ <Contents> <File name="GetLastErrorMustBeCalledRightAfterPInvokeRule.cs" subtype="Code" buildaction="Compile" /> <File name="PInvokeShouldNotBeVisibleRule.cs" subtype="Code" buildaction="Compile" /> - <File name="Gendarme.Rules.Interoperability.xml.in" subtype="Code" buildaction="Nothing" /> + <File name="MarshalStringsInPInvokeDeclarationsRule.cs" subtype="Code" buildaction="Compile" /> + <File name="UseManagedAlternativesToPInvokeRule.cs" subtype="Code" buildaction="Compile" /> + <File name="ChangeLog" subtype="Code" buildaction="Nothing" /> </Contents> <References> <ProjectReference type="Assembly" localcopy="True" refto="../../../lib/Mono.Cecil.dll" /> diff --git a/gendarme/rules/Gendarme.Rules.Interoperability/Makefile.am b/gendarme/rules/Gendarme.Rules.Interoperability/Makefile.am index 273cf2f3..3c7153d5 100644 --- a/gendarme/rules/Gendarme.Rules.Interoperability/Makefile.am +++ b/gendarme/rules/Gendarme.Rules.Interoperability/Makefile.am @@ -2,8 +2,8 @@ SUBDIRS=Test interoperability_rulesdir=$(prefix)/lib/gendarme interoperability_rules_SCRIPTS = ../../bin/Gendarme.Rules.Interoperability.dll -interoperability_rules_DATA = Gendarme.Rules.Interoperability.xml -EXTRA_DIST = $(interoperability_rules_sources) $(interoperability_rules_sources_in) Gendarme.Rules.Interoperability.xml \ +interoperability_rules_DATA = +EXTRA_DIST = $(interoperability_rules_sources) $(interoperability_rules_sources_in) \ Gendarme.Rules.Interoperability.mdp CLEANFILES = $(interoperability_rules_SCRIPTS) $(interoperability_rules_SCRIPTS).mdb Test.Rules.Interoperability.dll DISTCLEANFILES = Makefile.in Gendarme.Rules.Interoperability.xml TestResult.xml @@ -17,15 +17,15 @@ interoperability_rules_build_sources = $(addprefix $(srcdir)/, $(interoperabilit interoperability_rules_build_sources += $(interoperability_rules_generated_sources) ../../bin/Gendarme.Rules.Interoperability.dll: $(interoperability_rules_build_sources) - $(GMCS) -debug -target:library -r:$(top_builddir)/gendarme/bin/Mono.Cecil.dll -r:../../bin/Gendarme.Framework.dll -out:$@ $(interoperability_rules_build_sources) - cp Gendarme.Rules.*.xml ../../bin/ + $(GMCS) -debug -target:library -r:$(top_builddir)/gendarme/bin/Mono.Cecil.dll -r:../../bin/Gendarme.Framework.dll \ + -out:$@ $(interoperability_rules_build_sources) interoperability_test_sources = PInvokeShouldNotBeVisibleTest.cs GetLastErrorMustBeCalledRightAfterPInvokeTest.cs \ UseManagedAlternativesToPInvokeTest.cs MarshalStringsInPInvokeDeclarationsTest.cs interoperability_test_build_sources = $(addprefix $(srcdir)/Test/, $(interoperability_test_sources)) -Test.Rules.Interoperability.dll: $(interoperability_rules_build_sources) $(interoperability_rules_SCRIPTS) +Test.Rules.Interoperability.dll: $(interoperability_test_build_sources) $(interoperability_rules_SCRIPTS) $(GMCS) -target:library -r:$(top_builddir)/gendarme/bin/Mono.Cecil.dll -pkg:mono-nunit -r:../../bin/Gendarme.Framework.dll \ -r:$(interoperability_rules_SCRIPTS) -out:$@ $(interoperability_test_build_sources) diff --git a/gendarme/rules/Gendarme.Rules.Interoperability/Test/Test.Rules.Interoperability.mdp b/gendarme/rules/Gendarme.Rules.Interoperability/Test/Test.Rules.Interoperability.mdp index 9a0d3f7d..d002837f 100644 --- a/gendarme/rules/Gendarme.Rules.Interoperability/Test/Test.Rules.Interoperability.mdp +++ b/gendarme/rules/Gendarme.Rules.Interoperability/Test/Test.Rules.Interoperability.mdp @@ -16,6 +16,9 @@ <Contents> <File name="GetLastErrorMustBeCalledRightAfterPInvokeTest.cs" subtype="Code" buildaction="Compile" /> <File name="PInvokeShouldNotBeVisibleTest.cs" subtype="Code" buildaction="Compile" /> + <File name="ChangeLog" subtype="Code" buildaction="Nothing" /> + <File name="MarshalStringsInPInvokeDeclarationsTest.cs" subtype="Code" buildaction="Compile" /> + <File name="UseManagedAlternativesToPInvokeTest.cs" subtype="Code" buildaction="Compile" /> </Contents> <References> <ProjectReference type="Assembly" localcopy="True" refto="../../../../lib/Mono.Cecil.dll" /> diff --git a/gendarme/rules/Gendarme.Rules.Naming/Gendarme.Rules.Naming.mdp b/gendarme/rules/Gendarme.Rules.Naming/Gendarme.Rules.Naming.mdp index 5a8aab5e..d89598c9 100644 --- a/gendarme/rules/Gendarme.Rules.Naming/Gendarme.Rules.Naming.mdp +++ b/gendarme/rules/Gendarme.Rules.Naming/Gendarme.Rules.Naming.mdp @@ -17,16 +17,15 @@ <File name="UsePluralNameInEnumFlagsRule.cs" subtype="Code" buildaction="Compile" /> <File name="UseSingularNameInEnumsUnlessAreFlagsRule.cs" subtype="Code" buildaction="Compile" /> <File name="EnumNotEndsWithEnumOrFlagsSuffixRule.cs" subtype="Code" buildaction="Compile" /> - <File name="Gendarme.Rules.Naming.xml.in" subtype="Code" buildaction="Nothing" /> <File name="DetectNonAlphaNumericsInTypeNamesRule.cs" subtype="Code" buildaction="Compile" /> <File name="UseCorrectCasingRule.cs" subtype="Code" buildaction="Compile" /> <File name="UseCorrectPrefixRule.cs" subtype="Code" buildaction="Compile" /> <File name="UseCorrectSuffixRule.cs" subtype="Code" buildaction="Compile" /> <File name="UsePreferredTermsRule.cs" subtype="Code" buildaction="Compile" /> - <File name="NamingUtils.cs" subtype="Code" buildaction="Compile" /> <File name="DoNotPrefixValuesWithEnumNameRule.cs" subtype="Code" buildaction="Compile" /> <File name="DoNotUseReservedInEnumValueNamesRule.cs" subtype="Code" buildaction="Compile" /> <File name="ParameterNamesShouldMatchOverridenMethodRule.cs" subtype="Code" buildaction="Compile" /> + <File name="ChangeLog" subtype="Code" buildaction="Nothing" /> </Contents> <References> <ProjectReference type="Project" localcopy="True" refto="framework" /> diff --git a/gendarme/rules/Gendarme.Rules.Naming/Makefile.am b/gendarme/rules/Gendarme.Rules.Naming/Makefile.am index 3bb7c915..60b6001b 100644 --- a/gendarme/rules/Gendarme.Rules.Naming/Makefile.am +++ b/gendarme/rules/Gendarme.Rules.Naming/Makefile.am @@ -2,8 +2,8 @@ SUBDIRS=Test naming_rulesdir=$(prefix)/lib/gendarme naming_rules_SCRIPTS = ../../bin/Gendarme.Rules.Naming.dll -naming_rules_DATA = Gendarme.Rules.Naming.xml -EXTRA_DIST = $(naming_rules_sources) $(naming_rules_sources_in) Gendarme.Rules.Naming.xml \ +naming_rules_DATA = +EXTRA_DIST = $(naming_rules_sources) $(naming_rules_sources_in) \ Gendarme.Rules.Naming.mdp CLEANFILES = $(naming_rules_SCRIPTS)* Test.Rules.Naming.dll DISTCLEANFILES = Makefile.in Gendarme.Rules.Naming.xml TestResult.xml @@ -20,8 +20,8 @@ naming_rules_build_sources = $(addprefix $(srcdir)/, $(naming_rules_sources)) naming_rules_build_sources += $(naming_rules_generated_sources) ../../bin/Gendarme.Rules.Naming.dll: $(naming_rules_build_sources) - $(GMCS) -debug -target:library -langversion:linq -r:$(top_builddir)/gendarme/bin/Mono.Cecil.dll -r:../../bin/Gendarme.Framework.dll -out:$@ $(naming_rules_build_sources) - cp Gendarme.Rules.*.xml ../../bin/ + $(GMCS) -debug -target:library -r:$(top_builddir)/gendarme/bin/Mono.Cecil.dll -r:../../bin/Gendarme.Framework.dll \ + -out:$@ $(naming_rules_build_sources) naming_test_sources = EnumNotEndsWithEnumOrFlagsSuffixTest.cs \ UsePluralNameInEnumFlagsTest.cs UseSingularNameInEnumsUnlessAreFlagsTest.cs \ @@ -31,9 +31,9 @@ naming_test_sources = EnumNotEndsWithEnumOrFlagsSuffixTest.cs \ naming_test_build_sources = $(addprefix $(srcdir)/Test/, $(naming_test_sources)) -Test.Rules.Naming.dll: $(naming_rules_build_sources) $(naming_rules_SCRIPTS) - $(GMCS) -target:library -debug -r:$(top_builddir)/gendarme/bin/Mono.Cecil.dll -pkg:mono-nunit -r:../../bin/Gendarme.Framework.dll \ - -r:$(naming_rules_SCRIPTS) -out:$@ $(naming_test_build_sources) +Test.Rules.Naming.dll: $(naming_test_build_sources) $(naming_rules_SCRIPTS) + $(GMCS) -target:library -debug -r:$(top_builddir)/gendarme/bin/Mono.Cecil.dll -pkg:mono-nunit \ + :../../bin/Gendarme.Framework.dll -r:$(naming_rules_SCRIPTS) -out:$@ $(naming_test_build_sources) test: Test.Rules.Naming.dll diff --git a/gendarme/rules/Gendarme.Rules.Naming/Test/Test.Rules.Naming.mdp b/gendarme/rules/Gendarme.Rules.Naming/Test/Test.Rules.Naming.mdp index 84f45550..2be7f280 100644 --- a/gendarme/rules/Gendarme.Rules.Naming/Test/Test.Rules.Naming.mdp +++ b/gendarme/rules/Gendarme.Rules.Naming/Test/Test.Rules.Naming.mdp @@ -25,6 +25,7 @@ <File name="DoNotPrefixValuesWithEnumNameTest.cs" subtype="Code" buildaction="Compile" /> <File name="DoNotUseReservedInEnumValueNamesTest.cs" subtype="Code" buildaction="Compile" /> <File name="ParameterNamesShouldMatchOverridenMethodTest.cs" subtype="Code" buildaction="Compile" /> + <File name="ChangeLog" subtype="Code" buildaction="Nothing" /> </Contents> <References> <ProjectReference type="Project" localcopy="True" refto="framework" /> diff --git a/gendarme/rules/Gendarme.Rules.Performance/Gendarme.Rules.Performance.mdp b/gendarme/rules/Gendarme.Rules.Performance/Gendarme.Rules.Performance.mdp index f57f9af9..3305c582 100644 --- a/gendarme/rules/Gendarme.Rules.Performance/Gendarme.Rules.Performance.mdp +++ b/gendarme/rules/Gendarme.Rules.Performance/Gendarme.Rules.Performance.mdp @@ -17,7 +17,6 @@ <File name="EmptyDestructorRule.cs" subtype="Code" buildaction="Compile" /> <File name="IDisposableWithDestructorWithoutSuppressFinalizeRule.cs" subtype="Code" buildaction="Compile" /> <File name="UseStringEmptyRule.cs" subtype="Code" buildaction="Compile" /> - <File name="Gendarme.Rules.Performance.xml.in" subtype="Code" buildaction="Nothing" /> <File name="AvoidUnusedParametersRule.cs" subtype="Code" buildaction="Compile" /> <File name="AvoidUncalledPrivateCodeRule.cs" subtype="Code" buildaction="Compile" /> <File name="AvoidUninstantiatedInternalClassesRule.cs" subtype="Code" buildaction="Compile" /> @@ -28,6 +27,7 @@ <File name="AvoidUnsealedUninheritedInternalClassesRule.cs" subtype="Code" buildaction="Compile" /> <File name="AvoidReturningArraysOnPropertiesRule.cs" subtype="Code" buildaction="Compile" /> <File name="UseIsOperatorRule.cs" subtype="Code" buildaction="Compile" /> + <File name="ChangeLog" subtype="Code" buildaction="Nothing" /> </Contents> <References> <ProjectReference type="Assembly" localcopy="True" refto="../../../lib/Mono.Cecil.dll" /> diff --git a/gendarme/rules/Gendarme.Rules.Performance/Makefile.am b/gendarme/rules/Gendarme.Rules.Performance/Makefile.am index 98c08c64..5a20023e 100644 --- a/gendarme/rules/Gendarme.Rules.Performance/Makefile.am +++ b/gendarme/rules/Gendarme.Rules.Performance/Makefile.am @@ -2,8 +2,8 @@ SUBDIRS=Test performance_rulesdir=$(prefix)/lib/gendarme performance_rules_SCRIPTS = ../../bin/Gendarme.Rules.Performance.dll -performance_rules_DATA = Gendarme.Rules.Performance.xml -EXTRA_DIST = $(performance_rules_sources) $(performance_rules_sources_in) Gendarme.Rules.Performance.xml \ +performance_rules_DATA = +EXTRA_DIST = $(performance_rules_sources) $(performance_rules_sources_in) \ Gendarme.Rules.Performance.mdp Gendarme.Rules.Performance.csproj CLEANFILES = $(performance_rules_SCRIPTS) $(performance_rules_SCRIPTS).mdb Test.Rules.Performance.dll DISTCLEANFILES = Makefile.in Gendarme.Rules.Performance.xml TestResult.xml @@ -29,8 +29,8 @@ performance_rules_build_sources = $(addprefix $(srcdir)/, $(performance_rules_so performance_rules_build_sources += $(performance_rules_generated_sources) ../../bin/Gendarme.Rules.Performance.dll: $(performance_rules_build_sources) - $(GMCS) -debug -target:library -r:$(top_builddir)/gendarme/bin/Mono.Cecil.dll -r:../../bin/Gendarme.Framework.dll -out:$@ $(performance_rules_build_sources) - cp Gendarme.Rules.*.xml ../../bin/ + $(GMCS) -debug -target:library -r:$(top_builddir)/gendarme/bin/Mono.Cecil.dll -r:../../bin/Gendarme.Framework.dll \ + -out:$@ $(performance_rules_build_sources) performance_test_sources = \ EmptyDestructorTest.cs \ @@ -49,9 +49,9 @@ performance_test_sources = \ performance_test_build_sources = $(addprefix $(srcdir)/Test/, $(performance_test_sources)) -Test.Rules.Performance.dll: $(performance_rules_build_sources) $(performance_rules_SCRIPTS) - $(GMCS) -target:library -debug -r:$(top_builddir)/gendarme/bin/Mono.Cecil.dll -pkg:mono-nunit -r:../../bin/Gendarme.Framework.dll \ - -r:$(performance_rules_SCRIPTS) -out:$@ $(performance_test_build_sources) +Test.Rules.Performance.dll: $(performance_test_build_sources) $(performance_rules_SCRIPTS) + $(GMCS) -target:library -debug -r:$(top_builddir)/gendarme/bin/Mono.Cecil.dll -pkg:mono-nunit \ + -r:../../bin/Gendarme.Framework.dll -r:$(performance_rules_SCRIPTS) -out:$@ $(performance_test_build_sources) test: Test.Rules.Performance.dll diff --git a/gendarme/rules/Gendarme.Rules.Performance/Test/Test.Rules.Performance.mdp b/gendarme/rules/Gendarme.Rules.Performance/Test/Test.Rules.Performance.mdp index 937e1e87..b63a70c6 100644 --- a/gendarme/rules/Gendarme.Rules.Performance/Test/Test.Rules.Performance.mdp +++ b/gendarme/rules/Gendarme.Rules.Performance/Test/Test.Rules.Performance.mdp @@ -27,6 +27,7 @@ <File name="AvoidUnsealedUninheritedInternalClassesTest.cs" subtype="Code" buildaction="Compile" /> <File name="AvoidReturningArraysOnPropertiesTest.cs" subtype="Code" buildaction="Compile" /> <File name="UseIsOperatorTest.cs" subtype="Code" buildaction="Compile" /> + <File name="ChangeLog" subtype="Code" buildaction="Nothing" /> </Contents> <References> <ProjectReference type="Project" localcopy="True" refto="Gendarme.Rules.Performance" /> diff --git a/gendarme/rules/Gendarme.Rules.Portability/Gendarme.Rules.Portability.mdp b/gendarme/rules/Gendarme.Rules.Portability/Gendarme.Rules.Portability.mdp index 77837ffe..fa8aa1c0 100644 --- a/gendarme/rules/Gendarme.Rules.Portability/Gendarme.Rules.Portability.mdp +++ b/gendarme/rules/Gendarme.Rules.Portability/Gendarme.Rules.Portability.mdp @@ -18,6 +18,8 @@ <File name="FeatureRequiresRootPrivilegeOnUnixRule.cs" subtype="Code" buildaction="Compile" /> <File name="MoMAWebService.cs" subtype="Code" buildaction="Compile" /> <File name="MonoCompatibilityReviewRule.cs" subtype="Code" buildaction="Compile" /> + <File name="ExitCodeIsLimitedOnUnixRule.cs" subtype="Code" buildaction="Compile" /> + <File name="ChangeLog" subtype="Code" buildaction="Nothing" /> </Contents> <References> <ProjectReference type="Project" localcopy="True" refto="framework" /> diff --git a/gendarme/rules/Gendarme.Rules.Portability/Makefile.am b/gendarme/rules/Gendarme.Rules.Portability/Makefile.am index 328cef6e..5e2021a8 100644 --- a/gendarme/rules/Gendarme.Rules.Portability/Makefile.am +++ b/gendarme/rules/Gendarme.Rules.Portability/Makefile.am @@ -2,8 +2,8 @@ SUBDIRS=Test portability_rulesdir=$(prefix)/lib/gendarme portability_rules_SCRIPTS = ../../bin/Gendarme.Rules.Portability.dll -portability_rules_DATA = Gendarme.Rules.Portability.xml -EXTRA_DIST = $(portability_rules_sources) $(portability_rules_sources_in) Gendarme.Rules.Portability.xml \ +portability_rules_DATA = +EXTRA_DIST = $(portability_rules_sources) $(portability_rules_sources_in) \ Gendarme.Rules.Portability.mdp Gendarme.Rules.Portability.csproj CLEANFILES = $(portability_rules_SCRIPTS) $(portability_rules_SCRIPTS).mdb Test.Rules.Portability.dll DISTCLEANFILES = Makefile.in Gendarme.Rules.Portability.xml TestResult.xml @@ -18,13 +18,12 @@ portability_rules_build_sources += $(portability_rules_generated_sources) ../../bin/Gendarme.Rules.Portability.dll: $(portability_rules_build_sources) $(GMCS) -debug -target:library -r:$(top_builddir)/gendarme/bin/Mono.Cecil.dll -pkg:dotnet -r:ICSharpCode.SharpZipLib.dll -r:../../bin/Gendarme.Framework.dll -out:$@ $(portability_rules_build_sources) - cp Gendarme.Rules.*.xml ../../bin/ portability_test_sources = NewLineLiteralTest.cs FeatureRequiresRootPrivilegeOnUnixTest.cs \ MonoCompatibilityReviewTest.cs ExitCodeIsLimitedOnUnixTest.cs portability_test_build_sources = $(addprefix $(srcdir)/Test/, $(portability_test_sources)) -Test.Rules.Portability.dll: $(portability_rules_build_sources) $(portability_rules_SCRIPTS) +Test.Rules.Portability.dll: $(portability_test_build_sources) $(portability_rules_SCRIPTS) $(GMCS) -target:library -r:$(top_builddir)/gendarme/bin/Mono.Cecil.dll -pkg:mono-nunit -r:../../bin/Gendarme.Framework.dll \ -r:$(portability_rules_SCRIPTS) -out:$@ $(portability_test_build_sources) diff --git a/gendarme/rules/Gendarme.Rules.Portability/Test/Test.Rules.Portability.mdp b/gendarme/rules/Gendarme.Rules.Portability/Test/Test.Rules.Portability.mdp index a8003e45..b8808dd0 100644 --- a/gendarme/rules/Gendarme.Rules.Portability/Test/Test.Rules.Portability.mdp +++ b/gendarme/rules/Gendarme.Rules.Portability/Test/Test.Rules.Portability.mdp @@ -17,6 +17,8 @@ <File name="NewLineLiteralTest.cs" subtype="Code" buildaction="Compile" /> <File name="FeatureRequiresRootPrivilegeOnUnixTest.cs" subtype="Code" buildaction="Compile" /> <File name="MonoCompatibilityReviewTest.cs" subtype="Code" buildaction="Compile" /> + <File name="ChangeLog" subtype="Code" buildaction="Nothing" /> + <File name="ExitCodeIsLimitedOnUnixTest.cs" subtype="Code" buildaction="Compile" /> </Contents> <References> <ProjectReference type="Project" localcopy="True" refto="Gendarme.Rules.Portability" /> diff --git a/gendarme/rules/Gendarme.Rules.Security/Gendarme.Rules.Security.mdp b/gendarme/rules/Gendarme.Rules.Security/Gendarme.Rules.Security.mdp index bf038782..3ad3d82e 100644 --- a/gendarme/rules/Gendarme.Rules.Security/Gendarme.Rules.Security.mdp +++ b/gendarme/rules/Gendarme.Rules.Security/Gendarme.Rules.Security.mdp @@ -21,8 +21,9 @@ <File name="TypeExposeFieldsRule.cs" subtype="Code" buildaction="Compile" /> <File name="TypeIsNotSubsetOfMethodSecurityRule.cs" subtype="Code" buildaction="Compile" /> <File name="TypeLinkDemandRule.cs" subtype="Code" buildaction="Compile" /> - <File name="Gendarme.Rules.Security.xml.in" subtype="Code" buildaction="Nothing" /> <File name="StaticConstructorsShouldBePrivateRule.cs" subtype="Code" buildaction="Compile" /> + <File name="ArrayFieldsShouldNotBeReadOnlyRule.cs" subtype="Code" buildaction="Compile" /> + <File name="NativeFieldsShouldNotBeVisibleRule.cs" subtype="Code" buildaction="Compile" /> </Contents> <References> <ProjectReference type="Assembly" localcopy="True" refto="../../../lib/Mono.Cecil.dll" /> diff --git a/gendarme/rules/Gendarme.Rules.Security/Makefile.am b/gendarme/rules/Gendarme.Rules.Security/Makefile.am index 6f08bd44..5acfcaac 100644 --- a/gendarme/rules/Gendarme.Rules.Security/Makefile.am +++ b/gendarme/rules/Gendarme.Rules.Security/Makefile.am @@ -2,8 +2,8 @@ SUBDIRS=Test security_rulesdir=$(prefix)/lib/gendarme security_rules_SCRIPTS = ../../bin/Gendarme.Rules.Security.dll -security_rules_DATA = Gendarme.Rules.Security.xml -EXTRA_DIST = $(security_rules_sources) $(security_rules_sources_in) Gendarme.Rules.Security.xml \ +security_rules_DATA = +EXTRA_DIST = $(security_rules_sources) $(security_rules_sources_in) \ Gendarme.Rules.Security.mdp Gendarme.Rules.Security.csproj CLEANFILES = $(security_rules_SCRIPTS) $(security_rules_SCRIPTS).mdb Test.Rules.Security.dll DISTCLEANFILES = Makefile.in Gendarme.Rules.Security.xml TestResult.xml @@ -19,8 +19,8 @@ security_rules_build_sources = $(addprefix $(srcdir)/, $(security_rules_sources) security_rules_build_sources += $(security_rules_generated_sources) ../../bin/Gendarme.Rules.Security.dll: $(security_rules_build_sources) - $(GMCS) -debug -target:library -r:$(top_builddir)/gendarme/bin/Mono.Cecil.dll -r:../../bin/Gendarme.Framework.dll -out:$@ $(security_rules_build_sources) - cp Gendarme.Rules.*.xml ../../bin/ + $(GMCS) -debug -target:library -r:$(top_builddir)/gendarme/bin/Mono.Cecil.dll -r:../../bin/Gendarme.Framework.dll \ + -out:$@ $(security_rules_build_sources) security_test_sources = MethodCallWithSubsetLinkDemandTest.cs NonVirtualMethodWithInheritanceDemandTest.cs \ SealedTypeWithInheritanceDemandTest.cs SecureGetObjectDataOverridesTest.cs \ @@ -29,7 +29,7 @@ security_test_sources = MethodCallWithSubsetLinkDemandTest.cs NonVirtualMethodWi security_test_build_sources = $(addprefix $(srcdir)/Test/, $(security_test_sources)) -Test.Rules.Security.dll: $(security_rules_build_sources) $(security_rules_SCRIPTS) +Test.Rules.Security.dll: $(security_test_build_sources) $(security_rules_SCRIPTS) $(GMCS) -target:library -r:$(top_builddir)/gendarme/bin/Mono.Cecil.dll -pkg:mono-nunit -r:../../bin/Gendarme.Framework.dll \ -r:$(security_rules_SCRIPTS) -out:$@ $(security_test_build_sources) diff --git a/gendarme/rules/Gendarme.Rules.Security/Test/Test.Rules.Security.mdp b/gendarme/rules/Gendarme.Rules.Security/Test/Test.Rules.Security.mdp index bd5a566d..72ba2bd5 100644 --- a/gendarme/rules/Gendarme.Rules.Security/Test/Test.Rules.Security.mdp +++ b/gendarme/rules/Gendarme.Rules.Security/Test/Test.Rules.Security.mdp @@ -22,6 +22,9 @@ <File name="TypeIsNotSubsetOfMethodSecurityTest.cs" subtype="Code" buildaction="Compile" /> <File name="TypeLinkDemandTest.cs" subtype="Code" buildaction="Compile" /> <File name="StaticConstructorsShouldBePrivateTest.cs" subtype="Code" buildaction="Compile" /> + <File name="ArrayFieldsShouldNotBeReadOnlyTest.cs" subtype="Code" buildaction="Compile" /> + <File name="ChangeLog" subtype="Code" buildaction="Nothing" /> + <File name="NativeFieldsShouldNotBeVisibleTest.cs" subtype="Code" buildaction="Compile" /> </Contents> <References> <ProjectReference type="Project" localcopy="True" refto="Gendarme.Rules.Security" /> diff --git a/gendarme/rules/Gendarme.Rules.Smells/Gendarme.Rules.Smells.mdp b/gendarme/rules/Gendarme.Rules.Smells/Gendarme.Rules.Smells.mdp index 00f69ad6..acce620d 100644 --- a/gendarme/rules/Gendarme.Rules.Smells/Gendarme.Rules.Smells.mdp +++ b/gendarme/rules/Gendarme.Rules.Smells/Gendarme.Rules.Smells.mdp @@ -24,7 +24,7 @@ <File name="Expression.cs" subtype="Code" buildaction="Compile" /> <File name="ExpressionFillerVisitor.cs" subtype="Code" buildaction="Compile" /> <File name="Utilities.cs" subtype="Code" buildaction="Compile" /> - <File name="Gendarme.Rules.Smells.xml.in" subtype="Code" buildaction="Nothing" /> + <File name="ChangeLog" subtype="Code" buildaction="Nothing" /> </Contents> <References> <ProjectReference type="Project" localcopy="True" refto="framework" /> diff --git a/gendarme/rules/Gendarme.Rules.Smells/Makefile.am b/gendarme/rules/Gendarme.Rules.Smells/Makefile.am index 73385593..9af37ea6 100644 --- a/gendarme/rules/Gendarme.Rules.Smells/Makefile.am +++ b/gendarme/rules/Gendarme.Rules.Smells/Makefile.am @@ -2,9 +2,9 @@ SUBDIRS=Test smells_rulesdir=$(prefix)/lib/gendarme smells_rules_SCRIPTS = ../../bin/Gendarme.Rules.Smells.dll -smells_rules_DATA = Gendarme.Rules.Smells.xml -EXTRA_DIST = $(smells_rules_sources) $(smells_rules_sources_in) Gendarme.Rules.Smells.xml \ - Gendarme.Rules.Smells.mdp +smells_rules_DATA = +EXTRA_DIST = $(smells_rules_sources) $(smells_rules_sources_in) \ + Gendarme.Rules.Smells.mdp Gendarme.Rules.Smells.csproj CLEANFILES = $(smells_rules_SCRIPTS) $(smells_rules_SCRIPTS).mdb Test.Rules.Smells.dll DISTCLEANFILES = Makefile.in Gendarme.Rules.Smells.xml TestResult.xml @@ -26,9 +26,8 @@ smells_rules_build_sources = $(addprefix $(srcdir)/, $(smells_rules_sources)) smells_rules_build_sources += $(smells_rules_generated_sources) ../../bin/Gendarme.Rules.Smells.dll: $(smells_rules_build_sources) - $(GMCS) -debug -target:library -r:$(top_builddir)/gendarme/bin/Mono.Cecil.dll -r:../../bin/Gendarme.Framework.dll -r:../../bin/Gendarme.Rules.Performance.dll\ - -out:$@ $(smells_rules_build_sources) - cp Gendarme.Rules.*.xml ../../bin/ + $(GMCS) -debug -target:library -r:$(top_builddir)/gendarme/bin/Mono.Cecil.dll -r:../../bin/Gendarme.Framework.dll \ + -r:../../bin/Gendarme.Rules.Performance.dll -out:$@ $(smells_rules_build_sources) smells_test_sources = \ AvoidCodeDuplicatedInSameClassTest.cs \ @@ -40,9 +39,9 @@ smells_test_sources = \ smells_test_build_sources = $(addprefix $(srcdir)/Test/, $(smells_test_sources)) -Test.Rules.Smells.dll: $(smells_rules_build_sources) $(smells_rules_SCRIPTS) +Test.Rules.Smells.dll: $(smells_test_build_sources) $(smells_rules_SCRIPTS) $(GMCS) -target:library -r:$(top_builddir)/gendarme/bin/Mono.Cecil.dll -pkg:mono-nunit -r:../../bin/Gendarme.Framework.dll \ - -r:$(smells_rules_SCRIPTS) -r:System.Windows.Forms.dll -out:$@ $(smells_test_build_sources) + -r:$(smells_rules_SCRIPTS) -r:System.Windows.Forms.dll -out:$@ $(smells_test_build_sources) test: Test.Rules.Smells.dll diff --git a/gendarme/rules/Gendarme.Rules.Smells/Test/Test.Rules.Smells.mdp b/gendarme/rules/Gendarme.Rules.Smells/Test/Test.Rules.Smells.mdp index 3bbc4603..731e7a3f 100644 --- a/gendarme/rules/Gendarme.Rules.Smells/Test/Test.Rules.Smells.mdp +++ b/gendarme/rules/Gendarme.Rules.Smells/Test/Test.Rules.Smells.mdp @@ -20,6 +20,7 @@ <File name="AvoidLongMethodsTest.cs" subtype="Code" buildaction="Compile" /> <File name="AvoidLongParameterListsTest.cs" subtype="Code" buildaction="Compile" /> <File name="AvoidSpeculativeGeneralityTest.cs" subtype="Code" buildaction="Compile" /> + <File name="ChangeLog" subtype="Code" buildaction="Nothing" /> </Contents> <References> <ProjectReference type="Project" localcopy="True" refto="framework" /> diff --git a/gendarme/rules/Gendarme.Rules.Ui/Gendarme.Rules.Ui.mdp b/gendarme/rules/Gendarme.Rules.Ui/Gendarme.Rules.Ui.mdp index 607e5351..eb46eef4 100644 --- a/gendarme/rules/Gendarme.Rules.Ui/Gendarme.Rules.Ui.mdp +++ b/gendarme/rules/Gendarme.Rules.Ui/Gendarme.Rules.Ui.mdp @@ -17,6 +17,8 @@ <File name="ExecutableTargetRule.cs" subtype="Code" buildaction="Compile" /> <File name="GtkSharpExecutableTargetRule.cs" subtype="Code" buildaction="Compile" /> <File name="SystemWindowsFormsExecutableTargetRule.cs" subtype="Code" buildaction="Compile" /> + <File name="UseSTAThreadAttributeOnSWFEntryPointsRule.cs" subtype="Code" buildaction="Compile" /> + <File name="ChangeLog" subtype="Code" buildaction="Nothing" /> </Contents> <References> <ProjectReference type="Project" localcopy="True" refto="framework" /> diff --git a/gendarme/rules/Gendarme.Rules.Ui/Makefile.am b/gendarme/rules/Gendarme.Rules.Ui/Makefile.am index bdc6a509..78363567 100644 --- a/gendarme/rules/Gendarme.Rules.Ui/Makefile.am +++ b/gendarme/rules/Gendarme.Rules.Ui/Makefile.am @@ -2,8 +2,8 @@ SUBDIRS=Test ui_rulesdir=$(prefix)/lib/gendarme ui_rules_SCRIPTS = ../../bin/Gendarme.Rules.Ui.dll -ui_rules_DATA = Gendarme.Rules.Ui.xml -EXTRA_DIST = $(ui_rules_sources) $(ui_rules_sources_in) Gendarme.Rules.Ui.xml \ +ui_rules_DATA = +EXTRA_DIST = $(ui_rules_sources) $(ui_rules_sources_in) \ Gendarme.Rules.Ui.mdp Gendarme.Rules.Ui.csproj CLEANFILES = $(ui_rules_SCRIPTS) $(ui_rules_SCRIPTS).mdb Test.Rules.Ui.dll DISTCLEANFILES = Makefile.in Gendarme.Rules.Ui.xml TestResult.xml @@ -17,15 +17,15 @@ ui_rules_build_sources = $(addprefix $(srcdir)/, $(ui_rules_sources)) ui_rules_build_sources += $(ui_rules_generated_sources) ../../bin/Gendarme.Rules.Ui.dll: $(ui_rules_build_sources) - $(GMCS) -debug -target:library -r:$(top_builddir)/gendarme/bin/Mono.Cecil.dll -r:../../bin/Gendarme.Framework.dll -out:$@ $(ui_rules_build_sources) - cp Gendarme.Rules.*.xml ../../bin/ + $(GMCS) -debug -target:library -r:$(top_builddir)/gendarme/bin/Mono.Cecil.dll -r:../../bin/Gendarme.Framework.dll \ + -out:$@ $(ui_rules_build_sources) ui_test_sources = ExecutableTargetTest.cs GtkSharpExecutableTargetTest.cs \ SystemWindowsFormsExecutableTargetTest.cs UseSTAThreadAttributeOnSWFEntryPointsTest.cs ui_test_build_sources = $(addprefix $(srcdir)/Test/, $(ui_test_sources)) -Test.Rules.Ui.dll: $(ui_rules_build_sources) $(ui_rules_SCRIPTS) +Test.Rules.Ui.dll: $(ui_test_build_sources) $(ui_rules_SCRIPTS) $(GMCS) -target:library -r:$(top_builddir)/gendarme/bin/Mono.Cecil.dll -pkg:mono-nunit -r:../../bin/Gendarme.Framework.dll \ -r:$(ui_rules_SCRIPTS) -out:$@ $(ui_test_build_sources) diff --git a/gendarme/rules/Gendarme.Rules.Ui/Test/Test.Rules.Ui.mdp b/gendarme/rules/Gendarme.Rules.Ui/Test/Test.Rules.Ui.mdp index 1beab538..f6d8a3c5 100644 --- a/gendarme/rules/Gendarme.Rules.Ui/Test/Test.Rules.Ui.mdp +++ b/gendarme/rules/Gendarme.Rules.Ui/Test/Test.Rules.Ui.mdp @@ -17,6 +17,8 @@ <File name="ExecutableTargetTest.cs" subtype="Code" buildaction="Compile" /> <File name="GtkSharpExecutableTargetTest.cs" subtype="Code" buildaction="Compile" /> <File name="SystemWindowsFormsExecutableTargetTest.cs" subtype="Code" buildaction="Compile" /> + <File name="ChangeLog" subtype="Code" buildaction="Nothing" /> + <File name="UseSTAThreadAttributeOnSWFEntryPointsTest.cs" subtype="Code" buildaction="Compile" /> </Contents> <References> <ProjectReference type="Gac" localcopy="True" refto="nunit.framework, Version=2.2.0.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77" /> diff --git a/gendarme/rules/tests.mds b/gendarme/rules/tests.mds index 50f0cf34..e1094a3b 100644 --- a/gendarme/rules/tests.mds +++ b/gendarme/rules/tests.mds @@ -62,4 +62,4 @@ <Entry filename="Gendarme.Rules.Smells/Test/Test.Rules.Smells.mdp" /> <Entry filename="Gendarme.Rules.Interoperability/Test/Test.Rules.Interoperability.mdp" /> </Entries> -</Combine> +</Combine>
\ No newline at end of file |