Giter VIP home page Giter VIP logo

Comments (5)

relgit avatar relgit commented on June 16, 2024 1

If you think about it, only the dictionary is an immediate descendant of the array - not its pairs. So the need for pfm_name on these pairs is respected.

from pre-commit-macadmin.

homebysix avatar homebysix commented on June 16, 2024

@apizz Just to clarify: pfm_name should be required for the first level of pfm_subkeys, but is not required deeper than that?

from pre-commit-macadmin.

apizz avatar apizz commented on June 16, 2024

So I guess this is less nuanced than I thought. pfm_name is required for all first level subkeys from the top / root level manifest. After that, it is only for additional pfm_subkeys layers that do not have a parent preference whose pfm_type is array that a pfm_name is not required (all other pfm_types still require pfm_name). In that scenario 1 of 2 things are possible:

  • we have an array of strings in which case there should be no pfm_name
  • we have an array of dictionaries which similarly should have no pfm_name, but if there is yet another layer of subkeys which are not arrays or dictionaries we need pfm_name

Does that make sense?

from pre-commit-macadmin.

relgit avatar relgit commented on June 16, 2024

I think you had an extra not sneak in there by mistake @apizz 😅

Let's go by this rule of thumb, from ProfileManifests' wiki: pfm_name is required for every preference key except immediate descendants of keys whosepfm_type is array.

from pre-commit-macadmin.

apizz avatar apizz commented on June 16, 2024

The problem is that if we have an array of dictionaries then there will be key value pairs in the dictionary that will need pfm_name

from pre-commit-macadmin.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.