From 1d62a1f984094621c5450e727f671ec5d523c6ec Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Wed, 1 Apr 2020 11:28:14 +0100 Subject: [PATCH] Add rule definition in codestyle.xml --- .../resources/category/apex/codestyle.xml | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/pmd-apex/src/main/resources/category/apex/codestyle.xml b/pmd-apex/src/main/resources/category/apex/codestyle.xml index 262b6f9757..d5df6de277 100644 --- a/pmd-apex/src/main/resources/category/apex/codestyle.xml +++ b/pmd-apex/src/main/resources/category/apex/codestyle.xml @@ -365,4 +365,27 @@ while (true) { // preferred approach + + + Field declarations should appear before method declarations within a class. + + 3 + + + +