Sync precommit config from main (#7732)

Co-authored-by: John Bampton <jbampton@users.noreply.github.com>
Co-authored-by: dahn <daan@onecht.net>
This commit is contained in:
Vishesh 2023-07-07 14:48:16 +05:30 committed by GitHub
parent 939ee9e153
commit 594c70dde0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
663 changed files with 636 additions and 677 deletions

View File

@ -26,17 +26,18 @@ repos:
- id: identity - id: identity
- id: check-hooks-apply - id: check-hooks-apply
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0 rev: v4.4.0
hooks: hooks:
#- id: check-added-large-files #- id: check-added-large-files
#- id: check-case-conflict - id: check-case-conflict
#- id: check-executables-have-shebangs #- id: check-executables-have-shebangs
#- id: check-merge-conflict #- id: check-merge-conflict
#- id: check-vcs-permalinks - id: check-vcs-permalinks
#- id: check-yaml #- id: check-yaml
#- id: detect-private-key #- id: detect-private-key
#- id: end-of-file-fixer - id: end-of-file-fixer
files: \.(java|md|py|txt|yaml|yml)$
#- id: fix-byte-order-marker #- id: fix-byte-order-marker
- id: mixed-line-ending - id: mixed-line-ending
files: \.(java|py)$ files: \.(java|md|py|txt|yaml|yml)$
# - id: trailing-whitespace # - id: trailing-whitespace

View File

@ -113,5 +113,3 @@ public class UploadTemplateDirectDownloadCertificateCmd extends BaseCmd {
return CallContext.current().getCallingAccount().getId(); return CallContext.current().getCallingAccount().getId();
} }
} }

View File

@ -24,4 +24,3 @@ import org.apache.cloudstack.api.response.TemplateResponse;
@APICommand(name = "copyTemplate", description = "Copies a template from one zone to another.", responseObject = TemplateResponse.class, responseView = ResponseView.Full, @APICommand(name = "copyTemplate", description = "Copies a template from one zone to another.", responseObject = TemplateResponse.class, responseView = ResponseView.Full,
requestHasSensitiveInfo = false, responseHasSensitiveInfo = false) requestHasSensitiveInfo = false, responseHasSensitiveInfo = false)
public class CopyTemplateCmdByAdmin extends CopyTemplateCmd {} public class CopyTemplateCmdByAdmin extends CopyTemplateCmd {}

View File

@ -74,4 +74,3 @@ public class CopyTemplateCmdByAdminTest{
} }

View File

@ -72,4 +72,3 @@ public class CopyTemplateCmdTest{
} }

View File

@ -41,4 +41,3 @@ public class SetPortForwardingRulesCommand extends NetworkElementCommand {
return rules; return rules;
} }
} }

View File

@ -26,4 +26,3 @@ public final class HostInfo {
public static final String HOST_OS_KERNEL_VERSION = "Host.OS.Kernel.Version"; //linux-2.6.31 etc public static final String HOST_OS_KERNEL_VERSION = "Host.OS.Kernel.Version"; //linux-2.6.31 etc
public static final String XS620_SNAPSHOT_HOTFIX = "xs620_snapshot_hotfix"; public static final String XS620_SNAPSHOT_HOTFIX = "xs620_snapshot_hotfix";
} }

View File

@ -63,4 +63,3 @@ public class MoveVolumeCommand extends Command {
} }
} }

View File

@ -43,4 +43,3 @@ public class JavaStorageLayerTest {
} }
} }
} }

View File

@ -234,4 +234,3 @@ public interface IpAddressManager {
public static final String MESSAGE_ASSIGN_IPADDR_EVENT = "Message.AssignIpAddr.Event"; public static final String MESSAGE_ASSIGN_IPADDR_EVENT = "Message.AssignIpAddr.Event";
public static final String MESSAGE_RELEASE_IPADDR_EVENT = "Message.ReleaseIpAddr.Event"; public static final String MESSAGE_RELEASE_IPADDR_EVENT = "Message.ReleaseIpAddr.Event";
} }

View File

@ -29,4 +29,3 @@ public interface ServiceOfferingDetailsDao extends GenericDao<ServiceOfferingDet
String getDetail(Long diskOfferingId, String key); String getDetail(Long diskOfferingId, String key);
List<Long> findOfferingIdsByDomainIds(List<Long> domainIds); List<Long> findOfferingIdsByDomainIds(List<Long> domainIds);
} }

View File

@ -185,4 +185,3 @@ public class Upgrade40to41 implements DbUpgrade {
} }
} }

View File

@ -80,6 +80,3 @@ public class Site2SiteVpnGatewayDetailVO implements ResourceDetail {
return display; return display;
} }
} }

View File

@ -29,4 +29,3 @@ public interface DiskOfferingDetailsDao extends GenericDao<DiskOfferingDetailVO,
String getDetail(Long diskOfferingId, String key); String getDetail(Long diskOfferingId, String key);
List<Long> findOfferingIdsByDomainIds(List<Long> domainIds); List<Long> findOfferingIdsByDomainIds(List<Long> domainIds);
} }

View File

@ -74,4 +74,3 @@ public class DiskOfferingDetailsDaoImpl extends ResourceDetailsDaoBase<DiskOffer
return findResourceIdsByNameAndValueIn("domainid", dIds); return findResourceIdsByNameAndValueIn("domainid", dIds);
} }
} }

View File

@ -24,4 +24,3 @@ import com.cloud.utils.db.GenericDao;
public interface Site2SiteVpnGatewayDetailsDao extends GenericDao<Site2SiteVpnGatewayDetailVO, Long>, ResourceDetailsDao<Site2SiteVpnGatewayDetailVO> { public interface Site2SiteVpnGatewayDetailsDao extends GenericDao<Site2SiteVpnGatewayDetailVO, Long>, ResourceDetailsDao<Site2SiteVpnGatewayDetailVO> {
} }

View File

@ -68,5 +68,3 @@ public class VMInstanceDaoImplTest {
} }
} }

View File

@ -247,5 +247,3 @@ public class SecondaryStorageServiceImpl implements SecondaryStorageService {
} }
} }
} }

View File

@ -14,7 +14,3 @@ ALSO, you have to tweak the generated code to expose useful details such as the
E.g. the generated code creates a wrapper called class ComputerSystem for WMI objects of class Msvm_ComputerSystem. E.g. the generated code creates a wrapper called class ComputerSystem for WMI objects of class Msvm_ComputerSystem.
Thus, there is a mismatch in the class name and the corresponding WMI class, and the WMI class name is a private Thus, there is a mismatch in the class name and the corresponding WMI class, and the WMI class name is a private
constant static member. The tweak involves making this member public. constant static member. The tweak involves making this member public.

View File

@ -109,4 +109,3 @@ public class LibvirtPatchSystemVmCommandWrapper extends CommandWrapper<PatchSyst
return result; return result;
} }
} }

View File

@ -326,4 +326,3 @@ runcmd:
- /opt/bin/setup-kube-system - /opt/bin/setup-kube-system
- until [ -f /etc/systemd/system/deploy-kube-system.service ]; do sleep 5; done - until [ -f /etc/systemd/system/deploy-kube-system.service ]; do sleep 5; done
- systemctl start deploy-kube-system - systemctl start deploy-kube-system

View File

@ -85,4 +85,3 @@ public class ListTungstenFabricProvidersCmd extends BaseListCmd {
setResponseObject(listResponse); setResponseObject(listResponse);
} }
} }

View File

@ -72,4 +72,3 @@ public class Gateway {
this.routes = routes; this.routes = routes;
} }
} }

View File

@ -45,4 +45,3 @@ public class Subnet {
this.length = length; this.length = length;
} }
} }

View File

@ -72,4 +72,3 @@ public class ListTungstenFabricProvidersCmdTest {
Assert.assertEquals(responseList, listTungstenFabricProvidersCmd.getResponseObject()); Assert.assertEquals(responseList, listTungstenFabricProvidersCmd.getResponseObject());
} }
} }

View File

@ -350,4 +350,3 @@ Supported Virtual machine operations - live migration of VM to another host, vir
Supported Volume operations - attach/detach volume, live migrate volume between two StorPool primary storages, volume snapshot, delete snapshot, revert snapshot Supported Volume operations - attach/detach volume, live migrate volume between two StorPool primary storages, volume snapshot, delete snapshot, revert snapshot
Note: volume snapshot are allowed only when `sp.bypass.secondary.storage` is set to `true`. This means that the snapshots are not backed up to secondary storage Note: volume snapshot are allowed only when `sp.bypass.secondary.storage` is set to `true`. This means that the snapshots are not backed up to secondary storage

View File

@ -68,4 +68,3 @@ END
For packet flow, @see http://msdn.microsoft.com/en-us/library/cc226794.aspx For packet flow, @see http://msdn.microsoft.com/en-us/library/cc226794.aspx
*/ */
package rdpclient.ntlmssp; package rdpclient.ntlmssp;

View File

@ -245,4 +245,3 @@ public class ClientSynchronizePDU extends OneTimeSwitch {
MessageType: 0x1, MUST be set to SYNCMSGTYPE_SYNC (1) MessageType: 0x1, MUST be set to SYNCMSGTYPE_SYNC (1)
TargetUser: 1002 (0x3EA) TargetUser: 1002 (0x3EA)
*/ */

View File

@ -40,4 +40,3 @@ VMWare and HyperV in `dist` directory:
bash build.sh systemvmtemplate bash build.sh systemvmtemplate
bash build.sh builtin bash build.sh builtin

View File

@ -91,5 +91,3 @@ vagrant up
``` ```
python -m marvin.deployDataCenter -i marvin.cfg python -m marvin.deployDataCenter -i marvin.cfg
``` ```

View File

@ -64,4 +64,3 @@ OR
### 5. wait for templates and system VMs to be ready ### 5. wait for templates and system VMs to be ready
`$ nosetests -v --with-marvin --marvin-config=deployment.cfg --result-log=result.log testSetupSuccess.py` `$ nosetests -v --with-marvin --marvin-config=deployment.cfg --result-log=result.log testSetupSuccess.py`

View File

@ -107,4 +107,3 @@ public class ImageStoreUtil {
.anyMatch(lowerCasePath::endsWith); .anyMatch(lowerCasePath::endsWith);
} }
} }

View File

@ -100,5 +100,3 @@ public class PbmProfileManagerMO extends BaseMO {
} }
} }