Enforce datastore-contrained transactions
[netvirt.git] / commons / checkstyle / src / main / resources / databroker-checks.xml
1 <?xml version="1.0"?>
2 <!--
3 Copyright © 2018 Red Hat, Inc. and others.
4
5 This program and the accompanying materials are made available under the
6 terms of the Eclipse Public License v1.0 which accompanies this distribution,
7 and is available at http://www.eclipse.org/legal/epl-v10.html INTERNAL
8 -->
9 <!DOCTYPE module PUBLIC
10         "-//Puppy Crawl//DTD Check Configuration 1.3//EN"
11         "https://checkstyle.org/dtds/configuration_1_3.dtd">
12 <module name="Checker">
13     <module name="SuppressWarningsFilter" />
14
15     <module name="TreeWalker">
16         <module name="SuppressWarningsHolder" />
17
18         <module name="com.github.sevntu.checkstyle.checks.coding.ForbidCertainMethodCheck">
19             <property name="methodName" value="newWriteOnlyTransaction" />
20         </module>
21         <module name="com.github.sevntu.checkstyle.checks.coding.ForbidCertainMethodCheck">
22             <property name="methodName" value="newReadWriteTransaction" />
23         </module>
24         <module name="com.github.sevntu.checkstyle.checks.coding.ForbidCertainMethodCheck">
25             <property name="methodName" value="callWithNewWriteOnlyTransactionAndSubmit" />
26             <property name="argumentCount" value="1"/>
27         </module>
28         <module name="com.github.sevntu.checkstyle.checks.coding.ForbidCertainMethodCheck">
29             <property name="methodName" value="callWithNewReadWriteTransactionAndSubmit" />
30             <property name="argumentCount" value="1"/>
31         </module>
32     </module>
33 </module>