Skip to content

Commit

Permalink
Add better mandatory cluster rules in matterlint (#19165)
Browse files Browse the repository at this point in the history
* Add better mandatory cluster rules in matterlint

* Code review updates - do not make network commissioning required
  • Loading branch information
andy31415 authored and pull[bot] committed Jul 20, 2023
1 parent de2e230 commit 1623682
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions scripts/rules.matterlint
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,25 @@ all endpoints {

endpoint 0 {
// Identifiers for clusters are loaded from XML files
// The required clusters are from the spec for RootNode (section 2.1.5 at the moment):

require server cluster Basic;
require server cluster AccessControl;
require server cluster GroupKeyManagement;
require server cluster NetworkCommissioning;
require server cluster GeneralCommissioning;
require server cluster OTASoftwareUpdateRequestor;
require server cluster AdministratorCommissioning;
require server cluster OperationalCredentials;
require server cluster GeneralDiagnostics;

// Required only if !CustomNetworkConfig.
// require server cluster NetworkCommissioning;

// If Ethernet
// require server cluster EthernetNetworkDiagnostics;

// If WiFi
// require server cluster WiFiNetworkDiagnostics;

// If Thread
// require server cluster ThreadNetworkDiagnostics;
}

0 comments on commit 1623682

Please sign in to comment.