askirmas/react-classnaming

View on GitHub

Showing 7 of 4,788 total issues

File bootstrap4.css.d.ts has 1551 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/** Generated by [postcss-d-ts](https://github.com/askirmas/postcss-d-ts) */
declare const identifiersMap: CssIdentifiersMap

export default identifiersMap

Severity: Major
Found in __typing__/bootstrap4.css.d.ts - About 4 days to fix

    File bootstrap3.css.d.ts has 759 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /** Generated by [postcss-d-ts](https://github.com/askirmas/postcss-d-ts) */
    declare const identifiersMap: CssIdentifiersMap
    
    export default identifiersMap
    
    
    Severity: Major
    Found in __typing__/bootstrap3.css.d.ts - About 1 day to fix

      File material10.css.d.ts has 604 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /** Generated by [postcss-d-ts](https://github.com/askirmas/postcss-d-ts) */
      declare const identifiersMap: CssIdentifiersMap
      
      export default identifiersMap
      
      
      Severity: Major
      Found in __typing__/material10.css.d.ts - About 1 day to fix

        Function bem2arr has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring.
        Open

        function bem2arr(query: BemInGeneral) {
          const $return: string[] = []
        
          for (const base in query) {
            const baseQ = query[base]
        Severity: Minor
        Found in src/bem.core.ts - About 3 hrs to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Function bem2arr has 27 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function bem2arr(query: BemInGeneral) {
          const $return: string[] = []
        
          for (const base in query) {
            const baseQ = query[base]
        Severity: Minor
        Found in src/bem.core.ts - About 1 hr to fix

          Function atom2arr has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
          Open

          function atom2arr(query: AtomInGeneral) {
            const classes: string[] = []
          
            for (const key in query) {
              const value = query[key]
          Severity: Minor
          Found in src/atom.core.ts - About 55 mins to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

          Function resolver has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
          Open

          function resolver(
            vocabulary: undefined | Record<string, ClassHash>,
            actions: Record<string, ClassHash | boolean>
          ) {
            // https://jsbench.me/q8kltjsdwy
          Severity: Minor
          Found in src/core.ts - About 25 mins to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

          Severity
          Category
          Status
          Source
          Language