Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Establish elm review 446 #458

Merged
merged 6 commits into from
Oct 19, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions elm/review/elm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"type": "application",
"source-directories": [
"src"
],
"elm-version": "0.19.1",
"dependencies": {
"direct": {
"elm/core": "1.0.5",
"elm/json": "1.1.3",
"elm/project-metadata-utils": "1.0.1",
"jfmengels/elm-review": "2.3.3",
"jfmengels/elm-review-unused": "1.1.3",
"stil4m/elm-syntax": "7.1.3"
},
"indirect": {
"elm/html": "1.0.0",
"elm/parser": "1.1.0",
"elm/random": "1.0.0",
"elm/time": "1.0.0",
"elm/url": "1.0.0",
"elm/virtual-dom": "1.0.2",
"elm-community/json-extra": "4.3.0",
"elm-community/list-extra": "8.2.4",
"rtfeldman/elm-hex": "1.0.0",
"rtfeldman/elm-iso8601-date-strings": "1.1.3",
"stil4m/structured-writer": "1.0.3"
}
},
"test-dependencies": {
"direct": {
"elm-explorations/test": "1.2.2"
},
"indirect": {}
}
}
43 changes: 43 additions & 0 deletions elm/review/src/ReviewConfig.elm
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
module ReviewConfig exposing (config)

{-| Do not rename the ReviewConfig module or the config function, because
`elm-review` will look for these.

To add packages that contain rules, add them to this review project using

`elm install author/packagename`

when inside the directory containing this file.

-}

import NoUnused.CustomTypeConstructorArgs
import NoUnused.CustomTypeConstructors
import NoUnused.Dependencies
import NoUnused.Exports
import NoUnused.Modules
import NoUnused.Parameters
import NoUnused.Patterns
import NoUnused.Variables
import Review.Rule exposing (Rule)


config : List Rule
config =
[ NoUnused.Variables.rule
]



{-
config =
[ NoUnused.CustomTypeConstructors.rule []
, NoUnused.CustomTypeConstructorArgs.rule
, NoUnused.Dependencies.rule
, NoUnused.Exports.rule
, NoUnused.Modules.rule
, NoUnused.Parameters.rule
, NoUnused.Patterns.rule
, NoUnused.Variables.rule
]
-}
44 changes: 0 additions & 44 deletions elm/src/Console/Text.elm
Original file line number Diff line number Diff line change
Expand Up @@ -158,50 +158,6 @@ dark txt =



-- BACKGROUND COLORS --


bgRed : String -> Text
bgRed =
Text { foreground = Default, background = Red, style = Normal, modifiers = [] }


bgGreen : String -> Text
bgGreen =
Text { foreground = Default, background = Green, style = Normal, modifiers = [] }


bgYellow : String -> Text
bgYellow =
Text { foreground = Default, background = Yellow, style = Normal, modifiers = [] }


bgBlack : String -> Text
bgBlack =
Text { foreground = Default, background = Black, style = Normal, modifiers = [] }


bgBlue : String -> Text
bgBlue =
Text { foreground = Default, background = Blue, style = Normal, modifiers = [] }


bgMagenta : String -> Text
bgMagenta =
Text { foreground = Default, background = Magenta, style = Normal, modifiers = [] }


bgCyan : String -> Text
bgCyan =
Text { foreground = Default, background = Cyan, style = Normal, modifiers = [] }


bgWhite : String -> Text
bgWhite =
Text { foreground = Default, background = White, style = Normal, modifiers = [] }



-- STYLES --


Expand Down
Loading