Skip to content

Commit

Permalink
Add better mandatory cluster rules in matterlint
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 committed Jun 3, 2022
1 parent a00e966 commit c24fe95
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. For now assume yes for matter examples
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 c24fe95

Please sign in to comment.